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.
Terminal basics: where you are and running things
card 2 of 6
A terminal is always standing in one folder
A terminal is always "in" exactly one folder, its **current working directory**. A new terminal usually starts in your home folder, here `/Users/sam`.
Any file name you give a command without a full location, like `app.py`, is looked up only in that folder. So Python looked for `/Users/sam/app.py`, not in your project. Program names like `python` are found differently, in the system's standard program folders. That's why Python itself still ran.
An agent started from this terminal starts in the same folder. File names in its commands are looked up from there too.
Terms on this card
- terminal
- A text window where you type commands for the computer to run and see their text output.
- current working directory
- The folder a terminal (or a program started from it) is currently in. File names without a full location are looked up there.
- home folder
- Your personal top folder on the computer, e.g. `/Users/sam` on a Mac or `/home/li` on Linux. New terminals usually start here.
- `python`
- The command that runs a Python program file, e.g. `python app.py`.
- directory
- Another word for folder.
Lesson goal: Use a terminal to see the current working directory, list files, change directory and run a program. Explain why an agent's commands run relative to the folder it was started in. ·
the whole lesson