| name | session-monitor |
| description | Check agent context capacity (cognitive load) across all agents. Quick health check for session bloat and overload detection. |
| version | 1.0.0 |
| author | ops-officer |
| tags | ["session","context","cognitive load","agent load","memory pressure","health"] |
| trigger | {"command":"/session-monitor","keywords":["session health","context usage","agent load","cognitive load","memory pressure"]} |
session-monitor
Check agent context capacity (cognitive load) across all agents.
Procedure
-
Run the snapshot:
bash /home/node/.openclaw/scripts/agent-load-snapshot.sh
-
For machine-readable output:
bash /home/node/.openclaw/scripts/agent-load-snapshot.sh --json
-
For alerting (exit 1 if any agent overloaded):
bash /home/node/.openclaw/scripts/agent-load-snapshot.sh --check
-
If STRAINED (70-85%): note it, monitor on next check
-
If OVERLOADED (85-100%): session-maintenance.sh will auto-reset at next cron
-
If BROKEN (>100%): alert immediately in #ops-alerts
Thresholds
| Context % | State | Action |
|---|
| 0-50% | HEALTHY | None |
| 50-70% | WORKING | None |
| 70-85% | STRAINED | Monitor |
| 85-100% | OVERLOADED | Auto-reset (cron) |
| >100% | BROKEN | Immediate alert |
Output
Table: agent name, load %, state, model, peak session key.
Intent: Aware [I12]. Purpose: [P-TBD].