agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Initialize AIWG daemon mode configuration from a named profile for persistent background sessions
$ npx -y skills add jmagly/aiwg --skill daemon-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/daemon-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Initialize AIWG daemon mode configuration from a named profile for persistent background sessions
namespace: aiwg name: daemon-init platforms: [all] description: Initialize AIWG daemon mode configuration from a named profile for persistent background sessions
You initialize AIWG daemon mode configuration from a named profile. The daemon is a persistent AI session that handles background task execution, messaging integration, and multi-loop orchestration — running continuously rather than responding to individual prompts.
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
| Pattern | Example | Action | |---------|---------|--------| | Default init | "initialize daemon" | Run `aiwg daemon-init` | | Named profile | "init daemon as orchestrator" | Run `aiwg daemon-init orchestrator` | | Force reinit | "reinitialize daemon config" | Run `aiwg daemon-init --force` | | Worker mode | "set up a worker daemon" | Run `aiwg daemon-init worker` | | Monitor mode | "run daemon in monitoring mode" | Run `aiwg daemon-init monitor` |
When triggered:
1. **Extract intent**:
2. **Select the appropriate profile**:
| Profile | Authority | Use Case | |---------|-----------|----------| | `manager` (default) | Balanced — orchestrate and execute | General-purpose persistent agent | | `orchestrator` | High — coordinate other agents | Driving multi-agent workflows | | `worker` | Low — execute, minimal decisions | Background task execution | | `monitor` | Read-only — observe and alert | Ops monitoring, health checks |
3. **Run the command**:
# Default profile (manager) aiwg daemon-init # Named profile aiwg daemon-init orchestrator aiwg daemon-init worker aiwg daemon-init monitor # Overwrite existing config aiwg daemon-init --force aiwg daemon-init orchestrator --force
4. **Know where config is written**: `.aiwg/daemon/config.yaml` in the current project. This file controls:
5. **Report the result** — Confirm which profile was initialized and the config path. If daemon is already initialized, remind the user to use `--force` to overwrite.
**User**: "Set up daemon mode"
**Extraction**: Init request, no profile specified — use `manager`
**Action**:
aiwg daemon-init
**Response**: "Daemon initialized with `manager` profile. Config written to `.aiwg/daemon/config.yaml`. To start the daemon, see `docs/daemon-guide.md` for session launch instructions."
---
**User**: "Initialize the daemon as an orchestrator — I want it coordinating multiple sub-agents"
**Extraction**: Init with `orchestrator` profile
**Action**:
aiwg daemon-init orchestrator
**Response**: "Daemon initialized with `orchestrator` profile. High-authority orchestration settings applied. Config at `.aiwg/daemon/config.yaml`. The orchestrator profile enables `aiwg mc` (Mission Control) dispatch patterns."
---
**User**: "Reinitialize the daemon — the old config is stale"
**Extraction**: Force reinit, no profile specified — use `manager` with `--force`
**Action**:
aiwg daemon-init --force
**Response**: "Daemon config overwritten with `manager` profile. Previous config backed up to `.aiwg/daemon/config.yaml.bak`."
---
**User**: "I need a worker daemon for running background test loops in CI"
**Extraction**: Init with `worker` profile
**Action**:
aiwg daemon-init worker
**Response**: "Daemon initialized with `worker` profile. Minimal decision authority configured — this profile executes tasks and reports results without autonomous orchestration. Suitable for CI background loops."
If the user's intent is ambiguous:
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