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 1 of 6
Before it starts: what will it do?
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
You write: *“Daily totals are a day off for users in Sydney. I think the cache key is wrong. Don't change the API. Make `go test ./...` pass.”* The agent can read the repo and run `go test`. Its sandbox has no database, and the query that groups orders by day runs in Postgres. You can be fairly sure it will come back green. Before it starts, can you say where it will go wrong?
Terms on this card
- sandbox
- The restricted environment where the agent runs commands; it may lack databases, network access or credentials that your real setup has.
- Postgres
- PostgreSQL, a widely used relational database.
- `go test ./...`
- Runs the tests of every Go package in the current module. Without -v it prints one 'ok' line per passing package and hides skipped tests.
- 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.
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