Genesis Map Maps Agent Code Changes to Untested Risk
Genesis Map converts a codebase into a business flow map and flags which agent-made changes are untested or risky, running as a skill inside Claude Code and Codex across Python, TypeScript, Go, Java, Rust and other common languages. In a benchmark over 10 commits from 5 open-source Python projects, test-gap detection rose from 8% to 38% for Claude Code while false alarms fell from 2.1 to 0.7 per review.
Related Entities
Full Report
Contents3 sections
Visualize your agent's changes. See where they can break.
https://github.com/user-attachments/assets/673a3f9d-603c-4bcb-b20b-f152d53aa128
Genesis turns your codebase into a business flow map and shows which of your agent's changes are untested or risky. It runs as a skill inside Claude Code and Codex, and works on projects in Python, TypeScript, JavaScript, Go, Java, Rust and most other common languages. Python gets the most accurate results.
Benchmark
We gave Claude Code and Codex 10 recent commits from 5 open-source Python projects and asked what a user would ask: what does this commit change, could it break anything, and do the tests cover it? Each agent answered every commit three times on its own and three times with Genesis. Every answer was scored against a reference answer built from the code and its tests before the runs.
With Genesis:
- Changes that tests run but would not catch are flagged about five times as often. A test runs such a change but would still pass if it broke, like the 🟡 stock change in the example below. Claude Code flagged 8% of them on its own and 38% with Genesis. Codex flagged 4% and 23%.
- False alarms drop to about a third, and real risks hold steady. So more of the risks an answer raises are real: 64% instead of 44% for Claude Code, 72% instead of 54% for Codex.
- More of the entry points a change affects are named: the routes, tools and commands that reach the changed code. Claude Code went from 32% to 47%, Codex from 15% to 24%.
| Claude Code | + Genesis | Codex | + Genesis | |
|---|---|---|---|---|
| Do the tests cover it? | ||||
| Correct test-coverage verdicts | 79% | 88% | 76% | 80% |
| Changes tests run but would not catch, flagged | 8% | 38% | 4% | 23% |
| The same changes, wrongly called covered | 47% | 34% | 43% | 30% |
| What does it affect? | ||||
| Affected entry points named | 32% | 47% | 15% | 24% |
| Named entry points that are right | 67% | 68% | 71% | 54% |
| Could it break anything? Risks raised per review: | ||||
| Real | 2.9 | 2.8 | 2.4 | 2.4 |
| False alarms, ruled out by the code | 2.1 | 0.7 | 1.4 | 0.5 |
| Unclear from the code alone | 1.2 | 0.7 | 0.7 | 0.4 |
| Raised risks that are real | 44% | 64% | 54% | 72% |
Keep in mind that the first row says less than it seems. Most changes in these commits are covered, so an answer that called every change covered would already score 82%. For Codex it is higher on only 4 of the 10 commits. The difference is in the changes tests would not catch, and even with Genesis about a third of those are still called covered. Codex names more entry points with Genesis, but a smaller share of them are right. The sample is small, 10 commits with three runs each, and the answers were scored by language-model readers, not people. Method and full results: change-analysis benchmark.
Quick start
The quickest way is to let your coding agent do it. Open your own project in the agent and paste:
Install Genesis by following https://raw.githubusercontent.com/GenesisAgentInfra/genesis/main/docs/install.md, then review my latest commit with it and tell me how to open the result.Or install it yourself. You need uv and Git, on macOS or Linux:
uv tool install --python 3.12 "git+https://github.com/GenesisAgentInfra/genesis#subdirectory=packages/genesis_ci"
"$(uv tool dir --bin)/genesis" agent install --agent claudeUse --agent codex for Codex and --agent both for both. Other agents, updating,
uninstalling and troubleshooting are in the install guide.
Now open your own project in Claude Code. It has to be a Git repository with at least one commit. Then ask for one of two things:
/genesis map
/genesis review mainmap draws the system as it is now, so you can understand it. review shows what
changed since a revision (here main) and whether a test checks it. You can also just
ask in plain language.
In Codex the skill is $genesis. When it finishes, open .genesis/out/latest/view.html
in a browser. The summary.md next to it is ready to paste into a pull request. The
usage guide explains the page and the other files.
What you get
Say you asked your agent for guest checkout. It built that, and changed three other things on the way. Genesis draws the checkout flow and puts all four changes on it:
| What changed for shoppers | Is it tested? |
|---|---|
| A card charge that times out is retried up to 3 times, with no idempotency key. A shopper can be charged twice. | 🔴 No coverage found. No test makes the payment time out. |
| Stock is no longer held while the card is charged. Two shoppers can pay for the last unit. | 🟡 Behavior not checked. Tests run this code but none buys the last unit twice. |
| Shoppers can check out as a guest by leaving an email. | ⚪ Coverage unclear. The guest tests take their cases from a package outside the repository, so reading them does not show what they check. |
| Free shipping starts above $35 instead of $50. | ✅ Behavior checked. Tests place orders at $34.99, $35.00 and $35.01. |
These are the labels on the page. summary.md calls the same verdicts not reached,
reached only, unknown and covered; the usage guide lists
both.
Click a step to see what changed there, the test verdict with the note that explains it, and the code behind it:
(注:更多技术实现细节与完整 API 文档请查阅原项目 README)
作者发帖说明(HN):
When agent ships code faster and faster, human review is no longer possible. Which brings 2 problems, at least for me:
-
I need to understand what my agent changes as quickly and easily as possible, cuz I don't wanna lose track of the current status of my product, or be the main bottleneck in shipping code.
-
I don't trust what my agent tells me. Many times, I've been suffered from agent telling me "all is well", then say "you are right, sorry, I missed..." after code failed on production.
To mitigate those problems, I made Genesis, a skill for coding agent to generate a beautiful flow chart to understand all the business flows, flag all risk changes and untested code between commits. It worked very well on me, so I benchmarked it against vanilla Claude code and Codex:
Vanilla → With Genesis 1. Test gaps caught: Claude Code 8% → 38% · Codex 4% → 23%
-
False alarms per review: Claude Code 2.1 → 0.7 · Codex 1.4 → 0.5
-
Real risks found per review: Claude Code 2.9 → 2.8 · Codex 2.4 → 2.4