Sandbox demo

Reading and Editing Files

The agent navigates, edits, and verifies across multiple files in one turn.

Read pulls a file into context. Edit replaces an exact string. Write creates or overwrites a file. The agent picks the right tool for the size of the change — Edit for surgical work, Write for new files.

Watch the agent stay disciplined: it reads before it edits, and after every edit it can re-read to confirm the change took. This is how reliability is built into agentic workflows — not through promises, but through verifiable observations.

Sandbox transcript
Claude Code · sandbox replay
Press Play to replay this transcript step-by-step.
0 / 7

The transcript is canned — no real API calls. The point is to internalize the loop: user → plan → tool → result → answer.

Check your understanding
Q1. Why did the agent re-read the file after editing?
· Score 100% on the quiz.