šļø Subagent Overseer OpenClaw Plugin & Skill | ClawHub
Looking to integrate Subagent Overseer into your AI workflows? This free OpenClaw plugin from ClawHub helps you automate web & frontend development tasks instantly, without having to write custom tools from scratch.
What this skill does
You spawned 4 sub-agents. One died 20 minutes ago. You're still waiting. Overseer watches them so you don't have to ā zero tokens, pure OS-level process checks. No polling loops, no wasted heartbeats.
Install
openclaw skills install @globalcaos/subagent-overseernpx clawhub@latest install subagent-overseerFull SKILL.md
Open original| name | version | description |
|---|---|---|
| subagent-overseer | 1.1.0 | You spawned 4 sub-agents. One died 20 minutes ago. You're still waiting. Overseer watches them so you don't have to ā zero tokens, pure OS-level process checks. No polling loops, no wasted heartbeats. |
SKILL.md content below is scrollable.
Sub-Agent Overseer
Lightweight pull-based daemon that monitors sub-agent health. Writes a status file every N seconds. The heartbeat handler reads it ā no push, no noise.
Architecture
overseer.sh (bash, runs in background)
āāā /proc/<pid> ā gateway alive? CPU? threads?
āāā openclaw sessions list ā sub-agent count + ages
āāā find -newer marker ā filesystem activity
āāā writes /tmp/overseer/status.json (atomic mv)
heartbeat (agent, every 3min)
āāā reads /tmp/overseer/status.json ā summarize or HEARTBEAT_OK
Key principle: The overseer does all data collection. The heartbeat handler does zero tool calls if the status file is fresh and healthy.
Quick Start
1. Start the overseer when spawning sub-agents
setsid scripts/overseer.sh \
--workdir /path/to/repo \
--interval 180 \
--max-stale 4 \
--voice \
&>/dev/null &
2. Heartbeat reads the status file
cat /tmp/overseer/status.json
3. Interpret the status
| Field | Meaning |
|---|---|
subagents.count |
Active sub-agent sessions |
subagents.details[].stale |
Consecutive cycles with no filesystem changes |
subagents.details[].status |
active / idle / warning / stuck |
gateway.health.alive |
Is openclaw-gateway running? |
filesystem.changes_since_last |
Files modified since last check |
4. Staleness thresholds (at 180s interval)
| stale count | Time | Status | Action |
|---|---|---|---|
| 0-1 | 0-3 min | active/idle |
Normal |
| 2-3 | 6-9 min | warning |
Voice alert (if --voice) |
| ā„4 | ā„12 min | stuck |
Agent should investigate/kill |
Heartbeat Handler Protocol
When HEARTBEAT.md fires:
- Read
/tmp/overseer/status.jsonā if missing or stale (>10 min), restart overseer - If
subagents.count == 0for 2+ cycles ā overseer auto-exits ā replyHEARTBEAT_OK - If all agents
activeā brief one-line status āHEARTBEAT_OK - If any
stuckā report which labels are stuck ā consider killing viasubagents kill - Never cache a previous heartbeat response. Always read the status file fresh.
Flags
| Flag | Default | Description |
|---|---|---|
--interval |
180 | Seconds between checks |
--workdir |
cwd | Directory to watch for file changes |
--labels |
(all) | Comma-separated labels to filter |
--max-stale |
4 | Cycles before marking stuck |
--voice |
off | Local TTS alerts via jarvis command |
How It Works (No AI Tokens)
- Gateway health: Reads
/proc/<pid>/statusfor CPU, memory, threads, FD count. Pure kernel data. - Sub-agent list: Single
openclaw sessions listcall per cycle. Parses grep output. - Filesystem diff:
find -newer markerā detects any file writes in the workdir. - Status file: JSON written atomically (write to temp,
mvinto place). Any reader sees a complete file. - Self-exit: If no sub-agents for 2 consecutive cycles, the overseer stops itself.
- Dedup:
flockensures only one overseer instance runs at a time.
Cost
- Overseer: $0.00 (bash + /proc + one CLI call per cycle)
- Voice alerts: $0.00 (local sherpa-onnx via
jarvis) - Heartbeat reads status file: $0.00 (one
catcommand) - Only cost is the heartbeat model itself (qwen3 local = free)
Pairs Well With
- agent-superpowers ā the three-agent review pipeline that Overseer was built to monitor
- smart-model-router ā auto-select models for each sub-agent role
š https://github.com/globalcaos/tinkerclaw
Clone it. Fork it. Break it. Make it yours.