Authorization notice. Reverify is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA developer running a long analysis task in Claude Code, Codex, or Gemini CLI whose context keeps degrading after auto-compaction or repeated clears.
The problemAuto-summaries drop details and let unverified guesses carry forward, so long tasks drift and need restarts.
The outcomeVerified and refuted results are saved to a ledger on disk, and a new session resumes from the same grounded position without re-proposing known false claims.
What you need first
- Python installed
- Install with pip install reverify
- A binary or source file you are authorized to analyze
Steps
- Run
pip install reverifyto install the tool. - Run
reverify rolloverto hand the session off to a file and start a fresh one. - Run
reverify ledger target.exeto see what is established and what is known false. - Run
reverify ledger --hookto register the Claude Code SessionStart hook for compact, clear, and resume events.
Prompt for your agent
Using the reverify repo at 2akouwu/reverify, run reverify rollover to hand off the current session, then run reverify ledger <target> and confirm the established and known-false facts appear in the new session before continuing.
Caveat. The README says the rollover works in Claude Code, Codex, Gemini CLI and OpenCode, but the hook command is documented only for Claude Code, so other agents need their own setup.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for 2akouwu/reverify and "Stop a long AI coding session from losing grounded facts"
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