Add to Claude

Guides · Beyond customer lists

Tidy expense categories before your accountant sees them

Tools: sift_fix_dry_run, sift_fix_apply, sift_fix_undoWorks with Claude Code

Write your accountant's categories as a lookup table, and Sift swaps each messy category for the right one: Trains and Taxi become Travel, SaaS becomes Software. Anything not in the table is flagged and left as it is. In the test file, 11 of 20 lines change and 3 are flagged.

Ask your agent

With Sift connected (setup takes three steps), paste this and swap in your own paths.

Use Sift with /path/to/rules.card-spend.json on /path/to/card_spend_october.csv. Dry run map_values on the category column with the accounts_categories table. Tell me what would change and which lines were flagged, then apply it if I say yes.

The table lives in the rules file, so it is the same every month: {"value_maps": {"accounts_categories": {"Trains": "Travel", "Taxi": "Travel", "Food & drink": "Meals", "Subsistence": "Meals", "SaaS": "Software", "Subscriptions": "Software", "Stationery": "Office supplies", "Office": "Office supplies"}}}. The same file sets a 60% limit on rows changed, and makes txn_id and amount hands-off.

What Sift sends back

Lines that would change11 of 20 (55%)
Already one of the accountant's categories5
Flagged, left as they were3: travel in lower case, Postage, Misc
Blank1
Inside the 60% limitYes
After applyA new file, a receipt and a changes-only file. The original is not touched.

The dry run names each swap with its count, such as Trains to Travel on 2 lines. The table's entries are yours, so naming them gives nothing away.

What to do next

Questions

Why doesn't Sift match travel to Travel by itself?
Because a near match is a guess. Sift swaps only the exact values in your table, and flags the rest for you to decide.
Can it change the amounts by mistake?
No. The rules file lists amount and txn_id as hands-off, and Sift refuses any fix that would touch them.
Can I undo it?
Yes. Undo rebuilds the original from the receipt and checks it byte for byte.

Fixes work on CSV, which keeps the undo exact. Save an Excel sheet as CSV first.

More guides

Guide Change prices across a list, with a dry run and an undo Guide Flag big refunds and orders for review, with an undo Guide Write a rules file