Practise this: Split a feature across agents and cost each run
Use your finished repository from the lab "Stop a repeated mistake with a check": the camping-gear shop's quote service, in Node, with its money check. If you have not done that lab, clone its starter (https://github.com/codeprepdev/agentic-engineering-lab-4-stop-a-repeated-mistake) and fix the card fee first. The shop is opening trade accounts, and the feature has four pieces:
| Piece | What it does |
|---|---|
| Trade discount | A quote option tradeTier: "silver" takes 5% off the goods, "gold" 10%, before freight and GST. The quote returns discountCents. |
| Quote expiry | A quote option issuedOn (YYYY-MM-DD). The quote returns validUntil, 14 days later. |
| Printable quote | src/print/quote-text.js turns a quote into the lines of the email the customer gets, money through formatMoney, with the discount and the valid-until date when there are any. |
| Trade price list | src/import/price-list.js reads the warehouse's CSV export (sku,description,price, prices written like 12.95) into quote lines with unitCents. |
You may use a feature from a codebase of your own instead, if it splits into at least three pieces and you can run agents on it. Describe the pieces and the files the same way, then do the same work.
Plan the split before any agent starts, then build it with agents and keep a cost note for every run, including any you abandon. Use git worktrees (or separate clones) so each agent has its own checkout. Write, in the box below:
- The split. For each piece: the files it changes and the files it reads. Which piece goes first and alone, and why; which run side by side; which wait, and for which commit. Draw it as a list or a diagram.
- The briefs. One per run, one task each: the outcome, the scope with its file list, what not to touch, and the check that must pass. Say which model each run gets and why.
- What happened. At least three runs, at least two of them side by side in separate checkouts. Compare each diff's file list with its brief, and say what you did when a diff reached outside it. If a session went round in circles, say what you saw and what you did.
- The cost notes. One line per run, in the module's form:
task | model | spend reported by the tool | merged (yes or no). Give the figure the tool reported (Claude Code's/usage, or your tool's equivalent), not an estimate, and say where you read it. - Cost per merged change. The sum, worked out, with the abandoned runs counted and any change that was later reverted left out of the count. Then the same sum without your most expensive run that did not merge, and what that difference tells you.
- How many you can review. How many high-tier changes you read in full in a normal day, which of this feature's changes were high-tier, and whether the number of agents you ran was within that.
Your mark is based on the criteria listed under "What you are marked on".
Open the lab · needs a free Tarmac account to have your work marked