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

Four parts, four typical failures

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 task prompt has four parts. Each missing part causes its own failure: - **Goal**: the outcome you want, concrete and observable. *Missing:* it solves a different problem. - **Context**: the relevant files, error text and what you already know. *Missing:* it looks in the wrong place or acts on a wrong assumption. - **Constraints**: what must not change, e.g. “only edit this file”, “keep what this function returns”, “no new libraries”. *Missing:* extra changes you didn't want. - **Check**: how success will be shown. *Missing:* it stops when the change merely *looks* done.
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.
constraints
Limits you set on a task: what must not change, which files are off-limits, what the agent must not add.
function
A named, reusable block of code that does one job, such as `format_row()`. Other code runs it by name.
returns
What a function returns is the result it hands back to the code that ran it. Code that uses the function expects that result to keep the same shape.
Learn this step by step on Bytewise
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