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.
Set up a task an agent can finish well card 4 of 6

The ticket, set up

builds on: Choose what to hand to an agent, Write a task the agent can finish, Give the context it can't find, Size tasks so each step is checkable, Ask for a plan before code, Give it an executable definition of done, Rule out shortcuts explicitly
"Tidy up" has no check and could change the output, so you split it off and don't delegate it now. The filter is local, testable and reversible, so you delegate it. The brief gives: - the goal and why: support needs refunded-only exports - non-goals: no column changes, no refactor - context: reuse `parse_status()` in `orders/status.py`; run `pytest tests/export` - done: the red tests on the next card, which it must not edit - first a plan, then wait - slice 1 the function, slice 2 the CLI flag - stop and report if blocked
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.
non-goals
Things the task explicitly must not do or change, stated so the agent doesn't guess they are in scope.
red
A test or check that is currently failing.
pytest
The most common Python test runner. `pytest tests/export` runs the tests in that folder.
CLI
Command-line interface: a program you run and control by typing commands and flags in a terminal.
Learn this step by step on Bytewise
Lesson goal: Decide whether and how to delegate a real request, then turn it into a well-sized task: a clear goal and acceptance test, the right context, a plan step, explicit guardrails and small checkable increments. Explain which failure mode each element prevents. · the whole lesson