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.
How a code project is laid out
card 4 of 6
Reading a real project root
builds on: Terminal basics: where you are and running things
Names starting with `.` are hidden, so plain `ls` skips them and `ls -a` shows them. `.` and `..` stand for this folder and the folder above it. `.git` is git's own data (git is the tool that records versions of your files), so leave it alone.
`.gitignore` lists what git should not track. Here that is:
- `.venv/`: downloaded libraries
- `__pycache__/`: Python's cache files
- `output/`: generated output
The last two aren't in the listing yet. They appear only once the code has run.
$ ls -a
. .. .git .gitignore .venv README.md
pyproject.toml src tests
$ ls src
invoicer
$ ls src/invoicer
__init__.py cli.py pdf.py totals.py
$ ls tests
test_pdf.py test_totals.py
$ cat .gitignore
.venv/
__pycache__/
output/
Terms on this card
- git
- A tool that records versions of a project's files over time. Its data lives in the hidden `.git` folder.
- `.gitignore`
- A file listing files and folders git should not track, usually generated, downloaded or machine-specific ones.
- `ls -a`
- List all files in the current folder, including hidden ones whose names start with a dot.
- `.` and `..`
- Special names shown by `ls -a`: `.` is the current folder and `..` is the folder above it. They are not project files.
- `.venv/`
- A Python virtual environment: a folder of libraries downloaded for this project. Created by tools, not written by you.
Lesson goal: Recognise the usual parts of a project: source folders, entry point, config files, README, test folder and ignored files. Know where to look first in an unfamiliar repo. ·
the whole lesson