~/.claude/commander/ and persists across reboots.
Starting and stopping the daemon
~/.claude/commander/daemon.pid and logs all activity to ~/.claude/commander/daemon-log.txt. The log file rotates automatically at 1 MB.
Managing the task queue
You interact with a running daemon by queuing tasks from any terminal:The daemon uses the same Intelligence Layer as interactive dispatches — complexity scoring, stack detection, and knowledge retrieval all run before each task is sent to Claude.
How the tick loop works
Every 5 minutes (by default), the daemon runs a tick:Process the task queue
The daemon calls
queue.getNext() to find the highest-priority pending task and marks it as running.Check git status
If the working directory has more than 10 uncommitted changes, the daemon logs a warning. It does not commit automatically — that remains your responsibility.
Enforce the budget
Each tick has a time budget (15 seconds by default). If the tick takes longer than the budget before dispatching, the dispatch is skipped and logged.
Dispatch the task
The daemon calls
dispatchWithRetry with the task, which handles rate limit waits, context overflow retries, and budget exceeded errors automatically.Dream mode
Once per hour (by default), the daemon runs a dream cycle instead of a tick. Dream mode consolidates the knowledge base: it aggregates lessons from completed sessions, calculates success rates, archives old entries, and surfaces improvement suggestions in the log.Customization flags
You can adjust the daemon’s timing and budget when starting it:| Flag | Default | What it controls |
|---|---|---|
--interval 120 | 300 (5 min) | Tick interval in seconds |
--tick-budget 30 | 15 | Time budget per tick action in seconds |
--dream 30 | 60 | Dream cycle interval in minutes |
State files
All daemon state lives in~/.claude/commander/:
| File | What it contains |
|---|---|
daemon.pid | PID of the running daemon process |
daemon-log.txt | Full activity log (rotates at 1 MB to daemon-log.txt.old) |
queue.json | Task queue with status, priority, and results |
state.json | User settings — name, level, cost ceiling, theme |
knowledge/ | Session lessons for the knowledge compounding engine |
yolo-stop | Create this file to halt a Night Mode loop gracefully |