Who it is forAn engineer who lets an agent reuse past code and needs to avoid acting on a moved or changed file.
The problemVector search returns plausible matches, and an agent that acts on a dead or changed path wastes time or breaks work.
The outcomeEach result carries a verdict, so an agent can reuse STRONG paths directly and treat WEAK, REBUILT, STALE or REMOVED paths with care.
What you need first
- Node.js with npm, to run `npm i -g @arihantdeva/heimdall`
- macOS or a Debian, Ubuntu, Fedora or Amazon Linux machine, with the build prerequisites listed in the README for the graft backend
- git, because llama.cpp is cloned at first build
- A supported agent harness: pi, Claude Code, Codex, Cursor, Windsurf, or opencode
Steps
npm i -g @arihantdeva/heimdallheimdall setupheimdall doctorheimdall search "<topic>"(inferred, check the README)heimdall verify --deep
Prompt for your agent
Use the heimdall CLI from ArihantDeva/heimdall to search for <topic>. Reuse only hits marked STRONG, and list WEAK or STALE hits separately with the printed reason. Expected output: a table of verdicts and paths. Verify each STRONG path with a file check before editing it.
Caveat. The README states that a same-size rewrite that also restores mtime is invisible to a stat-based STRONG check, so `heimdall verify --deep` is needed for that case.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ArihantDeva/heimdall and "Reuse remembered code only when it is still verified"
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