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 6 of 6
Small slices, checked and committed
builds on: Long sessions: lost instructions and drift, You own every line the agent writes
Cut work into thin end-to-end slices, one concern each, each with a check you can run. Review and commit before starting the next. Big runs drift and produce diffs you cannot really read. They hide shortcuts where your review never reaches.
Terms on this card
- drift
- The agent gradually breaking rules it followed early in a session, because those rules got weaker attention or were lost as context filled.
- Commit
- A saved git snapshot of the code. Committing after each reviewed step gives a known-good point you can return to.
- end-to-end
- Tested through the whole real path, from entry point to real dependencies, rather than with stand-ins.
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