Claude Tools / Monitors / Token Budget

Illustrative session-lifetime background process

Token Budget

Reports context growth and warns when the session approaches a configured limit.

cost
PreviewSource shapeAudit notes
$starter/monitors/token-budget

Template signals

Status

Draft

Audit

Not run

Collection

Monitors

Anatomy

What it contains

  • A persistent command
  • An activation condition
  • A structured notification stream

Lifecycle

How it works

  1. The monitor starts for the session or selected skill
  2. It watches files, services, logs, or events
  3. State changes become structured notifications
  4. The process stops when the session ends

Audit lens

What Zebonastic would check

  • CPU, memory, and polling costs are bounded
  • The process has an explicit shutdown path
  • Filesystem and network scope match the stated purpose

Content preview

Example configuration

Editable starter content6 lines
{
  "name": "test-watch",
  "command": "node scripts/watch-tests.js",
  "when": "always",
  "sandbox": true
}

Related

More Monitors

← Back to Monitors