Lost in a repo you've never seen
You need to change the welcome email in a web app you've never worked on. You open the agent in the project root and type: `explain this codebase`. A minute later you get a tidy, confident overview. It sounds right. But you still don't know which file to open. You also can't tell which parts it actually read and which parts it guessed.
It learns the repo the same way you would
The agent doesn't know this repo in advance. It learns it by searching and opening files, which shows up as its ⚙ Read lines. A broad question gets a broad answer, often stitched together from the README, folder names and what similar projects usually do. A narrow question pushes it to open the real code, though it can still guess. A claim with a `file:line` reference can be checked in seconds.
Checklist for exploring with the agent
1. Start with `Don't change any files`. You are only exploring.
2. Ask narrow questions: Where does X live? What runs, in order, when Y happens? What is `func()` for, and where is it called?
3. Ask for `file:line` for every claim.
4. Compare its claims with its ⚙ Read lines. A claim about a file it never opened is unchecked, and often a guess.
5. Open 2–3 of the references yourself.
6. Write your own short map: a few lines on where things live and how the flow runs, with the references you checked.
A trace you can check
This is a narrow, read-only question that asks for references. Note which files the agent reads. Then you check one reference yourself in the terminal: line 42 matches the agent's claim.
▸ You: Don't change any files. When someone
submits the signup form, what code runs?
Trace it in order, with file:line for each.
⚙ Search: signup
⚙ Read: src/routes/auth.py
⚙ Read: src/services/users.py
◂ Agent: 1. `signup()` handles POST /signup
(src/routes/auth.py:42)
2. It calls `create_user()`
(src/services/users.py:17)
3. Then `send_welcome()` emails the user
(src/email.py:8)
$ grep -n "def signup" src/routes/auth.py
42:def signup():
Catching the one step it guessed
In the trace on the previous card, steps 1–2 point to files the agent opened. Step 3 cites `src/email.py`, which it never read. You run `ls src`: there is no `email.py`. Then `grep -rn welcome src` finds `send_welcome_email()` at `src/mail/welcome.py:12`. You reply: `Step 3 is wrong. Read src/mail/welcome.py and redo it.` Then you write the corrected flow in your notes, in your own words.
Guide, not oracle
Ask narrow, read-only questions and require `file:line` for each claim. Check a few references against the code and against what the agent actually opened. Keep your own short map. A reference you have opened yourself is knowledge. A fluent summary is only a guess until you check it.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.