Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Describing a task: goal, context, constraints, check
card 5 of 6
The same request, all four parts
builds on: What the agent can and cannot see, The shape of a session: task to review, What agents do well and what they do badly
A complete prompt can still be short. What matters is that none of the four parts is missing. Labels such as `Context:` are optional, but they make it easy to see that nothing was skipped.
▸ You: Goal: in the CSV export, dates
should be 2024-03-04, not 03/04/2024.
Context: the CSV rows are built by
format_row() in src/export.py. The
on-screen report already shows dates
correctly; only the CSV is wrong.
Constraints: only edit src/export.py.
Keep the column order. No new
libraries.
Check: run python src/export.py and
paste the first 3 rows it writes.
Terms on this card
- prompt
- The message you type to the agent to give it a task or instruction.
- context
- Everything the agent can currently see: your messages, the files it has read, command output and what it learned in training.
Lesson goal: Write a task prompt that states the goal, the relevant files or background, the limits (don't touch X, keep the API) and how success will be checked. Explain which missing piece causes which typical failure. ·
the whole lesson