The question
A user asks: “The login test is failing. Can you fix it?” The model has never seen this repository. It doesn’t know which files exist, what the login code says, or how the test is written. What can it actually do?The answer
Only guess. A model on its own sees nothing but the text of the conversation. Without a way to look at the code, it answers from general patterns: plausible file names, typical bugs, a fix for code it has never read. It may sound confident and still be wrong. The first job of the harness is to give the model a way to see the repository.Design decision: add repository inspection
Give the model three complementary capabilities:
A practical loop is discover → search → read → refine. The tools are independent capabilities, not a requirement to read every file before searching.
read_file should not blindly place a large file into context. Let the agent request a line range, cap the output, and report whether more content remains. Small files may fit in one read; large files need focused inspection of definitions, callers, and tests.
For how an agent reads a file too large for its context, see the advanced page Reading large files.
Source
Anthropic’s Writing effective tools for agents discusses controlling response size through filtering, range selection, pagination, and truncation. The tool names here describe the capabilities proposed by this guide.Continue the walkthrough
Editing & execution
Continue to topic 2 of 14.