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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page