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.
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