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 3 of 6

Five parts of a finishable task

builds on: Why agents fill gaps with plausible guesses, What 'done' means for a change
- **Goal**: what must be true afterwards. - **Reason**: why it matters, so the agent chooses sensibly where you said nothing. - **Constraints**: what must hold, such as compatibility and the helpers and conventions to use. - **Non-goals**: what to leave alone. - **Acceptance criteria**: checks with a yes/no answer, such as a command, a test or an observable behaviour. Then scan for gaps. Wherever two good developers would choose differently, decide it yourself or tell the agent to ask.
Terms on this card
acceptance criteria
Conditions a change must meet to count as done, each checkable with a clear yes or no.
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.
tell
An observable sign in a diff, transcript or summary that suggests a shortcut or an error.
the agent
The AI coding system doing the work: a chat assistant, IDE agent or terminal agent.
Learn this step by step on Bytewise
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