Read unfamiliar code
Ask the agent how a path works. It answers with a diagram drawn from the source, its boxes pointing at the code they stand for.
The board
nvim Where you read on, and change the code yourself.
Agent Answers in prose and diagrams drawn from the source, each part linked to its file and lines.
Step by step
- 01 Ask the question "How does a refund get from Stripe to the database? Draw it."agent
- 02 Read the diagram The path from the webhook to the insert, drawn from the source. A box with a dot points at its code.agent
- 03 Open a box Click the one that looks the refund up by its key. Its code opens under the diagram, with the file and lines.agent
- 04 Read on in nvim Open the file beside it withnvim
:e src/refund.ts, jump to that line and carry on with your own keys.