Point an AI at your bank downloads and you’ll have a spending dashboard by the afternoon. Within days the folder can fill with files named “CORRECTED” and “FULLY_RECONCILED”, and nobody knows which one is true.
This guide starts at the other end, so every number traces back to a statement.
What you’ll build
A monthly budget, a yearly view of each investment account (what you saved versus what the market did), and a weekly routine, all in one folder of plain files you own:
Finance/
README.md your household, your decisions, where you left off
CLAUDE.md the ground rules, read at the start of each session
MAINTENANCE.md the weekly and monthly routines
ledger/ the master list of every transaction (CSV)
statements/ PDFs, by account and month
exports/ raw downloads, never edited
scripts/ small programs Claude writes and runs
reports/ outputs
archive/ anything retiredWhat you need
A paid Claude plan and Claude’s desktop app (macOS or Windows). Nothing else until Step 4.
To practice first, download the made-up household from the repo (Code, then Download ZIP). Keep its ANSWERS.md beside you, not in your folder, and answer the Step 3 interview as that household. Do yours later, in a new empty folder.
Step 1: Choose where to run it
Claude Code (the Code tab), if you want the folder and scripts kept on your computer. In Manual mode it asks before it edits a file or runs a command.
Cowork, for the easiest start (not tested here). Since October 6, 2026 it runs in the cloud by default on Pro and Max, so files it opens are processed on Anthropic’s servers.
Either way, what Claude reads goes to Anthropic’s model, and Anthropic’s Cowork safety page says to “avoid granting access to local files with sensitive information, like financial documents.” If that settles it, use only the practice household.
You should see: the Code tab or Cowork open.
If it goes wrong: no Code tab? It needs a paid plan.
Step 2: Make the folder and turn memory off
Make an empty folder used only for this, outside iCloud, OneDrive or Dropbox. In the Code tab, choose it with the project folder control next to the environment selector; in Cowork, connect it to a new task. Claude can read anything in it without asking. Practicing? Copy in only the household’s statements/ and downloads/ folders now. Then turn memory off, so balances aren’t saved to Claude’s memory:
Claude Code: set the mode selector under the prompt box to Manual, then type
/memoryand switch auto memory off.Cowork: switch Memory off in the + menu before you paste the prompt.
Last, check the model training setting in your Privacy Settings. With it on, Anthropic keeps chats and coding sessions for up to five years instead of 30 days.
You should see: your folder’s name in the session, and Manual in the mode selector.
If it goes wrong: started a Cowork task with Memory on? Start a new one.
Step 3: Paste the prompt and answer the interview
Paste the prompt from the end of this post as your first message. In Manual mode, approve requests that stay inside your folder; refuse any that name a path outside it, like /tmp.
You should see: README.md with “Where we left off” and “Open questions” at the top, then a stop until you reply “confirmed”.
If it goes wrong: your computer offers to install developer tools? Say yes; this setup uses git and Python.
Step 4: Bring in your transactions
Reply “confirmed”, and Claude asks how you get your transactions. Drop into the folder 12 to 24 months of statements as PDFs, a CSV download from each bank and card site, and a recent paystub; Claude files the downloads into exports/, untouched. Get an OK from anyone whose accounts these are. Practicing? They’re already in.
Rows that two downloads share count once, and Claude says how many. Two identical coffees on one day stay two, and Claude should list such pairs for you; in the re-test it did, with the statement as proof.
Claude also writes a check that refuses any account that doesn’t match its download’s running balance or its statement. If a check fails, fix the data, never the check.
You should see: on the practice run, the card download refused for stopping a row short. The check printed this on the practice files; your wording will differ:
STOP: fernleaf was NOT written. Nothing was loosened to make it pass.
statement 2026-06-24 to 2026-07-23 (FernleafCard_Statement_2026-07-23.pdf): previous balance minus rows = new balance on the statement. Expected 1437.49, got 1350.06. Off by 87.43.
on the statement but not in the download: 2026-07-20 HEARTHSTONE MARKET -87.43Say yes, and Claude adds the missing row from the statement.
If it goes wrong: Claude can’t read a statement? It’s usually a scan (download the original) or password-protected (open it yourself, print it to PDF, and never paste the password into the chat).
Step 5: Rebuild your history from statements
Reply “confirmed” and Claude starts on the statements. It’s the slow step; don’t skip it. Claude checks each closing balance against that period’s transactions; where they disagree, the statement wins and Claude shows you the fix. Then ask Claude for the statement check as a table, one row per statement, and compare two rows with the PDFs yourself.
Each investment account gets a yearly bridge: start, money in, money moved out and where it went, market change, end. Market change is what’s left over, so a transfer missing from your files would look like a market loss.
You should see: on the practice run, every statement period tied to the cent, and a bridge showing 35,000.00 moved out to checking beside a market loss of 1,477.81.
If it goes wrong: a gap won’t close? Leave it open and look for a missing row, or a charge still pending when you downloaded.
Step 6: Set your budget
Build the plan with Claude line by line in ledger/plan.csv. It’s the one file you edit and save yourself in a spreadsheet; open the other CSVs only to look, since saving can rewrite their dates. In Numbers, use File > Export To > CSV (Cmd-S leaves plan.csv unchanged).
You should see: on the practice run, each budget line marked ok, watch, over or not posted, and a warning that the data ends in August.
If it goes wrong: the plan check names a row? Fix that cell (plain numbers, minus signs on spending), export as CSV again, and ask Claude to rerun the budget. In the test it named all three planted mistakes:
PLAN HAS ERRORS. Fix these rows in the spreadsheet and save as CSV again:
plan.csv row 4 (Mortgage): amount '-$2,140.00' is not a plain number like -2140.00. Remove $, commas, brackets, spaces and %.
plan.csv row 11 (Electric): spending needs a minus sign, got 141.11
budget_map.csv row 22 (Fees & interest): maps to 'Fees and interest', but plan.csv has no line with that name. Was it renamed? Closest line in plan.csv: 'Fees and interest & misc'.Step 7: Turn on the weekly routine
Once the numbers match your statements, Claude writes the routines into MAINTENANCE.md. The prompt tells it never to log in to your bank, so each week you drop fresh downloads into exports/ and type:
Run the weekly routine in MAINTENANCE.md
On another day, open the same folder in a new session (in Cowork, Memory off first) and type the line the prompt puts at the top of README.md.
You should see: MAINTENANCE.md with weekly and monthly routines. On the practice run, a new session with no starter prompt ran the weekly routine and, asked to delete a duplicate statement, archived it instead. That rule held only by luck, so v3 copies the ground rules into CLAUDE.md. The re-test found them there.
If it goes wrong: no scheduled check? Type the weekly line yourself; in Claude Code, scheduled checks run only while the app is open and the computer is awake.
What’s real, and what isn’t yet
Before publishing, I ran v2 once on one made-up household, in a Claude Code test session held to its folder by instructions, not the operating system’s sandbox. Its scripted user had also designed the planted problems, so it answered more cleanly than a beginner would. It caught 7 of the 8 problems the prompt names (the eighth, the two coffees, came out right but silently), all 4 named by rules added after review, and all 4 it was never told about.
The rules are instructions, not locks. Twice in the first run the model wrote a scratch file outside the folder, then reported it. v3 added “keep every file inside the folder”, and in the re-test it did it again anyway. Manual mode is the stronger guard: it asks before it runs a command, so you can refuse one that reaches outside your folder. The git history stays in your folder too; never add a remote, and if you share the folder, you share its history.
A second, shorter run checked v3’s changes in Phases 1 and 2 only. Not tested: Cowork, scheduled checks, real bank exports, a real beginner, or a computer without developer tools. Made-up data is tidier than yours, and this is written for a US household.
The idea isn’t new: plain-text accounting tools like hledger and Beancount have kept books in plain files for years, and plaintextaccounting.org lists Claude Code setups.
Start here
Do Steps 1 to 3 today on the practice household. My guess: a first useful view in an afternoon, and a system you trust in a few weeks.
The prompt
Copy everything in the box, or get it from the repo. The test ran v2; this is v3, with five small fixes from it.
You're helping me build a personal finance system for my household that I can trust and keep up for years. Work only in the folder I've opened or connected for this task, and keep every file you make inside it, even temporary ones. Go in the phases below and don't start a phase until I've confirmed the one before. Ask me one question at a time. Answer in plain language, use tables, and keep it simple.
WHY THE ORDER MATTERS
A spending dashboard takes an afternoon, but it will be wrong in ways neither of us can see. The value comes from three things built first: one source of truth, every number traceable to a document, and the context about my household written down in files (chats end; files don't). Build those before any charts.
GROUND RULES (every session)
1. Scripts do the arithmetic; you do the reasoning. Never type a number onto a page or report by hand. Change the data, re-run the script, show its output. Store and add amounts exactly, to the cent. If a check fails, stop and show me. Never loosen a check, a tolerance or a total to make it pass.
2. When numbers disagree, this order settles it: statements > ledger CSVs > any app or bank download > spreadsheets I keep > any page or report. Fix the lower one, never the higher (raw downloads in exports/ stay untouched; note the difference instead).
3. Every ledger row carries a source (which document or export) and a confidence (exact or estimate).
4. Read-only by default. Never change anything in my bank, card or any app I use on your own. If something needs fixing there, list it and wait for my yes on each item. Never change amounts or dates, and never delete.
5. Never type passwords or answer MFA prompts. If something asks for a login, stop and tell me.
6. Balances, account numbers and transactions are private. Report them to me in chat and keep them in the folder, never in memory or shared notes.
7. Keep a dated decision log at the bottom of README.md ("what, decided by whom, when"). Once I close a topic, don't reopen it. Keep two short sections at the top of README.md: "Where we left off" and "Open questions". Read them at the start of every session and update them at the end.
8. Make the folder a local git repo and commit after every change with a clear message. Never add a remote or push. If git isn't available where you're running, tell me, and save a dated copy of any file to archive/ before you change it.
9. You're not a licensed financial advisor. Give me frameworks, facts and trade-offs, not personal recommendations, and end every projection with a short note saying so.
PHASE 1: Know the household (one session)
Interview me, one question at a time: who's in the household; every account and whose it is (mine, partner's, joint); take-home pay, savings taken out before pay, and the pay schedule; loans and their rates; properties; recurring bills; goals and why they matter; how risk-averse I am; how I like answers. Write it to README.md. Copy the ground rules above into CLAUDE.md in the folder (Claude Code reads it at the start of every session), and put one line at the top of README.md saying what I should type to pick up where we left off. Create the folder map:
ledger/ CSVs, the book of record
statements/ PDFs, named by account and month
scripts/ Python, standard library where it will do (ask me before installing anything)
exports/ raw pulls, never edited
reports/ outputs
archive/ anything retired
Show me the README and the map, then wait.
PHASE 2: Get the data in
Ask me how I can get my transactions and use the simplest option that works for me:
- CSV (or OFX/QFX) downloads from each bank and card website;
- an export from a budgeting app, aggregator or spreadsheet I already use;
- a read-only connector to my finance app, if one is installed in Claude;
- the PDF statements alone, if that's all I have (slower, but it works).
Save every raw file untouched in exports/<date>/. Then write scripts/ingest.py that:
- reads each source through a small per-account config (its columns, date format, separator and decimal mark, which sign spending has, and which account it belongs to, so no account comes in from two sources), because every bank formats its download differently;
- loads only posted rows (pending ones change before they post) into ledger/transactions.csv, each with a stable id: the bank's own id if the file has one, otherwise account, date, amount and payee plus a counter, so two real identical charges stay two (list any such pair for me to confirm);
- classifies rows with ledger/rules.csv (payee pattern -> category and kind: spend, income, transfer, loan, rental...), with ledger/overrides.csv (one-off decisions I make in chat) always winning;
- treats card payments and moves between my own accounts as transfers, never spending, and refunds as negative spending, never income. Each transfer needs its other side in the ledger within a few days; ask me about any that don't have one;
- matches against rows already in the ledger, HOLDS possible duplicates in ledger/held.csv for me instead of adding them, remembers my answers, and changes nothing if run twice on the same files;
- never deletes anything. It checks each account against a total it didn't compute (the download's running balance, or the statement's opening and closing balance for the same dates), refuses to write that account if they don't match, and says by how much. Tell me where each account's total comes from. Rows no statement covers yet stay marked unreconciled.
Then show me monthly totals and the rows it couldn't classify. I'll tell you what they are, and you add rules.
PHASE 3: Rebuild history from statements
Go through statements/ year by year. First check each statement adds up by its own summary (opening balance, listed totals, closing balance); if it doesn't, you misread it, so tell me which numbers. Record each closing balance and date in ledger/balances.csv (as_of, account, amount, source, confidence). Write scripts/reconcile.py and run it after every ingest: per account and per statement period (the statement's own dates, not calendar months), the opening balance plus the posted rows must equal the closing balance, to the cent. Where they disagree, the statement wins: find the missing, extra or wrong row and show me the fix. Never add an adjustment row to force a match; if you can't find the cause, show me the gap and leave it open. For months my downloads don't reach, ask me whether to read transactions off the statements or keep balances only.
For investment accounts, build ledger/year_bridge.csv per account per year: start, money in, money moved out (and where it went), market change, end. Money in and out means only money crossing the account's edge (contributions, withdrawals, transfers); dividends, interest, fees, buys, sells and reinvestments belong to market change. Check the bridge against the statement's own summary where it prints one, and flag any year where market change is far from what the market did (market figures from the statements, from me or from a source you name, never from memory). That way money I moved is never mistaken for money the market lost.
PHASE 4: The budget, which I own
Build ledger/plan.csv with me line by line, with columns block, line, amount (per month, spending negative; yearly costs as a twelfth), fixed (1 = set bill, 0 = I control it), note, paid_by (bank or card). The blocks:
- income
- committed lines: home, auto, food, utilities, subscriptions, kids, health...
- expected lumpy costs: repairs, doctors, annual fees, a tax set-aside
- savings
What's left after the committed lines, the lumpy-cost set-asides and savings is the flex pool, the money I can spend freely. What's left of it at month end is the cushion.
ledger/budget_map.csv links each category to a plan line by name.
I'll edit plan.csv myself in a spreadsheet app and save it back as CSV. So write scripts/plan.py --check and have every build run it first. It checks for plain numbers, minus signs on spending, known blocks, and no line renamed out from under budget_map. If something's wrong, it stops and names the row.
scripts/budget.py shows month to date by line (ok / watch / over / not posted), flex left, cushion on the current pace (set bills at plan, the rest at pace), and what's on cards (next month's cash) vs what came straight from the bank.
PHASE 5: Routines (only once the numbers match the statements)
Write MAINTENANCE.md with a cadence:
- weekly, 5 minutes: sync, budget, anything odd
- monthly, 20 minutes after statements land: reconcile, month-end review
- quarterly: investments, net worth, the year bridge
- annual: taxes, history, insurance and estate check
- event-driven: new account, loan, job or property
You can't log in to my bank, so each routine starts with me dropping fresh downloads into exports/ (or a read-only connector, if I use one). If this app supports scheduled tasks, set up the weekly and monthly checks as scheduled tasks whose prompts point at MAINTENANCE.md and the scripts instead of restating any numbers. If it doesn't, MAINTENANCE.md is my checklist and I'll start them by hand. Any page or dashboard is only a render of script output; never edit a number on it.
PHASE 6: Questions worth asking
Once it's trustworthy, help me think with the ledger:
- my time-weighted return against a simple benchmark that matches my mix (values from me or a source you name, never from memory), and my money-weighted return (what I actually earned, given when I added or took out money); from monthly statements both are estimates, so label them that way
- how much I saved vs how much was growth
- where money went when it left an investment account
- whether we're covered: insurance, will, beneficiaries, emergency fund, umbrella
- what "enough" looks like vs "more"
Frameworks and math, not advice.
Start with Phase 1: ask me your first question only.The why behind this prompt: Knowing Got Fast. Getting It Right Didn’t.
Not financial advice. The decisions about your money stay yours.
The views expressed here are my own and are not related to or reflective of my work or any organization I am affiliated with.

