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 5 of 6

An agent started in the wrong folder

You open a terminal and immediately start the agent (e.g. `claude` or `codex`). ▸ You: fix the typo in app.py ⚙ Run: ls It sees `Desktop Documents Projects`. There is no `app.py`. It may search your whole home folder or create a new `app.py` there. Instead, quit the agent. Run `cd Projects/todo`, then check with `pwd` and `ls`. Start the agent again. In an editor with a built-in agent, such as Cursor, the folder you open plays the same role.
Terms on this card
terminal
A text window where you type commands for the computer to run and see their text output.
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.
`pwd`
Short for 'print working directory'. Shows the full path of the folder you are currently in.
`ls`
Lists the files and folders inside the current folder.
`claude`
The terminal command that starts the Claude Code agent in the current folder.
Learn this step by step on Bytewise
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