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 3 of 6

Copy, sample, spot-check, then run

builds on: Describing a task: goal, context, constraints, check, Running and trying the result yourself, What never to let an agent touch
1. **Copy** the data into a working folder, e.g. `work/`. Leave the original outside the project folder, and don't approve anything that touches it. 2. Ask for a script that **writes a new file** and never changes its input. For renames or deletes, ask for a **dry run** first: it prints `old → new` and changes nothing. 3. **Run it yourself on a small sample** (20 rows, 10 files). Pick the sample by hand so it includes odd cases: blanks, accents, unusual formats. 4. **Spot-check**: compare counts in and out, and open a few outputs, especially the odd cases. 5. Then run it on the full copy and check the counts again.
Terms on this card
script
A short program you run to do one job, such as renaming files or cleaning a table.
dry run
Running a script so it only prints what it would do, e.g. 'old → new' file names, without changing anything.
sample
A small slice of your data, e.g. 20 hand-picked rows or 10 files, used to try a script safely before the full run.
Spot-check
Opening and comparing a handful of outputs by eye, especially odd cases, instead of trusting that everything worked.
rows
The lines of a table. In a CSV each row is one record, e.g. one sale or one customer.
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