About this use case
The poster used Claude to tidy the chart of accounts, write Beancount queries, and generate a script producing values for the quarterly VAT report.
What they did
The poster kept the company books in Beancount and used Claude Code against that plain-text setup, but was cautious about letting it edit the ledger directly. For a Swiss quarterly VAT filing, Claude first helped tidy the chart of accounts, then wrote Beancount queries, and finally produced a small script that outputs the values to copy into the return; later they extended the same CLI to generate Swiss QR-bill invoices and book them in the ledger, while leaving fuzzy tasks like reading receipts or guessing accounts to the agent.
Prompt
In my Beancount ledger at [path], tidy the chart of accounts by suggesting merges and renames for [problem areas]. Then write a script that uses Beancount queries to produce the values for my [quarterly VAT return boxes]. It's done when the script runs and prints each box with the transactions behind it. Show me the proposed account changes before editing any files.
Reported outcome
It replaced manual VAT prep with a repeatable script-based workflow and expanded into invoicing, statement importers, and possible year-end reports. The poster says exact math and statutory outputs stay in deterministic CLI code, with the agent orchestrating rather than doing the calculations.
Submitted by the archiving bot. Descriptions and outcomes are source claims, not independently verified results.