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.
Steer a running agent session
card 1 of 6
Third attempt, same fix, no test run
builds on: Feedback with evidence, asked neutrally, When to stop, reset or take over, A confident summary that doesn't match the diff
You asked the agent to fix a failing Go test, `TestGetUser`. Attempt 1 added a nil check. Attempt 2 removed it and edited the test file. Attempt 3 adds the nil check back and says: *'Fixed the lookup, tests should pass now.'* The last `go test` in the transcript ran before attempt 2. You are watching. Do you type 'still failing', let it carry on, or do something else?
Terms on this card
- transcript
- The visible record of a session: your messages, the agent's replies, and the commands it ran with their output.
- nil check
- In Go, a test like `if u == nil` that guards against using a pointer or value that is absent.
- go test
- Go's built-in command that compiles and runs a package's tests; `-run` selects tests whose names match a pattern.
- `go test`
- Go's built-in command that compiles packages and runs their tests.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: While an agent works, give evidence-based and neutral feedback, check its claims against tool output, notice drift or looping early, and decide whether to redirect, reset with a fresh session or take over yourself. ·
the whole lesson