· via Hacker News – Front Page (hnrss.org)
Genesis turns codebases into flow maps to expose untested AI agent changes
The newly launched Genesis tool renders a codebase as a business flow map and labels each coding-agent change with a test-coverage verdict, aiming to catch regressions that test suites would silently pass.
Genesis, a tool introduced on Hacker News as a show-and-tell project, turns a codebase into a business flow map and marks every change a coding agent has made with a verdict on whether tests actually exercise it. The project's GitHub documentation describes it as a local command-line tool that plugs into Claude Code and Codex as a skill, supporting Python, TypeScript, JavaScript, Go, Java, Rust and most other common languages. Python receives the most accurate treatment, because Genesis parses it directly, and the code is released under the Apache-2.0 license.
How it works
Genesis exposes two commands. One draws the system as it currently stands, which helps developers understand a codebase; the other reviews changes made since a chosen revision and reports whether any test covers them. According to the project's usage guide, the output opens as an HTML page in a browser, and a companion summary file is formatted so it can be pasted straight into a pull request.
The authors position the tool as a check on the agent rather than a substitute for it. Every step the agent writes must quote the lines of code it describes, and the CLI verifies each quote against a frozen snapshot of the repository. If a quote does not match, the whole description is rejected and the agent tries again. For Python, Genesis parses the code itself, so a branch the agent skips leaves the output marked as partial. In review mode, the list of changes is produced by comparing two versions of the code directly, so it does not depend on the agent's own account. The project states that the CLI calls no model, sends nothing anywhere, and never executes the code. Coverage verdicts come from reading the test suite, not running it.
What the benchmark shows
To measure whether this helps, the authors ran a benchmark on ten recent commits from five open-source Python projects. Claude Code and Codex were asked, for each commit, what it changes, whether it could break anything and whether the tests cover it. Each agent answered three times on its own and three times with Genesis, and every answer was scored against a reference answer built from the code and its tests beforehand.
The clearest gains concern changes that a test executes but would still pass if they broke. Claude Code flagged 8 percent of these unaided and 38 percent with Genesis; Codex went from 4 percent to 23 percent. The share of raised risks that turned out to be real rose from 44 percent to 64 percent for Claude Code and from 54 percent to 72 percent for Codex, driven mostly by false alarms falling to roughly a third of their previous level while genuine risks stayed level. The tool also helped agents name more entry points that reach the changed code, such as routes, tools and commands: 32 percent to 47 percent for Claude Code and 15 percent to 24 percent for Codex.
The fine print
The authors are candid about the limits. The sample is small, ten commits with three runs each, and the answers were scored by language-model readers rather than people. Correct test-coverage verdicts improved modestly, from 79 percent to 88 percent for Claude Code and 76 percent to 80 percent for Codex, and the authors note that an answer calling every change covered would already have scored 82 percent, since most changes in the sample were covered. Codex named more entry points with Genesis, but a smaller share of them were right, dropping from 71 percent to 54 percent. Even with the tool, about a third of the changes tests would not catch were still called covered. Outside Python the code is not parsed, so a path the agent misses goes unflagged, and the risk notes reflect only what the agent happened to notice while reading.
Why it matters
Coding agents rarely change only what was asked. The project's own example walks through a request for guest checkout that also altered retry logic, stock handling and shipping thresholds, one of which left a payment retry without an idempotency key, the kind of bug a shopper could feel in their wallet and a passing test suite would never surface. As agent-driven edits multiply, the gap between what changed and what tests actually verify becomes a central failure mode of agentic development. Genesis attacks that gap with a visualization developers can audit, quote-checked descriptions that keep the agent honest, and fully local execution that keeps code on the machine. It is not a guarantee, as the benchmark's remaining blind spots show, but it gives teams a structured way to ask, change by change, whether anything would notice if it broke.
- #developer-tools
- #ai-agents
- #claude-code
- #codex
- #testing
- #code-review