Amp Usage Watch logo

Amp Usage Watch

Community
paulinevos
amp-usage-watch

Monitor Amp credits or allowance and notify when running low, or watch an Amp thread ID or URL against a user-provided USD spending cap. Use when asked to watch Amp usage, set a thread cap alert, inspect a monitor, or stop monitoring.

Overview

Publisherpaulinevos
Repositoryclaude-stuff
Skill nameamp-usage-watch
Stars
64
Forks
0
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by paulinevos on GitHub. Read the source before you install it.

Installation

Install the Amp Usage Watch AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/paulinevos/claude-stuff/tree/main/plugins/amp-workflow/skills/amp-usage-watch
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/paulinevos/claude-stuff.git /tmp/claude-stuff
mkdir -p .claude/skills
cp -r /tmp/claude-stuff/plugins/amp-workflow/skills/amp-usage-watch .claude/skills/amp-usage-watch
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Amp Usage Watch in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Amp Usage Watch on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Amp Usage Watch is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Watch Amp usage

Use the bundled scripts/monitor.py with Python 3.9+ on macOS/Linux. It polls amp usage and, for a thread cap, amp threads usage <id>. A cap is an alert on total lifetime thread cost, including spending before monitoring started. It does not stop Amp or enforce a spending limit. State and deduplication persist under ~/.local/state/amp-monitor/<name>/.

Take the thread ID/URL and cap amount from the request. Interpret an unqualified cap as USD, and say so. Ask only if the intended thread or amount is missing or ambiguous. Do not use another currency as USD without resolving that choice. Accept --notify terminal|macos|both, defaulting to terminal. Default polling is every 60 seconds, low credits is $5, and low allowance is 10% remaining. Preserve any user-specified thresholds or interval.

Resolve scripts/monitor.py relative to this skill, not the user's checkout. Run help when needed. Check authentication and parsing with a single sample before starting a watcher:

sh
python3 <skill-dir>/scripts/monitor.py check --thread T-actual-id --cap 10

This prints measured values and coverage warnings without sending notifications. If authentication fails, help the user sign in via amp login. If the CLI output is unfamiliar, inspect amp usage and amp threads usage <id> directly. Do not invent a balance or cost. A verified --credit-pattern, --allowance-pattern, or --thread-pattern can adapt the parser: each must match exactly once with one numeric capture. Allowance patterns capture percent remaining; money patterns capture USD. Pass patterns as quoted arguments, not shell-generated code.

For live terminal notifications, run in the foreground:

sh
python3 <skill-dir>/scripts/monitor.py run --thread T-actual-id --cap 10 --notify terminal

When the agent must hand control back, start a background watcher:

sh
python3 <skill-dir>/scripts/monitor.py start --thread T-actual-id --cap 10 --notify both

Use the user's chosen notification mode; do not silently switch terminal to macOS. Background terminal output/bells go to monitor.log, not a detached user's terminal; report the log path and use foreground execution or tail -f for live terminal delivery. macOS notifications use osascript and may require execution permission outside a sandbox. Delivery also depends on system notification settings. Background watchers survive this chat ending, but do not automatically restart after logout/reboot.

Thread watchers also check account balances by default. Use --thread-only when requested, or when the user wants the thread monitored despite unavailable account data. Account-only monitoring omits both --thread and --cap. Use --name to distinguish configurations; by default a watcher is named after its thread, or account. One running watcher is allowed per name. To change a running cap, stop the watcher and wait until status says it has exited before starting a new configuration.

sh
python3 <skill-dir>/scripts/monitor.py status --thread T-actual-id
python3 <skill-dir>/scripts/monitor.py stop --thread T-actual-id

Stop requests end only the watcher, after any in-flight CLI request. Never imply that the Amp agent was stopped. Alerts fire once per threshold crossing and rearm after a balance/allowance recovers. Notification failures retry on later polls. Poll errors are visible and trigger a monitor-health notification; five consecutive failures stop the watcher by default. Check status and logs rather than claiming it is still protecting the budget.

Return the thread, cap in USD, monitored balances/allowance coverage, notification mode, interval, watcher name and status/log paths. Do not launch a watcher merely because someone asks to create this skill or script.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Amp Usage Watch AI skill do?

Monitor Amp credits or allowance and notify when running low, or watch an Amp thread ID or URL against a user-provided USD spending cap. Use when asked to watch Amp usage, set a thread cap alert, inspect a monitor, or stop monitoring.

Why use Amp Usage Watch on TypingMind?

Because you install it once and use it with any model. Amp Usage Watch is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Amp Usage Watch in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/paulinevos/claude-stuff/tree/main/plugins/amp-workflow/skills/amp-usage-watch. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Amp Usage Watch?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Amp Usage Watch?

As many as you like. As long as a model supports skills, you can use Amp Usage Watch with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Amp Usage Watch AI skill free?

Yes. It is published on GitHub by paulinevos under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