Exarchos is local agent governance for Claude Code. It provides event-sourced SDLC workflows with agent team coordination. Distribution is a Claude Code plugin (via the lvlup-sw marketplace) or a standalone single-file binary downloaded by the scripts/get-exarchos.{sh,ps1} bootstrap; the plugin manifest registers commands/skills/rules and the MCP server. Workflows survive context compaction through persistent state and auto-resume on session start.
- Languages: TypeScript (strict mode, ESM), Bash, Markdown (structured with YAML frontmatter)
- Runtime: Node.js >= 20, Bun (bundler)
- Testing: Vitest (co-located
*.test.ts), bash integration tests (co-located*.test.sh) - MCP Framework:
@modelcontextprotocol/sdk+zod - Build:
tscfor type checking,bun buildfor bundling MCP server and CLI - Tools: Claude Code CLI, GitHub CLI (
gh) for PRs
| Directory | Purpose |
|---|---|
commands/ |
Slash commands (/ideate, /plan, /delegate, /debug, /refactor, /oneshot, /review, /synthesize, /prune, /checkpoint, /rehydrate, /tdd) |
skills/ |
Reusable workflow modules with SKILL.md and references/ subdirectories |
rules/ |
Global behavioral constraints (coding standards, TDD, orchestrator constraints) |
scripts/ |
Deterministic validation scripts replacing prose checklists in skills |
servers/exarchos-mcp/ |
Unified MCP server: workflow HSM, event store, CQRS views, team coordination |
src/ |
Skills renderer (build-skills.ts), install-skills runtime-selector CLI, plus repo-level validation tests |
docs/ |
Designs, plans, ADRs, schemas, audits, bug reports |
renovate-config/ |
Renovate dependency management presets |
hooks.json |
CLI hooks for workflow auto-continue and guardrails |
manifest.json |
Package manifest consumed by installer |
Single server at servers/exarchos-mcp/ exposing 5 composite tools:
- exarchos_workflow — HSM-based workflow lifecycle (init/get/set/cancel)
- exarchos_event — Append-only JSONL event store with 59 event types (includes
shepherd.started,shepherd.iteration,shepherd.approval_requested,shepherd.completed) - exarchos_orchestrate — Agent team spawn/message/shutdown + task claim/complete/fail
- exarchos_view — CQRS materialized views (pipeline, tasks, workflow status, team status, stack, telemetry)
- exarchos_sync — Remote sync (stub)
- No secrets stored in repository
- Configuration templates use environment variables
- MCP server communicates over stdio only (no network listeners)
- Workflow state persists to
~/.claude/workflow-state/(local filesystem only) - Hook CLI validates tool calls against phase/role guardrails
docs/follow-ups/contains 73+ design/plan files, many likely completed — needs per-file triage- Some design docs reference completed/superseded features (Jules integration, pre-Exarchos architecture)
- Focus areas: Security vulnerabilities, code quality, outdated patterns, dead code
- Ignore patterns:
node_modules/,.git/,dist/,coverage/,.worktrees/,.serena/,.terraform/,*.tfstate*,*.local.json - Severity threshold: Report Medium and above
- Special files:
*.mdfiles are structured content (commands/skills/rules), not just documentation — treat frontmatter as configuration