# Genesis: 에이전트가 바꾼 코드의 흐름도와 검사
# Genesis: a flow map and checks for agent changes

- Site: https://select1.dev/2026-11-25 (English), https://select1.dev/ko/2026-11-25 (Korean)
- Entry: 046
- Published: 2026-11-25 (KST). Launch date: 2026-11-24
- Pick: Genesis <https://github.com/GenesisAgentInfra/genesis> (source: Show HN)
- Verified: ran
- What: Genesis 는 코딩 에이전트가 바꾼 코드를 비즈니스 흐름도에 표시하는 프로덕트다. 에이전트가 작성한 설명은 CLI 가 모델을 호출하지 않고 코드와 대조해 검사한다.
- What (en): Genesis is a product that shows a coding agent’s code changes on a business flow map. Its CLI checks the agent’s explanation against the code without calling a model.
- Why: 오늘의 픽으로 선정한 이유는 에이전트가 요약에서 빠뜨린 변경까지 검토할 수 있기 때문이다.
- Why (en): It is today’s pick because you can review even the changes an agent leaves out of its summary.
- Verdict: 작동한다. CLI 는 잘못된 인용도, 단언이 없는 테스트를 근거로 한 판정도 거부했다.
- Verdict (en): It works. The CLI rejected both a wrong quote and a verdict based on a test with no assertion.
- Tags: agents, code-review, testing, static-analysis

## Checked against the README

- [pass] 에이전트가 단계마다 인용한 코드 가운데 하나라도 스냅샷의 코드와 일치하지 않으면 CLI 가 설명 전체를 거부한다(If one doesn’t match, the whole description is rejected) — 예제 앱의 승인 흐름을 여섯 단계로 설명해 제출했다. 한 단계의 인용에서만 "approved" 를 "rejected" 로 바꾸자 quote_not_found 로 제출 전체가 거부됐다. 인용을 고친 제출은 받아들여졌다
- [pass] covered 판정에 단언이 있는 테스트가 하나도 인용되지 않으면 CLI 가 그 판정을 거부한다(The CLI refuses … Behavior checked (covered) with no cited test that asserts anything) — 승인 조건에 draft 상태를 추가한 변경을 covered 로 판정해 제출했다. 근거로 인용한 테스트는 approve_report 를 호출하지만 단언이 없다. covered 판정은 covered_needs_assertion 으로 거부됐다. 같은 테스트를 근거로 reached_only 로 판정하자 CLI 가 받아들였다
- [pass] CLI 는 모델을 호출하지 않고, 아무것도 외부로 전송하지 않으며, 코드를 실행하지 않는다(The CLI calls no model, sends nothing anywhere, and never runs your code) — 네트워크를 차단하고 실행한 것은 prepare 다. 네트워크가 있을 때와 같은 커밋 범위로 실행해도 완료됐다. 코드 스냅샷의 해시로 만드는 세션 ID 도 네트워크가 있을 때와 같았다. 차단을 확인하려고 보낸 외부 요청은 실패했다. CLI 패키지의 코드에는 HTTP 나 모델 클라이언트를 불러오는 import 가 없다. 코드를 실행하지 않는다는 부분은 따로 확인하지 않았다

## Measured

- Python 파일이 107개인 Genesis 저장소에서 prepare 를 실행하는 데 걸린 시간: 25.6초, 25.1초 (저장소를 복사해 genesis map prepare 를 두 번 실행하고 시작과 끝의 시각 차이를 계산했다. `genesis map size` 가 출력한 예상 시간은 30초였다)

## Progress (days after launch; full history https://select1.dev/2026-11-25/progress)

- day 3 (checked 2026-11-27) [active] commits since launch 8, stars 77, releases 1, contributors 2, last commit 2026-11-26
  - The verdict "covered" means a test checks the change. According to the commit title, this verdict now requires evidence backed by the source code.
  - Map cards now resize to fit their text, and small diagrams appear at a readable size.

## 한국어

