ROKH
← All recipes

Bank lines categorised by your own past decisions

parts checkedwith an AI agent

What you get

Import the monthly bank file and each line arrives already assigned to the account you used for similar lines before; you only confirm or correct the few it is unsure about.

Why this combination

A small machine-learning add-on learns from your ledger history instead of rules you write, so it picks up your own habits, including local shop names no bank app recognises.

Parts

smart_importer GitHubLearns from your past entries and suggests accounts for new bank lines.licence: MIT311 starslast update: July 26, 2026OpenSSF Scorecard: 4.5/10
ofxtools GitHubReads OFX bank statement files.licence: GPL-3.0348 starslast update: November 26, 2026OpenSSF Scorecard: 4.9/10
beancount GitHubDouble-entry bookkeeping in plain text files.licence: GPL-2.06,208 starslast update: August 23, 2026

What was checked

On November 26, 2026 a script checked all 3 parts: each exists, is not archived, was updated within the last 12 months and has a known licence. The parts were chosen so their inputs and outputs fit together.

Nobody has yet run this exact combination end to end on real data. Build it on a copy of your data first; the prompt below asks your AI agent to tell you plainly what does not work.

Limits, honestly

Needs a few months of categorised history to learn from; your bank must export OFX or CSV.

How to start

It runs on your own computer. Copy the prompt into an AI agent (Claude Code or similar); it installs the parts, joins them, and runs a test with sample data before your real files.

Prompt for your AI agent

Build this for me: Bank lines categorised by your own past decisions.
What I want to get: Import the monthly bank file and each line arrives already assigned to the account you used for similar lines before; you only confirm or correct the few it is unsure about.

Use these open projects and data:
- smart_importer: https://github.com/beancount/smart_importer (MIT)
- ofxtools: https://github.com/csingley/ofxtools (GPL-3.0)
- beancount: https://github.com/beancount/beancount (GPL-2.0)

Why this combination: A small machine-learning add-on learns from your ledger history instead of rules you write, so it picks up your own habits, including local shop names no bank app recognises.
Known limits: Needs a few months of categorised history to learn from; your bank must export OFX or CSV.

Run it on my computer. Tell me first what you will install and where.
Explain each step in plain words for someone who does not program.
Do not ask me for passwords or keys and do not use administrator rights.
Before installing anything, check that each project is still maintained and its licence allows my use. Do not add other agent skills, MCP servers or plugins without showing me their code first.
When it works, tell me how to open it again. If something does not work, say so plainly.

Fits

Accounting and financeHome and field servicesShop and retail