cancel

cancel is a command for coding agents from peerjakobsen/smartspender. It costs 8 tokens per session (958 once invoked), scanned A, original, MIT.

A guided browser command for cancelling a subscription service listed in a local subscription record. It follows a saved cancellation guide for that service and tracks whether the subscription is already cancelled.

In plain words
What is it for?
Use it to start cancellation of supported services such as Netflix, Viaplay, or Fitness World. It requires the subscription to be recorded and a browser automation extension to be active.
Why use it?
It removes the need to find the right cancellation steps and repeat them manually. It also reports when a service or cancellation guide cannot be found.

Command

Part of the smartspender plugin — 13 skills, 19 commands shipped together

Install

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.

agentmods
npx agentmods add commands/peerjakobsen/smartspender/cancel
Clone the repo
git clone --depth 1 https://github.com/peerjakobsen/smartspender

Or install smartspender, the plugin that ships this one along with the rest of its 13 skills, 19 commands.

Wrote 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.

agentmods badge for cancel

README.md
[![agentmods](https://agentmods.dev/badge/commands/peerjakobsen/smartspender/cancel.svg)](https://agentmods.dev/commands/peerjakobsen/smartspender/cancel)
Your own site
<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>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 958 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 4d ago against content hash 5a7d1d9b8259, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

commands/cancel.md · 85 lines

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

  1. Normalize the service argument to lowercase, replace spaces with hyphens
  2. Look up the service in subscriptions.csv by matching merchant name
  3. If not found: "Abonnementet '{service}' blev ikke fundet i dine abonnementer."
  4. If already cancelled: "Abonnementet '{service}' er allerede opsagt ({cancelled_date})."
  5. Load the cancellation guide: subscriptions/{service}.md
  6. If no guide file exists: "Ingen opsigelsesguide fundet for '{service}'. Du kan opsige manuelt på {merchant}'s hjemmeside."
  7. Open the service's website in the browser (per the cancellation guide)
  8. Announce: "Jeg har åbnet {service}. Log venligst ind. Sig til, når du er logget ind."
  9. [USER ACTION]: User logs in to the service
  10. [USER ACTION]: User confirms login complete
  11. Navigate to the account/subscription settings page (per guide)
  12. 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?"
  13. 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."
  14. After confirmation, verify cancellation succeeded:
    • Check for confirmation message or email notification on screen
    • Look for updated subscription status on the account page
  15. Update subscriptions.csv:
    • Set status to cancelled
    • Set cancelled_date to today's date (YYYY-MM-DD)
  16. Append the action to action-log.csv:
    • action_type: cancel
    • target: {service}
    • status: completed
    • details: "Subscription cancelled"
    • savings_amount: value from annual_cost in subscriptions.csv

Read the full file on GitHub · 85 lines

Changes

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.

  1. 4d ago First seen · 85 lines · 8 tokens per session scan A 5a7d1d9b8259

Subscribe to this mod's changes

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.