## 무엇이 문제인가

코딩 에이전트가 짧은 시간에 많은 코드를 바꾸면, 사용자는 변경된 코드를 모두 읽고 확인하기 어렵다. Claude Code 문서에는 Claude 에게 변경을 요약해 달라고 요청하는 방법이 안내돼 있다. 제작자는 HN 글에서 이런 경험을 예로 들었다. 에이전트는 변경에 문제가 없다고 답했지만, 운영 환경에서 코드가 실패한 뒤에야 문제를 놓쳤다고 인정했다. 요약은 에이전트가 코드를 읽고 쓴 글이라, 요약이 코드와 일치하는지, 테스트가 변경을 검증하는지는 사용자가 다시 확인해야 한다.

## 어떻게 해결했나

제작자 가운데 한 명인 HN 사용자 willlzl 이 2026년 11월 24일 Hacker News 에 Show HN 글로 Genesis 를 소개했다.

Genesis 는 Claude Code 나 Codex 에 설치하는 스킬과 CLI 로 구성된다. 에이전트가 코드를 읽고 비즈니스 흐름의 단계를 설명하면, CLI 가 그 설명을 검사한다. 에이전트는 단계마다 근거가 되는 코드를 인용해야 한다. CLI 는 prepare 를 실행할 때 코드 스냅샷을 만들어 두고, 에이전트가 인용한 코드가 그 스냅샷의 코드와 일치하는지 확인한다. 하나라도 일치하지 않으면 설명 전체를 거부한다. 리뷰에서는 CLI 가 기준 커밋과 현재 커밋의 코드를 비교해 변경 목록을 직접 만든다. 에이전트는 변경마다 그 변경을 취소하면 실패하는 테스트가 있는지 판정한다. 그런 테스트가 있으면 covered, 테스트가 코드를 실행하기만 하면 reached_only 다. 그 결과 흐름도 페이지가 생성되고, PR 에 첨부할 요약 파일도 생성된다.

## 무엇이 다른가

첫째, 변경 목록을 만드는 주체가 다르다. Claude Code 에서는 에이전트가 변경을 읽고 요약한다. Genesis 에서는 CLI 가 기준 커밋과 현재 커밋을 비교해 변경 목록을 만든다. 에이전트는 변경마다 의미와 테스트 판정만 작성한다. 그래서 에이전트가 언급하지 않은 변경도 목록에 남는다. 트레이드오프는 CLI 가 Python 코드만 직접 분석한다는 점이다. 다른 언어에서는 에이전트가 흐름을 설명하면서 경로를 빠뜨려도 CLI 가 알려 주지 않는다.

둘째, 설명을 검사하는 방식이 다르다. Claude Code 의 요약은 검사 없이 사용자에게 전달된다. Genesis 의 CLI 는 인용이 코드와 일치하지 않거나, 에이전트가 단언이 없는 테스트를 근거로 covered 로 판정하면 제출을 거부한다. 트레이드오프는 CLI 가 테스트를 실행하지 않고, 인용한 테스트에 단언이 있는지만 확인한다는 점이다. 그래서 테스트에 변경과 관계없는 단언이 하나라도 있으면 covered 판정은 통과한다. 페이지에도 변경을 확인했다고 표시된다.

## 어떻게 만들었나

- 커밋은 2026년 11월 6일부터 23일까지 146개다. 작성자 이름은 DeanOuY, willlzl, Dean, Ding Ouyang, Will Li 다. 36개에는 Claude Fable 5.2, 31개에는 Claude Opus 5.5 와 함께 작성했다는 Co-authored-by 트레일러가 있다.
- CLI 패키지의 Python 코드는 테스트를 제외하고 18,473줄이다. 테스트 파일은 45개다.

## 실행해 보니

uv 로 CLI 를 환경 변수를 비운 별도 디렉토리에 설치했다. Claude Code 는 연결하지 않고, 에이전트가 할 설명과 판정을 직접 작성해 CLI 에 제출했다.

