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.
Size tasks so each step is checkable
card 2 of 6
Why one big run hides its mistakes
builds on: Long sessions: lost instructions and drift, You own every line the agent writes
A long run fills the context with files, tool output and failed attempts. Early constraints fade, and that is drift. Each concern gives the agent another spot to reach the proxy signal (tests green) with a shortcut. Each shortcut is buried in a diff you will only skim. Errors also compound: a wrong choice in step 2 gets built on through step 7. **Later cost:** you merge a bug inside a change nobody truly read.
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.
- drift
- The agent gradually breaking rules it followed early in a session, because those rules got weaker attention or were lost as context filled.
- proxy signal
- A visible stand-in for the real goal, such as tests green or the error gone, that can be satisfied without achieving the goal.
- Later cost
- The concrete damage a shortcut does after merge: a hidden bug, corrupted data or a maintenance burden.
- tool output
- Text returned to the agent by commands it ran, such as test results, compiler errors or file contents.
Lesson goal: Split work into small vertical slices, one concern per run, reviewed and committed between steps. Explain why large tasks produce drift, huge diffs and hidden shortcuts. ·
the whole lesson