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 who asked an AI agent to refactor or rewrite a Python or C function and wants proof it still behaves the same.
The problemAn AI refactor can look correct while changing behavior on edge cases, and reading the diff does not prove equivalence.
The outcomeA refuted result comes back with the input and both outputs, so the developer can see exactly where the rewrite differs.
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. - Prepare the reference implementation and the AI's candidate implementation as separate files or functions that Reverify equiv can load. (inferred, check the README)
- Run
reverify equiv --lang pythonand supply the candidate and reference paths as the README's equiv usage requires. (inferred, check the README) - Read the result: a refutation shows the input and both outputs that disagree.
- Fix the candidate and rerun until the check passes before merging.
Prompt for your agent
Using the reverify repo at 2akouwu/reverify, run its equiv check with --lang python to compare the AI-rewritten <function file> against the original reference over shared inputs. Report the result and, if refuted, the input and both outputs, and do not accept the rewrite unless the check agrees.
Caveat. The README gives the equiv command name and language flag but not the exact argument format, so the input setup steps here are inferred and need checking against the tool's own help.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for 2akouwu/reverify and "Test an AI's code rewrite against the original before merging"
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