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 3 of 6
At each checkpoint: check, feed, watch, decide
builds on: Feedback with evidence, asked neutrally, When to stop, reset or take over, A confident summary that doesn't match the diff
1. **Check**: every claim ('passes', 'fixed') needs matching tool output in the transcript. If there is none, ask it to run the exact command.
2. **Feed**: paste exact errors, and neutrally ask for a diagnosis before a fix.
3. **Watch** for these tells: a repeated fix, a diff growing past the task (unreviewed changes ship with it), suppressions (the warned-about bug ships silenced), self-contradiction or a forgotten instruction.
4. **Decide**: one misstep in a clean context → redirect. A loop, a contradiction or a diff far past the task → revert and start a fresh session. A small fix you already see → take over.
Terms on this card
- context
- Everything in the model's input for the current step: your messages, instruction files, files it has read and tool outputs.
- transcript
- The visible record of a session: your messages, the agent's replies, and the commands it ran with their output.
- tool output
- What a command or tool actually returned (test results, compiler errors, file contents), as opposed to what the agent says about it.
- redirect
- Correcting the agent within the same session with a specific, evidence-backed instruction.
- revert
- Undo the agent's changes, returning the files to an earlier committed state.
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