What you stay responsible for
State that you own every change you accept and every command you approve, including bugs, data loss, leaked secrets and licence or security problems. 'The AI did it' is not a defence at work or in your own project.
The AI wrote it. Whose bug is it?
You're at work. You ask the agent to add a CSV export to an internal tool. It edits three files and replies ◂ Agent: Done, export works. You accept the changes and release the tool to your team. A week later the export turns out to include every customer's phone number, not just the ones the user picked. Your manager asks what happened. Is "the AI did it" an answer?
A tool can't take the blame
A coding agent can read files, edit code and run commands, but only through the access you give it. Most agents stop and ask before editing a file or running a command, and you answer yes, no or always. It has no job and no contract, and nobody can hold it to account. When you accept a change or approve a command, it becomes your change and your command, exactly as if you had typed it. A power drill can't take the blame for a hole in the wrong wall. Neither can the agent.
What you own when you say yes
- **Bugs** in code you accepted, including ones that show up weeks later.
- **Data loss** from commands you approved, such as deleting or overwriting files.
- **Leaked secrets**: passwords or keys it wrote into files or sent somewhere.
- **Security holes** it opened.
- **Licence problems** if it reproduced someone else's code.
Picking *always* approves a kind of command in advance, so later ones run without asking. How wide that kind is depends on the tool. You own those commands too.
Saying no is part of the job
You ask it to tidy up temp files. It proposes `rm -rf data/`. That command deletes the whole `data` folder, not just the temp files, and there is no undo. Clicking yes "because the agent suggested it" makes that deletion yours. Instead, read the command and notice it goes further than you asked. Answer no, and ask the agent to show what it would delete first. The same goes for code: if you can't explain a change, ask before accepting it.
Where responsibility changes hands
The approval prompt is the moment the action becomes yours. Here you read the proposed command before answering and catch that it's too broad. Then you steer the agent to a harmless, read-only first step. You would approve deleting exactly those files only after checking the list.
▸ You: delete the temp files in data/
⚙ Run: rm -rf data/
[Approve? yes / no / always]
# You read it: wipes ALL of data/ → no
▸ You: Too broad. First list only the
.tmp files you'd delete, nothing else.
⚙ Run: ls data/*.tmp
[Approve? yes / no / always]
# Only lists files, harmless → yes
data/run1.tmp
data/run2.tmp
Remember
Whatever you accept or approve is yours: its bugs, lost data, leaked secrets, security holes and licence problems. "The AI did it" is no defence, so don't say yes to anything you couldn't explain and stand behind as your own work.
On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.