1. 설치. `uv tool install` 은 5초 걸렸다.
2. 예제 앱. Genesis 저장소에 들어 있는 경비 보고서 API 예제를 Git 저장소로 만들고 `genesis map prepare` 를 실행했다. Genesis 는 엔트리포인트 2개와 흐름 2개를 찾았다.
3. 인용 검사. 보고서 승인 흐름을 여섯 단계로 설명해 제출했다. 한 단계의 인용에서 "approved" 를 "rejected" 로 바꾸자 제출 전체가 거부됐다. 인용을 고친 제출은 받아들여졌다. CLI 는 보고서 승인 흐름에서 설명해야 할 항목 5개가 모두 설명에 들어 있다고 집계했다. 항목 5개는 조건, 결과, 호출을 모두 합친 수다.
4. 테스트 판정 검사. 승인 조건에 draft 상태를 추가하는 변경을 커밋했다. approve_report 를 호출하지만 단언이 없는 테스트를 근거로 covered 로 판정하자 거부됐다. reached_only 로 판정하자 받아들여졌다.
5. 관계없는 단언만 있는 테스트. 단언이 `assert 1 == 1` 하나뿐인 테스트를 추가해 covered 로 판정하자 받아들여졌고, 페이지에는 Behavior checked 로 표시됐다. 이 테스트는 pending_approval 상태의 보고서만 사용하므로, draft 를 허용한 변경을 취소해도 실패하지 않는다.
6. 오프라인. 네트워크를 차단해도 prepare 는 완료됐다. 코드 스냅샷의 해시로 만드는 세션 ID 도 네트워크가 있을 때와 같았다. 네트워크 없이도 같은 스냅샷을 만들었다는 뜻이다.
7. 큰 저장소. Python 파일이 107개인 Genesis 저장소에서 prepare 를 두 번 실행하자 25.6초, 25.1초 걸렸다. Genesis 는 엔트리포인트 25개와 흐름 25개를 찾았다.

```text title="터미널, 인용 하나를 바꿔 제출"
$ genesis map submit --task task_a578e0193842 --input bad.json
"status": "rejected"
"code": "quote_not_found"
"message": "The quote is not in that range of the frozen file; read it again through the CLI."
```

```text title="터미널, 단언이 없는 테스트로 낸 covered 판정"
$ genesis map submit --task task_change --input chg-covered.json
"status": "rejected"
"code": "covered_needs_assertion"
"message": "covered needs a test that asserts on the result; none of the tests named here contains an assertion. Use reached_only and say what is missing."
```

## 확인하지 못한 것

- 에이전트가 직접 쓰는 설명. Claude Code 에 스킬을 설치하고 `/genesis review main` 을 실행해 보자.
- Python 이 아닌 프로젝트. TypeScript 저장소에서도 리뷰를 실행해, 단언이 없는 테스트를 근거로 한 covered 판정도 거부되는지 확인해 보자.

## 판정

작동한다. CLI 는 잘못된 인용도, 단언이 없는 테스트를 근거로 한 판정도 거부했다. 다만 테스트에 변경과 관계없는 단언 하나만 있어도 판정을 받아들여, 페이지에 변경을 확인했다고 표시했다. 코딩 에이전트가 만든 변경을 PR 마다 검토하는 경우에 써 볼 만하다.

## 얻어갈 것

- 에이전트의 설명에는 근거가 되는 코드의 인용을 요구하고, 인용을 코드와 대조해 보자. Genesis 는 인용 하나가 잘못되자 설명 전체를 거부했다.
- 테스트 판정을 검사할 때는 변경을 취소하면 테스트가 실패하는지도 확인하자. 단언이 `assert 1 == 1` 하나뿐인 테스트도 Genesis 의 검사를 통과했다.

### 용어

- 에이전트 스킬: AI 에이전트가 특정 작업을 할 때 읽는 지침 파일과 실행하는 스크립트의 묶음.

## English

