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.
Command output and exit codes
card 1 of 6
How does anyone know a command worked?
builds on: Terminal basics: where you are and running things
You ask the agent to run your script `convert.py`. Text scrolls by, then the agent says: “The script ran successfully.”
How could it know? It can't judge from a feeling about the text. Every command returns more than the words you see on screen, and that extra signal is what the agent, and you, should rely on.
Terms on this card
- command
- A line you type in the terminal to run a program, like `ls` or `python convert.py`.
- script
- A small program saved in a file, such as `convert.py`, that you run to do one job.
- 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.
Lesson goal: Tell normal output from error output. Explain that a command reports success (exit code 0) or failure (non-zero), which is how an agent decides whether a step 'worked'. ·
the whole lesson