Rename messy invoices for tax filing
Someone points Claude Code at a messy invoice folder; it reads each file, renames it to a date-vendor pattern, and files it in the right folder.
- Agent or tool
- Claude Code
- Topic
- Finance
- Reported on
- Lenny's Newsletter
- Added
- 2026-10-15
Why it matters
Money tasks are tedious but high-stakes, which is exactly where a careful agent helps: it does the checking and paperwork while a person keeps the final say. It is one of 156 sightings filed under Finance on Agent Sightings (number 23 by interest), and one of 255 involving Claude Code.
How you could try it
Here is a reusable prompt, written by us in our own words, that captures the task. Paste it into Claude Code or any similar agent and adjust the details to your situation.
For every PDF or image in this invoices folder, read the vendor and date, rename it to YYYY-MM-DD Vendor - Invoice - ProductOrService.pdf, and move it into the matching year/month folder. Show a plan first.
Tip: Keep the agent in 'propose, don't pay' mode: let it gather numbers and draft messages, and approve any payment or account change yourself.
Source
Read the original first-hand account on Lenny's Newsletter: https://www.lennysnewsletter.com/p/everyone-should-be-using-claude-code. Our summary is a paraphrase; details are in the source.
Featured in these guides
Built an AI agent? Feature your agent on Agent Sightings, free submission or a featured spot.
Browse more like this
Related sightings
- Manage investments, taxes and credit
- Extract receipt data for freelancer bookkeeping
- Draft a tax filing from bank statements
- Negotiate a lower fiber bill with AT&T chat
- Book the best-priced flight and later refund it
- A contractor's personal Claude Code agent allegedly ran inside a secure Pentagon system for two months