## The problem

When a coding agent changes a lot of code in a short time, it is hard for a person to read and check all of it. The Claude Code docs show how to ask Claude to summarize your changes. In the HN post, the maker described an agent that said everything was fine. The agent admitted it had missed something only after the code failed in production. An agent writes its own summary, so you still have to check whether it matches the code and whether a test covers the change.

## How it solves it

HN user willlzl, one of the makers, posted Genesis as a Show HN on November 24, 2026.

Genesis is a CLI plus a skill that you install in Claude Code or Codex. The agent reads the code and describes the steps of each business flow. The CLI checks that description. The agent has to quote the code behind each step. The CLI takes a snapshot of the code when the prepare command runs, and checks each quote against it. If one quote does not match, the whole description is rejected. In a review, the CLI compares the old and new versions of the code and builds the list of changes itself. For each change, the agent judges whether a test would fail if the change were undone. If a test would fail, the agent marks the change covered. If tests only run the code, it marks the change reached_only. The CLI produces a flow map page and a summary file to paste into a pull request.

## What is different

First, Genesis differs in who lists the changes. In Claude Code, the agent reads the changes and summarizes them. In Genesis, the CLI compares the base and current commits and lists the changes. The agent only explains what each change means and gives it a test verdict. So a change the agent never mentions still stays on the list. The trade-off is that Genesis itself analyzes only Python code. In other languages, the CLI does not flag a path the agent left out of its description.

Second, Genesis differs in how explanations are checked. In Claude Code, nothing checks the summary before you read it. The Genesis CLI rejects a submission when a quote does not match the code or when the agent bases a covered verdict on a test with no assertion. The trade-off is that the CLI does not run the tests and only checks that a cited test has an assertion. So a covered verdict passes if the test has even one assertion unrelated to the change. The page then marks the change as checked.

## How it was built

- The repository has 146 commits from November 6 to 23, 2026. The author names are DeanOuY, willlzl, Dean, Ding Ouyang and Will Li. Of the commits, 36 have a Co-authored-by line for Claude Fable 5.2, and 31 have one for Claude Opus 5.5.
- The CLI package has 18,473 lines of Python outside the tests, and there are 45 test files.

## Running it

I installed the CLI with uv in a separate directory with an empty environment. I did not connect Claude Code. Instead, I wrote the explanations and verdicts an agent would write and submitted them to the CLI myself.

1. Install. `uv tool install` took 5 seconds.
2. The example app. I turned the expense report API example in the Genesis repository into a Git repository and ran `genesis map prepare`. It found 2 entry points and 2 flows.
3. Quote check. I described the report approval flow in six steps and submitted it. When I changed "approved" to "rejected" in one step’s quote, the whole submission was rejected. The CLI accepted the fixed submission. It found that the description explained all 5 required items in the report approval flow. The count includes conditions, results and calls.
4. Test verdict check. I committed a change that adds a draft status to the approval condition. The CLI rejected a covered verdict based on a test that calls approve_report but has no assertion. It accepted a reached_only verdict.
5. An unrelated assertion. I added a test whose only assertion is `assert 1 == 1` and gave a covered verdict based on it. It was accepted, and the page showed Behavior checked. The test uses only a report with the pending_approval status, so it would not fail if the change that allows drafts were undone.
6. Offline. With the network blocked, prepare still finished. The session ID, which comes from a hash of the code snapshot, was the same as with the network. So the CLI built the same snapshot offline.
7. A larger repository. I ran prepare twice on the Genesis repository, which has 107 Python files. The runs took 25.6 and 25.1 seconds. It found 25 entry points and 25 flows.

```text title="Terminal, a submission with one changed quote"
$ genesis map submit --task task_a578e0193842 --input bad.json
"status": "rejected"
"code": "quote_not_found"
"message": "The quote is not in that range of the frozen file; read it again through the CLI."
```

