Logo van Amp Usage Watch

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.

Overzicht

Uitgeverpaulinevos
Repositoryclaude-stuff
Skillnaamamp-usage-watch
Sterren
64
Forks
0
Meegeleverde bestanden
1
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door paulinevos op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Amp Usage Watch in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/paulinevos/claude-stuff/tree/main/plugins/amp-workflow/skills/amp-usage-watch
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Amp Usage Watch in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Amp Usage Watch automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Amp Usage Watch niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill 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.

Waarom Amp Usage Watch gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Amp Usage Watch bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Amp Usage Watch in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/paulinevos/claude-stuff/tree/main/plugins/amp-workflow/skills/amp-usage-watch. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Amp Usage Watch gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Amp Usage Watch gebruiken?

Zoveel als je wilt. Je kunt Amp Usage Watch gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Amp Usage Watch gratis?

Ja. Deze skill is door paulinevos op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