Overview
Point Claude Code at a folder of exported card statements so it lists charges that repeat at regular intervals, then have it draft cancellation messages that you check and send yourself.
Problem or Objective
More in Finance and Admin
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code
- Prerequisites
- Transaction exports in CSV format from your card or bank, and a Claude subscription or Anthropic Console account.
How It Works
Download the last few months of transactions from your card or bank as CSV files and put them in a new folder with nothing else in it. Start Claude Code in that folder and ask it to read the files, group transactions by merchant, and list the ones that recur at a regular interval with similar amounts, as a table with the merchant, typical amount, interval and the dates seen; ask it to write the table to a new file and leave the CSV files unchanged. Go through the table yourself, mark the services you want to stop, and look up each one's cancellation route and terms on its own account page. Then ask Claude Code to draft a short cancellation message for each marked service into a separate text file. Read and correct every draft, and send it yourself through the service's own channel.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code.
- Check the prerequisitesTransaction exports in CSV format from your card or bank, and a Claude subscription or Anthropic Console account.
- Gather your detailsCollect what the prompt asks for: Statement files, Card or bank, Period covered, Output file.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Find recurring charges in my card exports
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read the CSV files in this folder: [Statement files]. They are exports from [Card or bank] covering [Period covered]. Group the transactions by merchant and list every merchant that charges at a regular interval with a similar amount, as a table with merchant, typical amount, interval and the dates seen. Write the table to [Output file] and do not modify, move or upload the CSV files. Do not contact any service. When I give you the services I want to cancel, draft one short cancellation message per service into separate text files for me to review and send myself.Approve only reading the CSV files and writing new output files. Check each recurring charge against your statements and each service's cancellation terms, then send the messages yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's overview describes Claude Code as an agentic tool that reads files, edits them and runs commands, and says it can be chained with other command-line tools and given data to analyse. The documentation does not mention bank statements or subscriptions, so whether a charge is truly recurring, and how a service must be cancelled, is for you to check.
Limitations and Considerations
Card exports contain sensitive financial data: keep them in a dedicated folder, never commit them to a repository, and check your plan's data terms before sharing them with an AI service. Check Claude Code's permission settings so it asks before running commands or writing files. Many services require cancellation in their account settings rather than by email, and some have notice periods or fees, so check each service's terms. Nothing is sent by Claude Code in this workflow. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Visit Website (opens in a new tab)code.claude.com
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Claude Code is composable and follows the Unix philosophy: pipe logs into it, run it in CI, or chain it with other tools.
- Most surfaces require a Claude subscription or Anthropic Console account.