```text title="Terminal, a covered verdict based on a test with no assertion"
$ genesis map submit --task task_change --input chg-covered.json
"status": "rejected"
"code": "covered_needs_assertion"
"message": "covered needs a test that asserts on the result; none of the tests named here contains an assertion. Use reached_only and say what is missing."
```

## Not checked

- Explanations that an agent writes itself. Install the skill in Claude Code and run `/genesis review main`.
- A project that is not in Python. Run a review on a TypeScript repository too. Check whether the CLI rejects a covered verdict there when the test has no assertion.

## Verdict

It works. The CLI rejected both a wrong quote and a verdict based on a test with no assertion. But it accepted a verdict based on a test with one unrelated assertion, and the page marked the change as checked. It is worth trying if you review an agent’s changes in every pull request.

## What to take away

- Ask an agent to quote the code behind its explanation, and check the quotes against the code. Genesis rejected the whole explanation when one quote was wrong.
- When you check a test verdict, also check whether the test would fail if the change were undone. A test whose only assertion was `assert 1 == 1` passed the Genesis check.

### Terms

- agent skill: Instructions, sometimes with scripts, that an AI agent uses for a specific task.

## Launches the same day

- Ant <https://ant-lang.org/> (Show HN, 15): 스크립트 언어. 정적 타입과 고루틴, 값으로 다루는 오류를 갖췄다.
- FireVoice <https://firevoice.fabwaseem.com> (Show HN, 15): 음성 생성 도구. 자신의 GPU 에서 실행하는 오픈소스 프로그램이다.
- Genesis <https://github.com/GenesisAgentInfra/genesis> (Show HN, 13): 코드 리뷰 도구. 에이전트가 바꾼 코드를 흐름도에 표시하고, 각 변경을 테스트가 검증하는지 보여 준다.
- 3D story maps in JupyterLab <https://notebook.link/@arjxn-py/3d-nepal-flood> (Show HN, 10): 3D 지도 노트북. Python 으로 쓴 3D 이야기 지도를 브라우저의 JupyterLab 에서 실행한다.
- Open-Interpretability Explain <https://open-interpretability.com/posts/explain/index.html> (Show HN, 10): 모델 해석 글. 언어 모델의 내부 특징을 설명하는 방법을 공개했다.
- AnyBox <https://github.com/boykopovar/AnyBox> (GitHub, 268): 호환 계층. Xbox Series 용 앱을 Windows 에서 실행하려는 프로젝트다.
- weaponized-curiosity <https://github.com/AyushRajSinghParihar/weaponized-curiosity> (GitHub, 152): 에이전트 스킬. 근거를 모으고 실험하는 연구 절차를 에이전트에게 준다.
- BioSignal-Guided LLM RL <https://github.com/brainintelli/BioSignal-Guided-LLM-Reinforcement-Learning> (GitHub, 141): 강화 학습 연구. 오가노이드 신경 신호 기록을 LLM 에이전트 학습의 입력으로 쓴다.
- distribution.dev <https://www.producthunt.com/products/distribution-dev> (Product Hunt, 214): 개발자 광고 도구. 여러 사이트에 한 번의 캠페인으로 광고를 낸다.
- Granular.Build <https://www.producthunt.com/products/granular-build> (Product Hunt, 174): 에이전트 작업 공간. 시각적인 화면에서 AI 에이전트에게 일을 맡긴다.
- Clam AI <https://www.producthunt.com/products/clam-ai> (Product Hunt, 153): 받은편지함 공유 도구. 이메일을 AI 에이전트와 안전하게 함께 쓴다고 소개한다.

## Getting started

- Steps: uv tool install --python 3.12 "git+https://github.com/GenesisAgentInfra/genesis#subdirectory=packages/genesis_ci" ; genesis agent install --agent claude
- Needs: uv 와 Git., Claude Code 나 Codex. 분석은 에이전트가 하고 CLI 는 검사만 한다.
- Cost: 무료, Apache 2.0 라이선스. 에이전트 사용 요금은 따로 발생한다.
