Plan first, then build. Agent asks what it needs to know, edits across files, runs your tests and lets you rewind any step.
How Agent works
Octavo — ledger-api
Multi-currency invoicesledger-api
Plan multi-currency invoices. We bill in USD only today.
Thought5s
Read4 files in src/invoices/
Searchedcurrency23 results
Drafted the plan. One question before I build it:
Exchange ratesFinance’s
fx_rates tableEdited0043_currency.sql+14
Editedissue.ts+22-3
Editedformat.ts+18-7
Editedbackfill-currency.ts+41
Ranpnpm test invoices31 passed
Ready for review4 files+95-10Review
Reply or ask for changes
AgentOpus 5.5High
format.ts
multi-currency-invoices.md
Plansmulti-currency-invoices.mdBuilt
Multi-currency invoices
ledger-api · 4 to-dos
Goal
Invoice each customer in their own currency.
Changes4 of 4
Add
currency to invoicesdb/migrations/0043_currency.sql+14
Store the FX rate at issue time
src/invoices/issue.ts+22-3
Format amounts with
Intl.NumberFormatsrc/invoices/format.ts+18-7
Backfill existing invoices as USD
scripts/backfill-currency.ts+41
Exchange rates
Daily rates from Finance’s
fx_rates table.
Priya

















