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.
Workflow: adding a small feature card 5 of 6

The request that started it

builds on: Doing a bigger change plan-first, step by step, Tests as the definition of done
Each example line becomes one test. The edge cases settle exactly where the agent would otherwise guess. The last lines ask for a plan first, tests before code, and a check the agent can run itself.
▸ You: Add a search command to notes.py.
Behaviour (each line = one test):
- search milk -> notes containing
  "milk", newest first
- search MILK -> same (ignore case)
- no match -> print "No notes found",
  exit code 0
- search, no word -> print usage,
  exit code 1
Don't change other commands.
Plan first, no edits. Then write tests
from these examples, show they fail, and
implement one plan step at a time.
Check: pytest passes.
Terms on this card
Edge cases
Unusual or boundary inputs, such as empty input, no matches or odd capital letters, where a program most often behaves unexpectedly.
test
A small piece of code that runs part of your program and checks the result matches what's expected, reporting pass or fail.
tests
Small pieces of code that run your program's code and check it gives the expected results.
agent
An AI tool that doesn't just chat. It reads your project's files, edits them and runs commands to carry out a task you give it.
Learn this step by step on Bytewise
Lesson goal: Add a feature end to end. Specify behaviour with examples and edge cases, get a plan, implement in committed steps with tests, try it yourself, and review the final diff as a whole. · the whole lesson