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.
Workflow: one-off scripts and data chores card 2 of 6

The code is easy; your files are at stake

builds on: Describing a task: goal, context, constraints, check, Running and trying the result yourself, What never to let an agent touch
Throwaway scripts suit agents well. They are short and follow well-known patterns. The danger is what the script does to your files. The agent read maybe 20 of 40,000 rows and guessed the rest. A rename can silently replace a file that already has the new name. Overwriting the input leaves nothing to compare against. Data chores rarely have tests, so mistakes stay quiet. Your job: make mistakes **harmless** and **visible**.
Terms on this card
script
A short program you run to do one job, such as renaming files or cleaning a table.
Throwaway scripts
Scripts written for a single chore and then discarded, not kept or maintained as part of a project.
rows
The lines of a table. In a CSV each row is one record, e.g. one sale or one customer.
tests
Small pieces of code that run your program's code and check it gives the expected results.
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.
Learn this step by step on Bytewise
Lesson goal: Have the agent write throwaway scripts for renaming files, converting formats or cleaning a CSV. Work on a copy of the data, run on a small sample first, and spot-check outputs before running on the real thing. · the whole lesson