Personal Finance in Obsidian with hledger and Claude Code: Complete Setup Guide
by mandalivia.com · 2026-04-12
✓ Opened with WebFetch on 2026-10-15
Read the original ↗Keep a plain-text ledger in the same vault as your trip and project notes; the agent reads the notes, finds every related transaction, asks about the ambiguous ones, tags them and writes a cost summary.
- Imports budgeting-app CSVs into an hledger journal using rules the agent helped write.
- Asks Claude to read a trip note plus daily notes and find every matching transaction, including flights booked weeks earlier.
- Confirms the ambiguous ones by hand; Claude tags the rest and appends an Expenses table to the note.
- Runs a Sunday report headless with claude -p, scoped to two folders and only Read, Write and hledger.
“The prompt is the specification.”— mandalivia.com, Blog
Summary written by Agent Cookbook. See the original for the full context.
Adapted by us from what the source described. Fill in the [BRACKETS].
The prompt
Set it up
- Keep the journal in git; commit before every session.
- Write a README in the finance folder with tag conventions; the agent reads it first.
- Run the prompt, review the ambiguous list, confirm.
- Query later with hledger bal tag:trip=...
Common failures
- Misspelled tags quietly split totals. Use one case convention.
- Unanchored regex in import rules matches too much (NA matches 'Donations').
Variations
- Weekly report via claude -p with --allowedTools 'Read,Write,Bash(hledger:*)'.
- Tag hosted visits or home projects the same way.