Aiwg daemon-init
Initialize AIWG daemon mode configuration from a named profile for persistent background sessions
git clone https://github.com/jmagly/aiwg
T=$(mktemp -d) && git clone --depth=1 https://github.com/jmagly/aiwg "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.agents/skills/daemon-init" ~/.claude/skills/jmagly-aiwg-daemon-init && rm -rf "$T"
.agents/skills/daemon-init/SKILL.mdDaemon Init
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.
Triggers
Alternate expressions and non-obvious activations (primary phrases are matched automatically from the skill description):
- "start daemon mode" → init with default profile
- "set up background agent" → init with manager profile
- "configure aiwg for continuous operation" → init with orchestrator profile
- "i want aiwg running in the background" → init with manager profile
- "reinitialize daemon" → init with
--force
Trigger Patterns Reference
| Pattern | Example | Action |
|---|---|---|
| Default init | "initialize daemon" | Run |
| Named profile | "init daemon as orchestrator" | Run |
| Force reinit | "reinitialize daemon config" | Run |
| Worker mode | "set up a worker daemon" | Run |
| Monitor mode | "run daemon in monitoring mode" | Run |
Behavior
When triggered:
-
Extract intent:
- Is a profile name specified? Default to
if not.manager - Is
needed (user mentioned reinitializing or overwriting)?--force
- Is a profile name specified? Default to
-
Select the appropriate profile:
Profile Authority Use Case
(default)managerBalanced — orchestrate and execute General-purpose persistent agent orchestratorHigh — coordinate other agents Driving multi-agent workflows workerLow — execute, minimal decisions Background task execution monitorRead-only — observe and alert Ops monitoring, health checks -
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 -
Know where config is written:
in the current project. This file controls:.aiwg/daemon/config.yaml- Session persistence behavior
- Messaging integration endpoints (Telegram, Slack, etc.)
- Task queue and loop settings
- Authority level and decision boundaries
-
Report the result — Confirm which profile was initialized and the config path. If daemon is already initialized, remind the user to use
to overwrite.--force
Examples
Example 1: Default initialization
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."
Example 2: Orchestrator profile
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."
Example 3: Force reinitialize
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."
Example 4: Worker for CI pipeline
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."
Clarification Prompts
If the user's intent is ambiguous:
- "Which daemon profile should I use? Options:
(default),manager
,orchestrator
,worker
"monitor - "A daemon config already exists at
. Should I overwrite it with.aiwg/daemon/config.yaml
?"--force - "Are you initializing for a new project, or reconfiguring an existing daemon?"
References
- @$AIWG_ROOT/src/cli/handlers/daemon.ts — Daemon command handler
- @$AIWG_ROOT/docs/daemon-guide.md — Full daemon documentation including session launch
- @$AIWG_ROOT/docs/messaging-guide.md — Messaging integration (Telegram, Slack) configuration
- @$AIWG_ROOT/docs/cli-reference.md — CLI reference