22 platform connectors • Claude Code plugin • SQLite memory

Persistent memory for coding agents.

Every message stored in SQLite. Summaries compacted into a DAG. Decisions promoted into cross-session memory. Context survives session boundaries, agent handoffs, and platform switches.

$ npm install -g @lossless-claude/lcm

Then run lcm install to connect your agent platform.

Runtime topology
Claude Code hooks + MCP primary path
22 connectors templated install Amp, Cursor, Gemini, Codex, Windsurf…
lcm daemon
project SQLite DAG
promoted memory FTS5
MCP tools: search • grep • expand • describe • store • stats • doctor
22 platform connectors
7 MCP tools
SQLite persistent memory
409+ tests passing

Why agent handoffs usually fail

The problem is not just context length. It is continuity across sessions, tools, and agents.

Typical workflow
  • Agent A discovers architecture and bug history
  • Session ends and high-signal context evaporates
  • Agent B repeats grep, diffs, and reconstruction work
  • Decisions survive only in chat scrollback
With lcm
  • Raw messages persist in SQLite
  • DAG summaries keep the active window lean
  • Durable decisions are promoted into shared memory
  • Next agent resumes from stored project context

Agent handoff flow

Different agents, different platforms, one memory runtime.

01

Agent A works

Any connected agent explores the codebase, uses tools, and accumulates project-specific context.

02

Memory is persisted

Messages are stored, compacted into DAG summaries, and high-signal outcomes are promoted into durable memory.

03

Agent B resumes

A later session—on any platform—restores relevant summaries and continues without reconstructing the same history.

22 platform connectors

Claude Code gets first-class hook integration. Every other platform connects through templated install with MCP access to the same memory.

Primary

Claude Code

Full hook-driven integration: automatic restore, transcript ingestion, compaction interception, and MCP tools.

  • Automatic restore + writeback
  • Automatic compaction
  • Plugin ecosystem
Connectors

22 platforms

Templated install generates per-platform config files. MCP tools provide read/write access to the same memory backend.

AmpCursorWindsurf CodexGemini CLICline ContinueRoo Code+14 more
Manual

Any MCP client

Point any MCP-capable agent at the lcm daemon. No connector needed—just configure the MCP server URL.

  • Manual retrieval + storage
  • Full MCP tool surface
  • Works with any client

Architecture

Raw history, summarised history, and promoted memory in one local runtime.

Claude Code
hooks + MCP
Connectors
22 platforms
Any MCP client
manual fallback
lcm daemon
project SQLite DAG
raw messages + summaries
promoted memory FTS5
cross-session recall

Get started

Install globally, then connect your platform.

Claude Code plugin

claude plugin install lossless-claude

Full hook integration with automatic restore, writeback, and compaction. Recommended for Claude Code users.

npm + connector

npm install -g @lossless-claude/lcm
lcm install

Interactive installer detects your platform and generates the right config files. Works with all 22 connectors.

MCP tools

Shared memory is queryable and writable from any connected agent.

lcm_search Search episodic and promoted knowledge across the project memory runtime.
lcm_grep Find exact terms, identifiers, file paths, and message fragments in stored history.
lcm_expand Recover deeper detail from compacted history when summaries are too compressed.
lcm_describe Inspect a stored summary or promoted memory entry by id.
lcm_store Persist durable project memory such as decisions, fixes, and conventions.
lcm_stats Inspect memory coverage, DAG depth, and compression state.
lcm_doctor Diagnose daemon status, hooks, MCP setup, and summarizer health.

Lineage

The architecture is inherited. The current runtime is not the original one.

Inherited from lossless-claw

The DAG-based compaction architecture, lossless message retention, and the LCM memory model come from lossless-claw by Martian Engineering, grounded in the LCM paper by Voltropy.

This fork adds

  • Claude Code hook integration (primary path)
  • 22-platform connector registry with templated install
  • Promoted cross-session memory on SQLite FTS5
  • Local daemon runtime and 7-tool MCP surface
  • Auto-heal, import, diagnose, and sensitive-pattern redaction

Build workflows that survive agent boundaries

Start with Claude Code. Connect any other platform. Keep one shared memory runtime underneath all of them.

$ npm install -g @lossless-claude/lcm
View on GitHub