Ticket LS-412 from Priya: “The bulk discount is wrong: Ana ordered 50 hinges and got no discount.”
Chapter 2 of 7
Finding the file
The fix landed, but the team saw what it cost: every file the agent opens is text it must read.
This chapter: How does an agent find the right file without reading them all?
About this chapter
You will learn
- Everything read goes into the context
- Search shows only the matching lines
- Fewer tokens, same fix
Words you’ll meet
- Search
- A tool that returns only the lines holding some words, and which files they are in.
- Context
- Everything the agent has been shown so far, which it reads again each turn.
- Token
- The unit a model reads text in: here, about four bytes of code.
Step 1 of 4
This time the agent has no tool. It opens files one by one, and each one enters its .
Step until it edits.