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: fixing a bug from an error message card 4 of 6

The first message you send

builds on: Giving the right context: files, errors, examples, Tests as the definition of done
One message carries the evidence, the expected result and the order of work. Pasting the key traceback lines verbatim lets the agent find the line and rerun the failure.
▸ You: This command crashes:
Command: python src/report.py data/march.csv
  File "src/report.py", line 14, in average
    return total / len(values)
ZeroDivisionError: division by zero
It happens when a category has no rows.
Expected: show "n/a" for that category.
First add a test to tests/test_report.py
that expects "n/a" for an empty category.
Run it and show me it fails with the same
error. Then explain the root cause before
changing code. Then make the smallest fix,
don't edit the test, and run the whole
test suite.
Terms on this card
traceback
Python's printout when a program crashes: the chain of files, lines and function calls that led to the error, ending with the error type and message.
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: Fix a bug end to end. Give the exact error and how to reproduce it, have it reproduce the failure as a test first, review the root-cause explanation, apply the minimal fix, and confirm the test passes and nothing else broke. · the whole lesson