Gitワークツリー分離と専門AIエージェントを使用したマルチエージェントオーケストレーションシステム。Rust製。
Turn tasks into PR-ready diffs with quality gates already run. Reproducibly.
ccswarm is a workflow engine for AI coding agents. You describe a task, pick a flow
(declarative YAML workflow), and ccswarm drives the provider CLI through plan →
implement → review → fix → commit → PR, with full NDJSON audit trails you can replay,
diff, and roll back.
OK/NG driven: the only keys you press during a run are y and n.
cargo install --path crates/ccswarm
ccswarm doctor # probe Claude / Codex / gh copilot CLIs
ccswarm pipeline --task "Add login" # one-shot
ccswarm # interactive: asks what to build
ccswarm queue add "..." # accumulate during the day
ccswarm queue add --from-issue 42 # ingest a GitHub issue
ccswarm queue drain # run all pending; y/n at commit + PR
ccswarm auto --watch # unattended: no y/n, auto-commit + PR
ccswarm run list # past runs, newest first
ccswarm tail # follow the current run, tail-like
ccswarm cost <run-id> # per-stage + per-agent breakdown
ccswarm run view <run-id> # full event log
ccswarm run diff <a> <b> # compare two runs' timelines
ccswarm replay <run-id> # re-execute the recorded task
ccswarm undo <run-id> # advisory: list commits since run started
ccswarm flow list # builtin + custom
ccswarm flow new my-flow --template faceted
ccswarm flow render my-flow # preview composed prompts per stage
ccswarm flow check my-flow # validate YAML
ccswarm facets # browse personas / policies / knowledge
ccswarm repertoire add <git-url> # install shared workflow packages
# ccswarm.json or flow YAML (per-stage)
provider: claude # claude | codex | copilot
model: sonnet
Precedence: stage YAML provider: > CCSWARM_PROVIDER env > Claude default.
| Provider | Status | Notes |
|---|---|---|
claude | Full support | All flags: --allowed-tools, --agent, --resume, --system-prompt, --max-budget-usd, --worktree |
codex | Non-interactive codex exec | System prompt is prepended to the user prompt (Codex has no dedicated flag). Session resume not yet wired |
copilot | Unsupported for code generation | gh copilot suggest is interactive and returns shell-command strings, not file edits. The provider fails fast with a friendly error — see providers/copilot.rs for rationale |
| Flow | Steps | Agents |
|---|---|---|
default | plan → implement → review → fix → complete | planner, coder, reviewer |
team | plan → parallel(frontend + backend) → supervisor review | planner, frontend-specialist, backend-specialist, supervisor |
quick | single-shot | coder |
review-fix | review → fix loop | reviewer, coder |
research | investigate → report | researcher |
Custom: drop YAML files into .ccswarm/flows/. See ccswarm flow eject default for
a starting template.
Group for features that sit beside the core JTBD but are not part of the primary flow. May change without notice.
ccswarm lab sangha propose ... # collective voting on proposals
ccswarm lab extend propose ... # agent self-extension tracking
ccswarm lab evolution report # per-agent performance analytics
ccswarm lab search docs "..." # ripgrep over docs/ and source
ccswarm harness run # scenario-driven regression tests of flows
ccswarm approve plan --id <run> # HITL gate for risky actions
ccswarm (workflow + governance) ──depends on──> ai-session (terminal primitives)
See docs/ARCHITECTURE.md for module responsibilities and API boundaries, and docs/COUPLING_REPORT.md for the most recent cargo-coupling modularity analysis.
cargo fmt --all
cargo clippy --workspace -- -D warnings
cargo test --workspace
cargo run -p ccswarm -- --help
End-to-end: examples/e2e-playwright/run.sh exercises pipeline → generated app →
Playwright browser test (requires a logged-in claude CLI or ANTHROPIC_API_KEY).
ccswarm auto) is gated by a sensitive-path deny-list
(.env, *.pem, *.key, id_rsa, credentials*, secrets.y*ml, ...) before
files are staged.tail / cost / replay / undo are validated against a
strict [A-Za-z0-9_-] allow-list to prevent path traversal.ccswarm undo is intentionally advisory: it prints the git log since the run
started, it never rewrites history on its own.MIT. See LICENSE.
互換性