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

A data-chore prompt

builds on: Describing a task: goal, context, constraints, check, Running and trying the result yourself, What never to let an agent touch
Goal, context, constraints and check, as before. The constraints protect the data. The check makes the script report numbers you can verify. Real customer data? Give the agent a made-up sample with the same columns, then run the finished script yourself.
▸ You: Write clean.py to tidy work/sales.csv.
Goal: dates as YYYY-MM-DD, trim spaces in
the name column, then drop rows that are
exact duplicates after that cleaning.
Context: dates are day/month (UK), e.g.
03/04/2024 = 3 April.
Constraints: take an input path and an
output path; write a NEW file and never
change the input. Use only Python's
built-in csv module.
Check: print rows in, rows out, duplicates
dropped. First run it on work/sample.csv
(20 rows) and stop so I can look.
Terms on this card
script
A short program you run to do one job, such as renaming files or cleaning a table.
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.
context
All the text the agent currently has to work from: your messages, file contents it read, command output, and its own earlier replies.
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.
prompt
The message you type to the agent to give it a task or instruction.
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