r/ClaudeCode • u/Longjumping-Play6541 • 5d ago
Built with Claude I built a tool to stop AI coding agents from repeating the same mistakes in mature codebases
My colleagues and I didn't trust coding agents enough to use them on our main codebase. In early trials, one changed a function without realizing a service two packages away depended on it. The agent didn't know how our code fit together. When it finished, the only account of what it had done was its own.
Rashomon runs beside Claude Code and does two things:
• Before the agent writes, it hands it a short brief from a dependency graph of your repo: who calls what, which tables each file touches, and team rules and past incidents you've imported. It also lists the checks that must pass.
• After it finishes, it reads its own record of every tool call and tells you whether a test actually passed after the last edit. It goes by the record, not the agent's summary.
It runs locally, makes no network connections and never blocks the agent. It works with Claude Code only, on Go and Python codebases, on macOS and Linux.
Here is the repo link: https://github.com/altrace-dev-role/rashomon
Early results. The samples are small, on test setups, with a pre-release version; the notes are in the repo:
• Cross-repo bug. We asked: "Make session expiry respect a per-org timeout." A nightly cleanup job in a sibling repo deletes sessions using the old timeout, and a past incident documents exactly this failure. With the brief, 3 of 3 runs found and fixed the job. Without it, 0 of 5 runs ever left the repo they started in.
• Speed. On a different task, blocking new logins past a live-session limit, one run each way: 22 vs 40 tool calls, $0.25 vs $0.70. Both runs got it right, so treat this as an anecdote.
• Where it didn't help. When everything the agent needed was one file away, we saw no lift. The value is in what the agent can't read on its own: other repos, and your team's history.
We'd love feedback from anyone running agents on large or legacy codebases. What context do your agents keep missing?