jianzhichun/emerge/operator-monitor-debug
Claude Code and agent skill by jianzhichun/emerge
- community
Checking that the SKILL.md file is still in the repository.
Use when the operator monitoring pipeline appears broken: EventBus has no events, PatternDetector is not firing, elicitation dialog never appears, or OperatorMonitor is silent. Guides systematic diagnosis of the full pipeline.
Install
npx vskill@latest install jianzhichun/emerge/operator-monitor-debugSKILL.md
Debugging the Operator Monitor Pipeline
Checklist
1. Is the remote runner running and reachable?
2. Is OperatorMonitor running?
OperatorMonitor auto-starts when a runner is configured (runner-map.json has at least one entry) OR when EMERGE_OPERATOR_MONITOR=1 is set in the daemon environment. Check which condition applies:
3. Are events reaching the EventBus?
If the file is empty or missing: the event producer is not firing events.
- Check that the relevant producer path is active (
POST /operator-event, pipelinestart()hook withevent_bus.emit_event, or_write_operator_eventfromicc_exec) - On macOS, verify the process has Accessibility permission (
System Preferences → Privacy → Accessibility) - On Windows, check that the process has UIAutomation access and is not running in a low-integrity context
4. Is PatternDetector seeing the events?
Replay events manually via icc_exec:
If summaries is empty but events exist: thresholds not met yet.
- Frequency detector fires at ≥3 same-type events in a 20-minute window
- Check that
session_roleis"operator", not"monitor_sub"— monitor_sub events are filtered
5. Is OperatorMonitor polling?
Set EMERGE_MONITOR_POLL_S=5 to ensure polling is active. Check EMERGE_MONITOR_MACHINES matches the profile names configured in the runner map.
6. Is the pattern observation reaching CC?
Pattern observations are delivered via watch_emerge.py --runner-profile <profile> (Monitor tool, persistent). When a pattern fires, DaemonHTTPServer._on_runner_event writes a pattern_observed entry directly to events-{profile}.jsonl. The Monitor script tails this file and prints formatted observations to stdout; CC streams stdout into the conversation.
Check:
- Is
watch_emerge.py --runner-profile <profile>running as a persistent Monitor?
(launched by /emerge:cockpit step 4 via watch_emerge.py --runner-profile)
- Does
~/.emerge/state/events/events-{profile}.jsonlcontain recentpattern_observedentries?
``bash grep '"type": "pattern_observed"' ~/.emerge/state/events/events-<profile>.jsonl | tail -5 ``
- If entries exist but CC didn't see them: the Monitor may have stopped — restart it.
7. Common fixes
| Symptom | Fix | |
|---|---|---|
| EventBus empty | Verify event producer path (/operator-event, pipeline start(), or icc_exec) and OS accessibility permissions | |
| PatternDetector never fires | Lower FREQ_THRESHOLD or check event session_role field | |
| Elicitation never appears | Verify daemon has elicitation capability in MCP handshake; check thread is non-main | |
| Pattern observation not delivered | Verify watch_emerge.py --runner-profile <p> Monitor is running; check events-{profile}.jsonl for pattern_observed entries | |
| OperatorMonitor not starting | Confirm runner is configured (runner-status --pretty) OR EMERGE_OPERATOR_MONITOR=1 in daemon env |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/operator-monitor-debug/SKILL.md
Popularity
- Repository stars
- 106
- Repository forks
- 13
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jianzhichun/emerge/operator-monitor-debug)