Claude Tools / Monitors / Token Budget
Illustrative session-lifetime background process
Token Budget
Reports context growth and warns when the session approaches a configured limit.
costTemplate 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
- The monitor starts for the session or selected skill
- It watches files, services, logs, or events
- State changes become structured notifications
- The process stops when the session ends
Audit lens
What Bear Brown 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