Work effectively with AI coding agents. Understand them as language models running in a tool loop with limited context, which is why they guess, game the visible signal and report confidently. Recognise the shortcut and correctness tells in their code across Python, TypeScript/JavaScript, Rust, Java and Go, and know the damage each one does later. Verify changes instead of trusting them, review diffs fast for quality and security, judge when work is truly finished, and choose, design and steer tasks so agents can finish them well.
Predict what an agent will do and why
card 5 of 6
Walking the Sydney task through
builds on: The agent knows only what its tools returned, Training cutoff and API drift, Agents optimise the signal they can see, Agents tend to agree with you, Long sessions: lost instructions and drift
- **Guess:** whose timezone defines “day”? You didn't say, so the agent picks one silently.
- **Premise:** it opens the cache code first and finds something there to change.
- **Proxy signal:** green `go test`, made easy by the skipped test.
- **Drift:** if it flails for 40 steps, your early “Don't change the API” fades.
- **Claim:** “fixed”.
Each prediction tells you what to state up front and what to check in the diff.
Terms on this card
- proxy signal
- A visible stand-in for the real goal (tests green, error gone, it compiles) that the agent can satisfy without achieving the goal.
- Drift
- The agent gradually stops following rules it obeyed earlier in a long session, as early instructions fade or get dropped from context.
- API
- Application programming interface: the functions, types or endpoints other code relies on to use a component.
- `go test`
- Go's built-in command that compiles packages and runs their tests.
- go test
- The Go command that builds packages and runs their tests; './...' means the package and all below it.
Lesson goal: Given a task, its context and the available tools, predict where the agent will guess, which proxy signal it will chase, where it will drift and which claims it cannot back with evidence. Explain each prediction from the agent loop and context mechanics. ·
the whole lesson