agent-cost-guard - Monitor token cost and agent parallelism.
Monitors token cost per loop, detects token maxing, and limits parallel subagents to control cost and context pressure.
Tags
Updated: 2026-09-11Typical Inputs
Typical Outputs
What this skill does
- Monitor token cost
- Detect token maxing
- Limit parallel subagents
- Check loop bounds
- Alert user on limit excess
Inputs
- Subagent count
- Loop bounds
- Effort level
- Context pressure
- scripts/validate-tool-args.py script
Outputs
- User alerts
- Batched subagent requests
Requirements
- PreToolUse hook script scripts/validate-tool-args.py
- Explicit user approval for more than 3 subagents
