Probably Fine

Plain-text bookkeeping, one year in

· money

On January 1st last year I started keeping our household accounts in a text file. Not a spreadsheet and not an app: a file of dated transactions in a double-entry format, plus a command-line tool that reads it and prints balances and reports. A year later the file is about 4,600 lines long, holds 1,206 transactions, and I still open it most Sunday mornings. Here's how the year went.

The format

Each transaction is a date, a description, and two or more postings that have to add up to zero:

2025-03-08 Pellmore Hardware
    expenses:house:repairs          38.47
    assets:checking

2025-03-14 Paycheck
    assets:checking               2412.60
    income:salary

The tool fills in the missing amount on the last line. That's most of the format. Everything else, budgets and reports and balance checks, is built on top of it, and none of it is clever. If I ever stop using this particular tool, the file can still be read by me, by a short script, or by whoever has to sort out our affairs one day, which matters to me more than it probably should.

Getting data in

I don't type most of it. The bank lets me export a CSV each month, and a 70-line Python script turns that into transactions using a rules file:

# text in the bank's description    account
PELLMORE                            expenses:house:repairs
CORNER GROCER                       expenses:food:groceries
MUNICIPAL WATER                     expenses:utilities:water
TRANSFER TO SAVINGS                 assets:savings

The first matching line wins. Anything that matches nothing lands in expenses:unsorted, and the Sunday job is to empty that account. In January it took me over an hour. By March it was down to ten minutes, and now the whole weekly session, reconciliation included, is about twenty-five.

The rules file has 143 lines now. I'd guess a third of them are dead, matching places we stopped going.

What I got wrong

Too many accounts. I started with 61 expense accounts, because it felt organized. By April I was spending more time choosing between expenses:food:snacks and expenses:food:groceries than recording anything. I merged down to 34 and haven't missed a single one of the others. The question I ask now is whether a number in this account would ever change a decision. If not, it goes into its parent.

Transfers counted twice. Checking and savings come as separate CSV exports. A transfer from one to the other appeared in both, so for six weeks I imported every transfer twice and our savings looked healthier than they were. Now transfers only come in from the checking side, and the importer drops them from the savings file. There's a special skip target in the rules file for exactly that.

Cash. I tried to track pocket money precisely for about a month and gave up. A cash withdrawal now goes to expenses:cash and stays there. It came to $640 for the year, which is a number I can live with not understanding.

Reconciliation

Once a month I add a balance assertion after the last transaction of the statement period: a line saying what the bank says the checking balance was on that day. If the file disagrees, the tool stops with an error until I find out why.

Eleven months out of twelve balanced on the first try. The twelfth was off by $19.99, which turned out to be the yearly renewal for a photo-printing service I'd used exactly once, in 2022. It had been quietly renewing ever since. I cancelled it, and if I'm generous about what my Sunday mornings are worth, that alone almost paid for the year.

Was it worth it?

What I got out of it, roughly in order of how much I care:

What it cost: about twenty-five minutes a week, plus one bad weekend last January writing the import script. I'm doing a second year. The only change is a new file for 2026, which starts with a single transaction carrying the closing balances over from the old one.

← all posts