Who it is forA researcher or engineer whose extracted facts use several spellings for the same entity and who needs one consistent name for queries.
The problemThe same company or person appears under variant names, so facts split across records and queries miss matches.
The outcomeAlias edges are asserted, closures derive same_as links, and canonical views project facts under one spelling, with topology violations flagged as alias_conflict.
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 --release --features mcp. - Assert alias edges with confidence, for example
Acme_Corp --alias_of[0.9]--> Acme, through lemmalog_canonicalize or the CLI observe command. - Query the canonical view, for example
current_canon(S, R, O), and check the same_as closure. - Check for alias_conflict facts and resolve any local name that maps to two canonical names.
- Retract a wrong alias edge and confirm the downstream views update in the same epoch.
Prompt for your agent
Using the lemmalog MCP server, canonicalize the alias edges in <file> and then query current_canon for <entity>. Expected output: the canonical facts plus any alias_conflict entries. Verify that no local name maps to two canonical names.
Caveat. The canonical rules are described in the README as read-side projections in src/canonical.rs, so check the README example against your own rule set before relying on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for JordyZomer/lemmalog and "Merge duplicate entity names into one canonical view"
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