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.
Write a task the agent can finish
card 6 of 6
Remember
builds on: Why agents fill gaps with plausible guesses, What 'done' means for a change
The agent settles every decision your task leaves open with the most typical guess. State the goal and its reason, the constraints, the non-goals and yes/no acceptance checks. Then both the agent and you know what 'done' means.
Terms on this card
- non-goals
- Things the task explicitly does not include and the agent should leave alone.
- constraints
- Conditions the solution must respect, such as compatibility, helpers to reuse, conventions or limits.
- the agent
- The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Lesson goal: Write tasks that state the goal and the reason for it, the constraints, the non-goals and checkable acceptance criteria. Point out which ambiguities in a vague request would force the agent to guess. ·
the whole lesson