Who it is forA developer running Claude Code on a multi-session project who keeps losing track of decisions, people and facts established in earlier sessions.
The problemChat context is lost between sessions, and a vector store retrieves text without showing how a conclusion was derived.
The outcomeClaude Code stores facts with lemmalog_observe, derives conclusions with rules, and uses lemmalog_why to show the proof tree back to the episodes that support each conclusion.
What you need first
- Rust toolchain with cargo, and a clone of the lemmalog repo
- Claude Code (or Kimi CLI) installed if you want MCP tools
- A writable path for the memory snapshot, for example /tmp/lemmalog.snapshot or the default ~/.lemmalog/memory.snap
Steps
- Run
cargo build --releasein the repo to produce the lemmalog-cli binary used by later steps. (inferred, check the README) - Run
cargo build --release --features mcp. - Run
claude mcp add lemmalog -- $(pwd)/target/release/lemmalog-mcp. - Optionally register with persistence:
claude mcp add lemmalog --env LEMMALOG_MCP_PATH=/tmp/lemmalog.snapshot -- $(pwd)/target/release/lemmalog-mcp. (inferred, check the README) - In Claude Code, call lemmalog_observe with facts such as
Alice --works_at--> Acmeand then lemmalog_query with a goal such ascurrent("Alice", R, O), quoting entity names. (inferred, check the README)
Prompt for your agent
Using the lemmalog MCP server in <project>, assert the facts stated in this session with lemmalog_observe, then run lemmalog_query for each decision made. Expected output: the query results for each decision, plus a lemmalog_why proof tree for one derived fact. Verify that every observed line returned no dropped-line warning.
Caveat. The README warns that the MCP server and headless CLI hold separate in-process copies, so do not write from both at the same time against one snapshot.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for JordyZomer/lemmalog and "Give Claude Code a persistent, queryable memory"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer