Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/peerjakobsen/smartspender/cancelgit clone --depth 1 https://github.com/peerjakobsen/smartspenderWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/peerjakobsen/smartspender/cancel)<a href="https://agentmods.dev/commands/peerjakobsen/smartspender/cancel"><img src="https://agentmods.dev/badge/commands/peerjakobsen/smartspender/cancel.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00008 | $0.00958 |
| Opus 5 | $0.00004 | $0.00479 |
| Sonnet 5 | $0.00002 | $0.00192 |
| Haiku 4.5 | $0.00001 | $0.00096 |
Grade A, and why
cancel scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/smartspender:cancel
Trigger
/smartspender:cancel [service]- "Opsig Netflix"
- "Afmeld Viaplay"
- "Cancel my Fitness World subscription"
Arguments
| Argument | Required | Values | Default |
|---|---|---|---|
| service | yes | Service name matching a file in subscriptions/ |
- |
The service argument is case-insensitive and matched against known subscription file names (e.g., netflix, viaplay, fitness-world).
Prerequisites
- Subscription detected in subscriptions.csv
- Cancellation guide exists in
subscriptions/{service}.md - Claude in Chrome extension active
Workflow
- Normalize the service argument to lowercase, replace spaces with hyphens
- Look up the service in subscriptions.csv by matching
merchantname - If not found: "Abonnementet '{service}' blev ikke fundet i dine abonnementer."
- If already cancelled: "Abonnementet '{service}' er allerede opsagt ({cancelled_date})."
- Load the cancellation guide:
subscriptions/{service}.md - If no guide file exists: "Ingen opsigelsesguide fundet for '{service}'. Du kan opsige manuelt på {merchant}'s hjemmeside."
- Open the service's website in the browser (per the cancellation guide)
- Announce: "Jeg har åbnet {service}. Log venligst ind. Sig til, når du er logget ind."
- [USER ACTION]: User logs in to the service
- [USER ACTION]: User confirms login complete
- Navigate to the account/subscription settings page (per guide)
- Follow the cancellation steps from the guide:
- Navigate through the cancellation flow
- Handle retention offers by declining them (inform user about offers but proceed with cancellation)
- If the guide mentions retention tactics, warn the user: "De vil sandsynligvis tilbyde en rabat. Skal jeg fortsætte med opsigelsen?"
- When reaching the final confirmation step:
- Announce: "Opsigelsen er klar til bekræftelse. Gennemse venligst detaljerne på skærmen og bekræft, at du vil fortsætte."
- [USER ACTION]: User confirms ("Ja, fortsæt" / "Nej, annuller")
- If user declines, abort: "Opsigelse afbrudt. Abonnementet er stadig aktivt."
- After confirmation, verify cancellation succeeded:
- Check for confirmation message or email notification on screen
- Look for updated subscription status on the account page
- Update subscriptions.csv:
- Set
statustocancelled - Set
cancelled_dateto today's date (YYYY-MM-DD)
- Set
- Append the action to action-log.csv:
action_type: canceltarget: {service}status: completeddetails: "Subscription cancelled"savings_amount: value fromannual_costin subscriptions.csv
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 85 lines · 8 tokens per session scan A 5a7d1d9b8259
cancel is a command published in the GitHub repository peerjakobsen/smartspender (5 stars, last pushed 7mo ago), licensed MIT. It adds 8 tokens to every session and 958 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
cloudflare-durable-objects:setup
Interactive Durable Objects project initialization. Scaffolds new DO project with proper bindings, migrations, and boilerplate code.
cloudflare-workers:optimize
Analyze and optimize Cloudflare Workers performance. Checks bundle size, caching, memory usage, and provides actionable recommendations.
better-auth:add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
better-auth:setup
Interactive setup wizard for better-auth authentication. Guides through database, framework, OAuth providers, and plugin configuration.
cloudflare-r2:presigned-url
Generate presigned URLs for secure client-side uploads or downloads.
bun:migrate
Migrate existing Node.js/npm projects to Bun.