AI coding agents
A coding agent can read your project, change it and run the tests. How do you stay in charge? An agent works in a loop. It reads your files.
Chapters
- 0:00Introduction
- 0:07How it works: The agent loop
- 0:16Ask well: Be specific
- 0:25See first: Draw a Code Map
- 0:38Safety net: Use a branch
- 0:46Boundaries: Set limits
- 0:56Where it runs: Local or cloud
- 1:04Proof: Trust the tests
- 1:14Wrap up
Read the transcript
Introduction
A coding agent can read your project, change it and run the tests. How do you stay in charge?
How it works: The agent loop
An agent works in a loop. It reads your files. It makes a plan and edits. It runs commands and reads what happened.
Ask well: Be specific
Say what you want and why. Name the files, if you know them. Say how to tell it's done. And give it a test to run.
See first: Draw a Code Map
Code Map, in AI Code Studio, draws your code as one picture. It lists what deserves a look. You tick what matters, and the request is written for you. Building the map spends no tokens.
Safety net: Use a branch
Give the agent its own Git branch. Afterwards, read every changed line, and run the tests yourself.
git switch -c agent-try
git diff main
./run-tests.shBoundaries: Set limits
Decide what it may do without asking. Keep secrets out of its reach. Be careful with commands that delete. And treat text it reads online as untrusted.
Where it runs: Local or cloud
A local model keeps your code on your machines. A cloud model can be stronger, and sends your code to its provider.
Proof: Trust the tests
An agent can sound sure and be wrong. A passing test is better evidence than a confident summary. Small tasks are easier to check.
Wrap up
Give it a clear task, a branch and a test. Then review.