agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Show daemon health, active sessions, task queue, and subsystem status
$ npx -y skills add jmagly/aiwg --skill daemon-status --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/daemon-statusContext preview
The summary Claude sees to decide when to auto-load this skill.
Show daemon health, active sessions, task queue, and subsystem status
namespace: aiwg name: daemon-status description: Show daemon health, active sessions, task queue, and subsystem status version: 2026.3.0 triggers: - "daemon status" - "daemon health" - "is the daemon running" - "what's the daemon doing" - "show daemon" - "check daemon" - "daemon info" platforms: [all]
You detect when users want to check the AIWG daemon's health and operational status, then gather and present the information.
| Pattern | Example | Action | |---------|---------|--------| | `daemon status` | "daemon status" | Full status report | | `daemon health` | "check daemon health" | Health-focused report | | `is the daemon running` | "is the daemon running?" | Quick running/stopped check | | `what's the daemon doing` | "what's the daemon doing right now?" | Active task focus | | `show daemon` | "show me the daemon" | Full status report |
# Check if daemon is running cat .aiwg/daemon/daemon.pid 2>/dev/null ps -p $(cat .aiwg/daemon/daemon.pid) 2>/dev/null
Report: running/stopped, PID, uptime
# Check active agent sessions ls .aiwg/daemon/sessions/ 2>/dev/null
Report: count, age, task descriptions
# Check queued tasks cat .aiwg/daemon/queue.json 2>/dev/null
Report: pending count, active count, completed (last hour)
| Subsystem | Check | Status | |-----------|-------|--------| | File watcher | `.aiwg/daemon/watcher.pid` | running/stopped | | Scheduler | `.aiwg/daemon/scheduler.pid` | running/stopped | | IPC socket | `.aiwg/daemon/aiwg.sock` | listening/down | | Messaging | `.aiwg/daemon/adapters/` | connected/disconnected |
# Last 5 completed tasks tail -5 .aiwg/daemon/activity.log 2>/dev/null
Daemon Status ───────────────────────────────────── Status: Running (PID 12345, uptime 2h 15m) Sessions: 1 active, 0 queued Tasks: 3 completed (last hour), 1 active Subsystems: File watcher: running Scheduler: running (next: health-check in 12m) IPC socket: listening Messaging: Slack (connected), Discord (disconnected) Active Task: "Fix auth timeout in user service" — cycle 3/6, started 8m ago Recent: 14:32 Completed: "Update README badges" 14:15 Completed: "Run lint cleanup" 13:50 Completed: "Sync issue #42" ─────────────────────────────────────
Daemon is not running. Start it with: aiwg daemon start Last run: 2026-03-25 (2 days ago) Last shutdown: clean (SIGTERM)
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing