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 3 of 6
Rules for checkable steps
builds on: Long sessions: lost instructions and drift, You own every line the agent writes
- **Vertical slice**: a thin piece of real behavior, end to end (request → logic → response). Never one layer at a time.
- **One concern per run**: a feature, a refactor, a dependency bump and a formatting pass each get their own run.
- **A check per step**: a test or command that is green only when this slice works.
- **Reviewable size**: you can read every line in one sitting.
- **Commit between steps**: each commit is a known-good point to return to.
Terms on this card
- Vertical slice
- A thin piece of working behavior that goes through every layer (request, logic, storage, response), instead of finishing one layer at a time.
- One concern per run
- Each agent run does a single kind of change, e.g. one feature step, and never mixes in refactors, upgrades or formatting.
- Commit
- A saved git snapshot of the code. Committing after each reviewed step gives a known-good point you can return to.
- green
- A test or check that passes. Red means it fails.
- refactor
- A change to the structure of code that is meant to leave its behavior exactly the same.
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