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.
What the agent can and cannot see
card 5 of 6
Hand it what only you can see
You saw a layout problem on a small screen. The agent saw one file and the word *broken*. Write down what you saw, and what it got wrong:
▸ You: Undo your change to the click handler; clicking already worked. The real problem: on a phone-sized screen, the Save button in `src/components/SaveButton.tsx` is hidden behind the footer from `src/components/Footer.tsx`. Make it visible; don't change what it does.
Now it knows the symptom, the files and the goal.
Terms on this card
- click handler
- The piece of code that runs when someone clicks a button or other element on a page.
- footer
- The strip at the bottom of a web page, often holding links or contact details.
- 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.
- src
- Short for "source": a common folder name for a project's main code files.
Lesson goal: Explain that the agent knows only what is in its context: your messages, files it chose to read, command output and its training data. It cannot see your screen, your unstated intent, files it never opened, or recent library changes. ·
the whole lesson