Canonical: https://botbento.com/usecases/map-code-changes-to-business-flows-before/
Format: Markdown representation of the public HTML page.

# Map code changes to business flows before review

[Coding](https://botbento.com/usecases/coding/) · Intermediate

See which flows a change touches and where tests are thin

An AI bot reviews a code change, traces the affected business flows, and produces a visual map with risky or untested areas highlighted. It helps a reviewer understand what changed and where breakage is likely before shipping.

## Quick answers

**What does it do?** See which flows a change touches and where tests are thin. Result: Risk and test-gap map.

**What does it need?** Tools: GitHub, Terminal. Intermediate: some setup. The prompt includes an approval step.

**How do I run it?** When something happens: New commit or pull request. Copy the prompt below into a bot in BotBento.

## How it works

1. When something happens: New commit or pull request
2. Then: Trace changed code through business
3. Result: Risk and test-gap map

## Prompt to start with

```text
When a commit or pull request arrives, inspect the diff and the surrounding code paths. Build a flow map showing which business processes the change touches. Mark new, modified, and untested branches as risk areas, and explain each flag with file and flow references. Keep the report factual and separate observed gaps from guesses. Do not send messages, post comments, delete files, or make payments without the user's approval.
```

## Tools it uses

GitHub, Terminal

## Works with

BotBento

## Tags

code-review, risk-analysis, testing, visualization

## Source

[Show HN: Genesis Map – Visualize your agent's changes. See where they can break](https://news.ycombinator.com/item?id=50623965) — Hacker News · checked 2026-11-24

Summarized in our own words. Any results described there are the authors’ own, not measured by BotBento.

Verified 2026-11-24: passed every automated gate and a second-model review (kimi-code/k3.1-pro). Automated, not human review. [How verification works](https://botbento.com/usecases/verification/)

By BotBento Editorial · Added 2026-11-24 · Updated 2026-11-24 · [Suggest a correction](https://botbento.com/contact/)

## Related use cases

- [Plan supervised code changes in a repository](https://botbento.com/usecases/plan-supervised-code-changes-in-a-repository/) — Restate a feature request, draft a plan, and review edits before commit
- [Fix bugs from issue reports with tests](https://botbento.com/usecases/automated-test-driven-bug-fixing-and-pull/) — Reproduce an issue, write a failing test, patch the code, and prepare a PR for review
- [Legacy code rewrite support with behavior mapping](https://botbento.com/usecases/legacy-code-rewrite-support-with-behavior-mapping/) — Map old behavior first, then draft refactors for engineers to review
