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.
Untrusted text steering the agent
card 6 of 6
Remember
builds on: The agent loop: act, observe, repeat, What the agent can and cannot see
Anything the agent reads can act like a command. The real danger is private data + untrusted text + a way to send things out, all in one session. Take away any one and the theft fails. Either way, question any action your request doesn't explain.
Terms on this card
- untrusted text
- Any text you didn't write yourself that ends up in the agent's context, such as web pages, issues, other people's code or data files.
- command
- A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
- session
- One working conversation with the agent, from the task you type until you accept or redirect the result.
- 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: Explain prompt injection: instructions hidden in a web page, issue, README, dependency or data file can redirect the agent. Explain why private data plus untrusted input plus a way to send data out is the dangerous combination. ·
the whole lesson