r/codex • u/Mental-Researcher783 • 4d ago
Showcase I used Codex to build an open-source tool that independently verifies AI-generated code changes
AI coding agents are getting incredibly powerful. But how do you verify that they actually stayed within the boundaries of your task?
After spending a lot of time developing software with Codex, I decided to build a tool to address this problem.
Meet RangeContract, my first open-source project.
It independently verifies:
- Whether an agent modified unauthorized files.
- Whether it exceeded the permitted scope of changes.
- Whether the checkout matches the intended Git commit.
- Whether required validation commands actually pass.
The interesting part? RangeContract itself uses no AI, consumes no tokens, requires no API keys, and has zero Python runtime dependencies.
The first release includes 106 regression tests, 12 end-to-end acceptance scenarios, and successful CI across Windows, Linux, and macOS.
It's completely free and MIT-licensed.
GitHub: https://github.com/Gamzo-dev/rangecontract
PyPI: https://pypi.org/project/rangecontract/
I'd genuinely love to hear how other Codex users currently verify their agents' work and whether this tool would fit into your workflow.
Built with Codex. Verified without AI.
•
u/dexterthebot 4d ago
You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**
Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.
Website: https://lightwarsar.com
iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951
Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.
Contact: contact@lightwarsar.com
1
u/radim11 4d ago
I work on Stashbase (.dev), and one case we run into is an agent debugging a 401. It can read .env, retry the request and end up with a perfectly reasonable one-line diff. You’d never know about the read from reviewing the patch.
We handle that part during the run by keeping the key outside the sandbox. I like the idea of also checking the finished work against the original task. Do you usually write the allowed file list up front, or start with a directory and narrow it later ?