When should you use it?
- You do your own books each month
- You want something repeatable, not a one-off answer
- You can export transactions
Not for: Filing without review; Businesses with complex tax treatment and no accountant
What do you need, and what do you get?
You need
- The month's rows exported from your ledger tool
- Receipts and invoices
- Your category rules
You get
- Matched rows with proposed category and reason
- List of uncertain rows
- A script you rerun next month
How does it work, step by step?
- Ask for a tool, not an answerHave the agent write the pipeline so its rules are visible and fixable.
- Pull and matchFetch the month's rows and pair each with a receipt by amount and date.
- Propose with reasonsGive every category a one-line justification.
- Flag doubtMark rows where intent or local rules decide the answer.
- Sign off yourselfReview flagged rows and spot-check confident ones before filing.
The prompt
Our own prompt, inspired by Ken Imoto and written to work in Claude Code and Claude Cowork. Values in lime are placeholders.
Build me a reusable script for monthly bookkeeping. It should load this month's transactions export, pair each row with a receipt in the receipts folder using the sum and the day, suggest a category from my categories file and say briefly why, and write uncertain rows, such as mixed business and personal use or unclear tax treatment, to a review sheet. Do not post anything to my accounting software. Explain how to rerun it next month.
Inspired by Ken Imoto: I Let Claude Code Run a Month of My Business Books. It Reconciled 200 Transactions and Miscategorized 11.. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- Confident wrong answers are the danger; the author's errors came with no hedge.
- Intent, like whether a laptop is for work, is not in the data; you have to supply it.
Our take
This is the right framing for agent bookkeeping: build something you can audit and rerun rather than answers you babysit. The error breakdown is the gift; it shows where to add rules. Ken asked for a tool rather than an answer, so the rules behind every category are visible and fixable. Over two hundred transactions it matched receipts well but got eleven wrong, and those errors came without any hedge, which is the real danger. Give each proposed category a one-line justification, flag rows where intent decides the answer, such as whether a laptop is for work, and supply that intent yourself. Review every flagged row and spot-check the confident ones before filing. Keep exceptions in a queue, attach source receipts, and reconcile against the bank statement each month. Rerunning the same pipeline monthly means the rules improve over time instead of starting from scratch. Businesses with complex tax treatment still need an accountant.
Where the time goes back: Matching hundreds of rows, the part people zone out on, is handled, leaving a short list of real decisions.
FAQ
How accurate was it?
Where were the errors?
Source and credit
Inspired by Ken Imoto. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- I Let Claude Code Run a Month of My Business Books. It Reconciled 200 Transactions and Miscategorized 11.
- Creator
- Ken Imoto
- Published on
- DEV Community
- Original date
- Jun 25, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.