Add to Claude

Guides · For agents

Change prices across a list, with a dry run and an undo

Tools: sift_fix_dry_run, sift_fix_apply, sift_fix_undoWorks with Claude Code

Add 10% to every price as a dry run, apply it to a new file with a receipt, and undo it byte for byte if you need to. In the test file, 8 of 12 prices change and 3 are flagged for you.

Ask your agent

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

Use Sift with /path/to/rules.prices.json on /path/to/price_list.csv. Dry run the number fix on the price column, adding 10%. Tell me what would change and what was flagged, then apply it if I say yes.

A price change touches most rows, so the rules file's share-of-rows limit has to allow it. This one allows up to 90%: {"guardrails": {"stop_if_share_of_rows_changed_over": 0.9}}. With the usual 0.2, Sift stops before writing anything.

What Sift sends back

Prices that would change8 of 12 (66.7%)
Flagged, left as they were3: a currency symbol, not a number, two decimal points
Blank1
After applyA new file, a receipt and a changes-only file. The original is not touched.
After undoThe original rebuilt, matching byte for byte

The sums are exact decimals, rounded half up to each price's own decimal places: 10.00 becomes 11.00 and 4.50 becomes 4.95.

What to do next

Questions

What else can it change this way?
Multiply, round, trim spaces, change case, swap values from a lookup table, reformat dates, strip currency symbols, fill blanks, and set a value where a condition holds. Each one runs as a dry run, then apply with a receipt, then an exact undo.
Does it work on an Excel file?
Fixes work on CSV, which is what makes the undo exact. Save the sheet as CSV first.

One file, no agent? Clean a file by hand in your browser, with nothing uploaded.

More guides

Guide Fix phone numbers with a receipt and an undo Guide Write a rules file Guide Remove currency symbols from a CSV column