
egregore
Autonomous orchestrator that runs full dev lifecycles in parallel with crash recovery and token budgeting.
- version
- 1.10.3
- GitHub stars
- 350
What it does
- Adds
/summon,/status,/dismiss, and watchdog install/uninstall commands, plusorchestratorandsentinelagents - Runs a 16-step pipeline across INTAKE, BUILD, QUALITY, and SHIP for each work item in the manifest
- Enforces a stall bound on the Stop hook so repeated re-injection stops after
EGREGORE_STOP_MAX_STALLSattempts - Designed for unattended overnight or backlog runs that must survive usage-limit cooldowns and process crashes
Autonomous agent orchestrator: parallel worktree execution, agent specialization, cross-item learning, and crash recovery
Add marketplace
/plugin marketplace add athola/claude-night-marketRun it inside Claude Code once, then install the plugin below.
Install
/plugin install egregore@claude-night-marketRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceInstall Watchdog
Overview
Installs a persistent daemon that monitors the egregore process and relaunches it when needed. The daemon uses the OS-native scheduler (launchd on macOS, systemd on Linux) to run a watchdog script every 5 minutes.
The watchdog script checks:
- Whether an egregore session is already running.
- Whether the budget is in cooldown.
- Whether there are active work items in the manifest.
If all conditions are met, it launches a new egregore session.
When To Use
- After initializing an egregore project (
egregore init) when you want autonomous relaunching. - When setting up egregore on a new machine.
When NOT To Use
- On CI/CD runners (use the orchestrator directly).
- When you want manual control over session launches.
Installation Steps
1. Detect the operating system
OS=$(uname -s)
2. Run the appropriate installer
macOS (launchd):
bash plugins/egregore/scripts/install_launchd.sh
This script creates a plist at
~/Library/LaunchAgents/com.egregore.watchdog.plist
that runs the watchdog script every 300 seconds (5 minutes).
Linux (systemd):
bash plugins/egregore/scripts/install_systemd.sh
This script creates a systemd timer and service unit at
~/.config/systemd/user/ that fires every 5 minutes.
3. Verify installation
macOS:
launchctl list | grep egregore
Expected output: a line containing
com.egregore.watchdog with a PID or - status.
Linux:
systemctl --user status egregore-watchdog.timer
Expected output: active (waiting) status.
4. Confirm to the user
Report the installation result, the schedule interval, and the log file location:
- macOS:
~/.egregore/watchdog.log - Linux:
journalctl --user -u egregore-watchdog
Uninstall Command
To remove the watchdog, run:
Skill(egregore:uninstall-watchdog)
Or invoke the uninstall skill directly via the command
/egregore:uninstall-watchdog.
Troubleshooting
- Permission denied on plist: ensure the script runs as the current user, not root.
- systemd user session not available: run
loginctl enable-linger $USERto enable user services without an active login session. - Watchdog not firing: check the log output and verify
the scheduler is loaded (
launchctl listorsystemctl --user list-timers).
Exit Criteria
- On macOS:
~/Library/LaunchAgents/com.egregore.watchdog.plistexists after the install script completes - On Linux:
~/.config/systemd/user/egregore-watchdog.timerexists after the install script completes - Verification command confirms daemon is loaded:
launchctl list | grep egregorereturns a line (macOS), orsystemctl --user status egregore-watchdog.timershowsactive (waiting)(Linux) - Schedule interval (300 seconds / 5 minutes) and log file path reported to the user after installation
- If
permission deniedoccurs, the error is reported with the remediation step (run as current user, not root)
Readme
Egregore Plugin
Autonomous agent orchestrator for full development lifecycles with zero human input.
Named after the occult concept of a thought-form created by collective belief, egregore embodies a persistent autonomous will that outlives any single Claude session. It orchestrates specialist skills through a 16-step pipeline, manages token budgets across session boundaries, and recovers from crashes without human intervention.
Quick Start
# One-shot a project from a prompt
/egregore:summon "Build a REST API for todos with auth and tests" --window 5h
# Process GitHub issues
/egregore:summon --issues 42,43,47 --window 7d
# Run indefinitely (pauses on rate limits, resumes after cooldown)
/egregore:summon "Build X" --indefinite
# Install the watchdog for crash recovery
/egregore:install-watchdog --window 5h
How It Works
Egregore has three layers:
Manifest (.egregore/manifest.json)
Persistent memory: work queue, pipeline state, decisions
|
Orchestrator Skill (egregore:summon)
The will: picks work, invokes skills, advances pipeline
|
Watchdog Daemon (watchdog.sh)
Persistence: relaunches sessions after crashes/cooldowns
Each work item flows through a 16-step pipeline:
INTAKE BUILD QUALITY SHIP
------ ----- ------- ----
parse -> brainstorm -> code-review -> prepare-pr
validate specify unbloat pr-review
prioritize blueprint code-refinement fix-pr
execute update-tests merge
update-docs
At each step, egregore invokes the appropriate existing night-market skill (attune, pensive, sanctum, conserve).
Commands
| Command | Description |
|---|---|
/egregore:summon | Start autonomous work |
/egregore:dismiss | Stop gracefully |
/egregore:status | Show progress |
/egregore:install-watchdog | Install crash recovery daemon |
/egregore:uninstall-watchdog | Remove the daemon |
Session Management
Context overflow: Uses existing continuation agent pattern. At 80% context, saves state and spawns a fresh agent that reads the manifest and continues.
Token window exhaustion: When a run hits a usage limit,
scripts/window.py reads the reset instant from what the API
actually returned and records it in budget.cooldown_until.
The watchdog's OS timer polls that value and relaunches once
the window has renewed.
CronCreate can schedule the resume instead, but only inside
a session that stays alive to run it. The tool's own
description says its jobs live only in the running session,
that nothing is written to disk, that durable has no
effect, and that jobs fire only while the REPL is idle. A
headless claude -p night run that exits on a usage limit is
exactly the case it cannot cover, so the watchdog is the
default and CronCreate is the attended-session shortcut.
plan_resume() picks between them and says why.
Token window exhaustion (pre-2.1.71 fallback): Saves a
cooldown timestamp to budget.json and exits. The watchdog
checks every 5 minutes and relaunches after cooldown.
Crashes: The watchdog detects stale pidfiles (process died) and relaunches automatically. An alert is created as a GitHub issue so the overseer knows what happened.
Notifications
All events are non-blocking notifications (never pause for approval):
| Event | Default | Description |
|---|---|---|
| crash | on | Session died |
| rate_limit | on | Entering cooldown |
| pipeline_failure | on | Work item failed 3x |
| completion | on | All work done |
| watchdog_relaunch | on | Session relaunched |
Tier 1 (default): GitHub issues labeled
egregore/alert. Repo owner gets email automatically.
Tier 2 (opt-in): Webhooks to Slack, Discord, ntfy.sh, or any URL.
Why opt-in? Per docs/inclusive-defaults.md, webhooks send session data to external services using user-supplied URLs. There is no reasonable default URL, so flipping is impossible.
Configuration
Stored in .egregore/config.json:
{
"overseer": {
"method": "github-repo-owner",
"webhook_url": null,
"webhook_format": "generic"
},
"alerts": {
"on_crash": true,
"on_rate_limit": true,
"on_pipeline_failure": true,
"on_completion": true,
"on_watchdog_relaunch": true
},
"pipeline": {
"max_attempts_per_step": 3,
"skip_brainstorm_for_issues": true,
"auto_merge": false,
"completion_integrity": false
},
"budget": {
"window_type": "5h",
"cooldown_padding_minutes": 10
}
}
Why
auto_merge: false? Per docs/inclusive-defaults.md, merging a PR without human review is irreversible-ish (revert PR is messy and visible in history). Egregore is already opt-in at/egregore:summon;auto_mergegates the no-human-loop transition specifically.
Why
completion_integrity: false? Default off keeps the historical posture: the loop runs indefinitely and advances on any non-crash step result. Set it totrueto make a quality verdict offix-requiredblock advancement to ship (so an item cannot complete with unresolved blocking findings) and hold merge for human review. It never halts the overall loop, only the offending item.
vs Ralph Wiggum
| Ralph Wiggum | Egregore | |
|---|---|---|
| Loop mechanism | Stop hook re-injects same prompt, bounded by an iteration count | Stop hook reads manifest, injects current step, bounded by stall detection |
| State awareness | None (reads files each time) | Full pipeline state in manifest.json |
| Session management | None | Continuation agents and watchdog daemon |
| Token budgets | None | Watchdog resume at the recorded reset instant; CronCreate only while a session survives |
| Crash recovery | None | Watchdog and GitHub issue alerts |
| Progress visibility | None | /loop 5m /egregore:status auto-scheduled |
| Decision making | Blind repetition | Autonomous with decision logging |
| Pipeline | None | 16-step across 4 stages |
Stop Hook Stall Bound
The Stop hook blocks a session from stopping while the
manifest holds active work, which is how the loop continues
without a human turn. Blocking on that alone re-injects the
prompt forever, so the block is bounded: the hook hashes
manifest.json, counts consecutive blocks with the hash
unchanged, and approves the stop at
EGREGORE_STOP_MAX_STALLS (default 3). A manifest change or
a watchdog relaunch resets the count.
The table of reset and increment events, what the bound does not settle, and the residual cost of repeated relaunches are in the book page. The decision itself is ADR-0022.
Watchdog Setup
The watchdog is a simple shell script run by your OS scheduler. No background daemons, no compiled code.
# macOS: creates ~/Library/LaunchAgents/com.egregore.watchdog.plist
/egregore:install-watchdog
# Linux: creates ~/.config/systemd/user/egregore-watchdog.timer
/egregore:install-watchdog
# Remove
/egregore:uninstall-watchdog
Development
cd plugins/egregore
make deps # Install dependencies
make test # Run tests
make lint # Run linting
make check # Run all checks
Quality Stage
The QUALITY stage enforces project conventions and code quality before work items reach SHIP. Three components:
Orchestrator Agent
│
├── manifest.py (existing)
│ └── WorkItem.quality_config
│
├── quality-gate skill
│ ├── routing table
│ ├── verdict calculation
│ └── mode selection (self/PR)
│
├── conventions.py
│ ├── load_codex()
│ ├── check_conventions()
│ └── built-in checkers
│
└── codex.yml
└── C1-C5 convention definitions
Data flow: orchestrator reaches quality stage, reads
the work item's quality_config, invokes the quality-gate
skill for each step. The skill loads codex.yml, runs
convention checks, invokes mapped skills (pensive, conserve,
sanctum), collects findings, and calculates a verdict:
pass, pass-with-warnings, or fix-required.
Conventions enforced (from PR history analysis):
- C1: No ephemeral artifacts committed
- C2: Markdown prose wraps at 80 chars
- C3: No AI slop markers in documentation
- C4: Python 3.9 compatibility in hooks
- C5: Scope-guard compliance (line/file thresholds)
Modes: self-review (pre-PR, runs all 5 quality steps) and PR-review (invoked by other agents for cross-review).
Further Reading
These behaviors are documented on the book page:
- Parallel execution: worktree isolation,
max_concurrent_worktrees, and the two quality-stage waves - Cross-item learning: pattern categories and how a briefing is generated
Details
- Marketplace
- athola/claude-night-market
- Source
- plugins/egregore
- Category
- Community
- Keywords
- autonomous-agents, orchestration, parallel-execution, worktrees
- Listed since
- Apr 7, 2026
More from athola/claude-night-market
All 23- gauntletv1.10.3
- heraldv1.10.3
- hookifyv1.10.3
- imbuev1.10.3
- leylinev1.10.3
- memory-palacev1.10.3
- ministerv1.10.3
- oraclev1.10.3
- parseltonguev1.10.3
- pensivev1.10.3
- phantomv1.10.3
- sanctumv1.10.3
- scribev1.10.3
- scryv1.10.3
- spec-kitv1.10.3
- tomev1.10.3
- abstractv1.10.3
- archetypesv1.10.3
- attunev1.10.3
- cartographv1.10.3
- conjurev1.10.3
- conservev1.10.3
Similar to egregore
More Agent Workflow & Planning
agent-orchestrationwshobson/agents42.8K starsMulti-agent system optimization, agent improvement workflows, and context management
agent-orchestration-advisordeanpeters/Product-Manager-Skills8.1K starsDesign multi-agent AI workflows with clear boundaries, handoffs, and monitoring.
agentrqagentrq/agentrq1.2K starsHuman-in-the-loop agent orchestration for managing multiple agents with specialized tasks.
247-orchestratorQuivrHQ/247-claude-code-remote77 starsMulti-agent orchestration - spawn and control parallel Claude sessions