Multi-mode coding workflow CLI for orchestrating AI coding agents
Project description
ClawForge
________ ______
/ ____/ /___ __ __ / ____/___ _________ ____
/ / / / __ `/ | /| / // /_ / __ \/ ___/ __ `/ _ \
/ /___/ / /_/ /| |/ |/ // __/ / /_/ / / / /_/ / __/
\____/_/\__,_/ |__/|__//_/ \____/_/ \__, /\___/
/____/
Multi-mode coding workflow CLI — from quick patches to parallel agent orchestration with Claude Code and Codex.
Inspired By
This project was inspired by Elvis's "OpenClaw + Codex/Claude Code Agent Swarm" workflow — a battle-tested system for managing a fleet of AI coding agents.
What It Does
ClawForge manages coding agents running in tmux sessions on isolated git worktrees. Three workflow modes match task complexity:
| Mode | Use Case | Agents |
|---|---|---|
| Sprint | Single task, full dev cycle | 1 |
| Review | Quality gate on existing PR | 0 (analysis only) |
| Swarm | Parallel orchestration | N (decomposed) |
Plus management commands: steer, attach, stop, watch --daemon, status, dashboard.
Architecture
clawforge CLI
│
┌───────────────┼───────────────┐
│ │ │
Workflow Modes Management Direct Access
┌───────────┐ ┌──────────┐ ┌──────────────┐
│ sprint │ │ status │ │ scope spawn │
│ review │ │ attach │ │ notify merge │
│ swarm │ │ steer │ │ clean learn │
└─────┬─────┘ │ stop │ └──────────────┘
│ │ watch │
│ │ dashboard│
│ └────┬─────┘
│ │
└──────┬───────┘
│
┌─────────┼─────────┐
│ │ │
tmux git worktree gh CLI
sessions (isolated) (PRs/CI)
│
coding agents
(claude / codex)
Installation
| Method | Command | Best For |
|---|---|---|
| Homebrew | brew install cyperx84/tap/clawforge |
macOS users (recommended) |
| npm | npm install -g @cyperx84/clawforge |
Node.js users |
| uv | uv tool install clawforge |
Python users |
| bun | bun install -g @cyperx84/clawforge |
Bun users |
| Source | See below | Development |
Homebrew (recommended for macOS)
brew tap cyperx84/tap
brew install cyperx84/tap/clawforge
Upgrade later:
brew update
brew upgrade clawforge
npm / bun
# npm
npm install -g @cyperx84/clawforge
# bun
bun install -g @cyperx84/clawforge
Upgrade later:
npm update -g @cyperx84/clawforge
# or
bun update -g @cyperx84/clawforge
uv (Python)
uv tool install clawforge
Upgrade later:
uv tool upgrade clawforge
Source install
git clone https://github.com/cyperx84/clawforge.git
cd clawforge
./install.sh --openclaw
That command will:
- symlink
clawforgeinto~/.local/bin - wire up
SKILL.mdfor OpenClaw - create missing directories if needed
Install modes
1) OpenClaw skill mode
./install.sh --openclaw
2) Standalone CLI mode
./install.sh --standalone
3) Custom bin path
./install.sh --openclaw --bin-dir ~/.bin
Manual install (if you prefer explicit symlinks)
mkdir -p ~/.local/bin
ln -sf "$(pwd)/bin/clawforge" ~/.local/bin/clawforge
# Optional OpenClaw skill wiring
mkdir -p ~/.openclaw/skills/clawforge/scripts
ln -sf "$(pwd)/SKILL.md" ~/.openclaw/skills/clawforge/SKILL.md
ln -sf "$(pwd)/bin/clawforge" ~/.openclaw/skills/clawforge/scripts/clawforge
Verify install
clawforge version
clawforge help
Prerequisites
bash(4+),jq,git,tmuxgh(GitHub CLI, authenticated)claudeand/orcodexCLI
Documentation
Full docs live in docs/:
- Getting Started
- Workflow Modes
- Command Reference
- Scenario Playbooks
- Dashboard (Go TUI)
- Architecture
- Fleet Ops
- Evaluation Loop
- Configuration
- Troubleshooting
- FAQ
- Changelog
Quick Start
Sprint — the workhorse
# Single agent, full dev cycle (auto-detects repo from cwd)
clawforge sprint "Add JWT authentication middleware"
# Quick patch mode — auto-merge, skip review
clawforge sprint "Fix typo in readme" --quick
# With explicit options
clawforge sprint ~/github/api "Fix null pointer" --branch fix/null-ptr --agent codex
Review — quality gate
clawforge review --pr 42
clawforge review --pr 42 --fix # Spawn agent to fix issues
clawforge review --pr 42 --reviewers claude,gemini,codex
Swarm — parallel agents
clawforge swarm "Migrate all tests from jest to vitest"
clawforge swarm "Add i18n to all strings" --max-agents 4
Monitor & Manage
clawforge status # Short IDs: #1, #2, #3
clawforge attach 1 # Attach to agent tmux session
clawforge steer 1 "Use bcrypt" # Course-correct running agent
clawforge steer 3.2 "Skip legacy" # Steer sub-agent 2 of swarm task 3
clawforge stop 1 --yes # Stop agent
clawforge watch --daemon # Background monitoring + CI feedback
clawforge dashboard # Full overview + system health
Commands
Workflow Modes
| Command | Description | Key Flags |
|---|---|---|
sprint |
Single agent, full dev cycle | --quick, --branch, --agent, --auto-merge, --dry-run |
review |
Quality gate on existing PR | --pr, --fix, --reviewers, --dry-run |
swarm |
Parallel multi-agent orchestration | --max-agents, --agent, --auto-merge, --dry-run |
Management
| Command | Description | Key Flags |
|---|---|---|
status |
Show tracked tasks with short IDs | --status |
attach |
Attach to agent tmux session | (task ID) |
steer |
Course-correct running agent | (task ID, message) |
stop |
Stop a running agent | --yes, --clean |
watch |
Monitor agent health | --daemon, --stop, --json, --interval |
dashboard |
Overview + system health | (none) |
clean |
Clean up completed tasks | --all-done, --stale-days, --dry-run |
learn |
Record learnings | --auto, --notes, --memory |
Fleet Ops (v0.6)
| Command | Description | Key Flags |
|---|---|---|
memory |
Per-repo agent memory | show, add, search, forget, clear |
init |
Scan project, generate initial memories | --claude-md |
history |
Show completed task history | --repo, --mode, --limit, --all |
Direct Module Access (via clawforge help --all)
| Command | Description |
|---|---|
scope |
Assemble prompt with context |
spawn |
Create worktree + launch agent |
notify |
Send Discord notification |
merge |
Merge PR with safety checks |
run |
Scope + spawn in one step (legacy) |
Global flag: --verbose enables debug logging for any command.
Smart Behaviors
- Auto-repo detection — No
--reponeeded if you're in a git repo - Auto-branch naming —
sprint/<slug>,quick/<slug>,swarm/<slug>with collision detection - Short task IDs —
#1,3.2instead of full slugs - CI feedback loop — Watch detects CI failure, auto-steers agent with error context (up to 2 retries)
- Escalation suggestions — Quick mode detects complex tasks, suggests full sprint
- Conflict detection — Dashboard warns when swarm agents touch overlapping files
- RAM warnings — Prompts when spawning >3 agents
- Agent memory — Per-repo knowledge base injected into agent prompts (max 20 entries)
- Project init — Auto-detect language, framework, test runner and seed memories
Configuration
Edit config/defaults.json:
{
"default_agent": "claude",
"default_model_claude": "claude-sonnet-4-5",
"default_model_codex": "gpt-5.3-codex",
"ci_retry_limit": 2,
"ram_warn_threshold": 3,
"reviewers": ["claude", "gemini"],
"auto_simplify": true,
"notify": {
"defaultChannel": "channel:..."
}
}
Testing
./tests/run-all-tests.sh
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawforge_cli-1.6.2.tar.gz.
File metadata
- Download URL: clawforge_cli-1.6.2.tar.gz
- Upload date:
- Size: 4.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
317206dea2526645cceb23d431551c167181fda339fb4d2567029a90876f0150
|
|
| MD5 |
01b6d35613e21a17a680eaf601575adb
|
|
| BLAKE2b-256 |
2407147c3a5077608c281b39c39da195fef2cc57d6fc40a609af848cf73d239e
|
File details
Details for the file clawforge_cli-1.6.2-py3-none-any.whl.
File metadata
- Download URL: clawforge_cli-1.6.2-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
638e6481326d6cd3a189d7fa4eaa1c05baf52c0eecaeaa386c871e0fde3d801c
|
|
| MD5 |
9d8a161a73a42ba5153eaf36dbf747ce
|
|
| BLAKE2b-256 |
3cf062f630b3f10610dba1814ccc3f97e79d28abed9eb0a77945e3858bedc804
|