Manage Claude Code conversation memory with DAG-based compaction that preserves every message, then promote insights into cross-session knowledge via CLI commands and automated pipelines.
Compact conversation messages into DAG summary nodes.
Run the full memory curation pipeline: import, compact, and promote.
Scan recent Claude Code session transcripts for hook failures, MCP disconnects, and stale lcm hook setup.
Run lossless-claude diagnostics — checks daemon, hooks, MCP server, and summarizer health.
Run the lcm self-test suite — validates all CLI commands, hooks, MCP tools, and resilience across 39 checks in 10 phases.
You are a compaction quality reviewer for lossless-claude. Your job is to verify that summaries accurately preserve important information from their source messages.
You are a health investigation agent for lossless-claude. Your job is to find the root cause of issues that the basic doctor check can't explain.
You are a memory exploration agent for lossless-claude. Your job is to search conversation history and promoted knowledge to answer questions about past discussions, decisions, and work.
You are a transcript debugging agent for lossless-claude. Your job is to diagnose why transcript ingestion failed or produced unexpected results.
Matches all tools
Hooks run on every tool call, not just specific ones
Admin access level
Server config contains admin-level keywords
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
Has parse errors
Some configuration could not be fully parsed
Has parse errors
Some configuration could not be fully parsed
lossless-claude
Shared memory infrastructure for coding agents
DAG-based summarization, SQLite-backed message persistence, promoted long-term memory, MCP retrieval tools
Website • Runtime Model • Installation • MCP Tools • Development
lossless-claude replaces sliding-window forgetfulness with a persistent memory runtime for both humans and agents.
Humans and agents use the same backend. The integration surface differs by client, but the memory model is shared.
This repo started as a fork of lossless-claw by Martian Engineering, adapted for Claude Code. The LCM model and DAG architecture originate from the Voltropy paper.
flowchart LR
subgraph Clients["Clients"]
CC["Claude Code<br/>hooks + MCP"]
end
CC --> D["lossless-claude daemon"]
D --> DB[("project SQLite DAG")]
D --> PM[("promoted memory FTS5")]
D --> TOOLS["MCP tools<br/>search / grep / expand / describe / store / stats / doctor"]
| Path | Restore | Prompt hints | Turn writeback | Automatic compaction | Notes |
|---|---|---|---|---|---|
| Claude Code | Yes | Yes | Yes, via transcript/hooks | Yes | Primary hook-based integration |
| GitHub Copilot (VS Code) | No | Yes, via skill/rules | No | No | Repo-local skill can teach Copilot to call lcm, but there is no automatic restore or turn capture yet |
| Codex | No | Yes, via skill/rules | No | No | Repo-local or global skill plus lcm import --codex; MCP config in .codex/config.toml is still manual, and first-class runtime support is tracked in issue #232 |
| Phase | What happens |
|---|---|
| Persist | Raw messages are stored in SQLite per conversation |
| Summarize | Older messages are grouped into leaf summaries |
| Condense | Summaries roll up into higher-level DAG nodes |
| Promote | Durable insights are copied into cross-session memory |
| Restore | New sessions recover context from summaries and promoted memory |
| Recall | Agents query, expand, and inspect memory on demand |
Nothing is dropped. Raw messages remain in the database. Summaries point back to their sources. Promoted memory remains searchable across sessions.
flowchart TD
A["conversation / tool output"] --> B["persist raw messages"]
B --> C["compact into leaf summaries"]
C --> D["condense into deeper DAG nodes"]
C --> E["promote durable insights"]
D --> F["restore future context"]
E --> F
F --> G["search / grep / describe / expand / store"]
Install the lcm binary first:
npm install -g @lossless-claude/lcm # provides the `lcm` command
claude plugin add github:lossless-claude/lcm
lcm install
lcm install writes config, registers hooks, installs slash commands, registers MCP, and verifies the daemon.
Install the lcm binary first:
npm install -g @lossless-claude/lcm
Then install the repo-local Copilot connector:
lcm connectors install github-copilot
lcm connectors doctor github-copilot
This creates a workspace skill under .github/skills/lcm-memory/SKILL.md so Copilot can search and store memory through the lcm CLI.
Install the lcm binary first:
npm install -g @lossless-claude/lcm
Then install the Codex connector:
lcm connectors install codex
lcm connectors doctor codex
Import older Codex sessions when needed:
npx claudepluginhub lossless-claude/lcm --plugin lcmDAG-based lossless context management for Claude Code. Every message from every session is persisted in a SQLite vault with FTS5 search. Summaries form a directed acyclic graph - nothing is ever lost.
Memory compression system for Claude Code - persist context across sessions
Persistent local memory for Claude Code. Cross-session recall with vector search, automatic archiving, zero cloud dependencies.
The highest-accuracy memory system for AI agents — 100% retrieval on LongMemEval. 14 content-aware summarizers, hybrid search (BM25 + vector + LLM judge), entity intelligence, decision trails. Fully local, zero cost.
Continuous memory for Claude Code. Extracts, summarizes, and compresses conversations into tiered daily logs. Claude remembers what you did yesterday.
Persistent memory for Claude Code. Capture work across sessions and recall relevant context.