Orchestration CLI for the Claude-Master / Codex-Slave workflow.
cmcs is a lightweight broker between Claude (the orchestrator) and Codex (the worker). Claude decomposes tasks and reviews output. cmcs dispatches tickets as Codex subprocesses and tracks state. Codex executes. ~1,261 LOC (source), ~3,239 LOC including tests, 12 commands, direct subprocess invocation.
┌─────────────────────────────────────────────┐
│ Claude (Opus) — Orchestrator │
│ Plans, decomposes, writes tickets, reviews │
└──────────────────┬──────────────────────────┘
│ writes tickets / reads results
┌──────────────────▼──────────────────────────┐
│ cmcs — Broker │
│ Runs Codex subprocesses, tracks run state │
└──────────────────┬──────────────────────────┘
│ dispatches work / collects output
┌──────────────────▼──────────────────────────┐
│ Codex CLI — Worker Agent(s) │
│ Executes tickets on the filesystem │
└─────────────────────────────────────────────┘
From the repository root:
pip install -e ".[dev]"Requires Python 3.12+.
cmcs init
# write .cmcs/tickets/TICKET-001.md (see example below)
cmcs run .
cmcs status
cmcs dashboard---
title: "Add README section"
agent: "codex"
done: false
---
## Goal
Document project setup.
## Task
1. Update README.md with setup steps.
## Acceptance Criteria
- README includes setup stepsFor ticket writing guidelines and advanced patterns, see the Orchestration Guide.
| Command | Description |
|---|---|
cmcs --help |
Show top-level help and command groups |
cmcs init |
Initialize .cmcs/ (db, tickets, logs) in current repo |
cmcs version |
Print installed cmcs version |
cmcs config show |
Print effective config |
cmcs worktree create <branch> |
Create git worktree and register in DB |
cmcs worktree list |
Show registered worktrees and latest run status |
cmcs worktree cleanup <branch> |
Remove worktree, delete branch, archive in DB |
cmcs run [path] |
Process tickets for repo/worktree (default: .) |
cmcs status [path] |
Show run status and ticket counts |
cmcs wait <path> |
Block until latest run completes |
cmcs stop <path> |
Stop latest running worker for path |
cmcs logs <path> |
Print tail of log files for latest run |
cmcs dashboard |
Start web dashboard |
# From your project root
claude skill add /path/to/cmcs/skillThis installs the cmcs-driven-development skill, which provides a structured two-stage review workflow (spec compliance + code quality) for Codex agent output.
Copy the contents of CLAUDE-SNIPPET.md into your project's CLAUDE.md. This gives Claude the orchestrator role, dispatch decision tree, ticket format, and essential commands.
For detailed workflow guidance, refer to:
- Orchestration Guide — ticket writing, dispatch patterns, review checklist
- Large Implementation Preparation — for projects touching 10+ files or spanning multiple worktrees
- Architecture — three-layer model, state management, parallelism, dashboard
- Orchestration Guide — ticket writing, dispatch patterns, review checklist
- Large Implementation Preparation — research, design, phased execution, handover documents
- Configuration — config file reference, defaults, ticket frontmatter fields
- Skill — Claude Code skill for structured two-stage review workflow
.
├── .cmcs/
│ ├── cmcs.db
│ ├── tickets/
│ │ └── TICKET-001.md
│ └── logs/
│ └── <run-id>/
├── cmcs/
│ ├── cli.py
│ ├── config.py
│ ├── db.py
│ ├── runner.py
│ ├── tickets.py
│ ├── worktree.py
│ ├── dashboard/
│ │ ├── app.py
│ │ └── templates/
│ └── tests/
├── skill/
│ ├── SKILL.md
│ ├── ticket-template.md
│ ├── spec-reviewer-prompt.md
│ └── code-quality-reviewer-prompt.md
├── docs/
│ ├── architecture.md
│ ├── orchestration-guide.md
│ ├── cmcs-large-implementation-preparation.md
│ └── configuration.md
├── pyproject.toml
└── README.md