Skip to main content

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 clawforge into ~/.local/bin
  • wire up SKILL.md for 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, tmux
  • gh (GitHub CLI, authenticated)
  • claude and/or codex CLI

Documentation

Full docs live in docs/:

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 --repo needed if you're in a git repo
  • Auto-branch namingsprint/<slug>, quick/<slug>, swarm/<slug> with collision detection
  • Short task IDs#1, 3.2 instead 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clawforge_cli-1.6.1.tar.gz (4.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clawforge_cli-1.6.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file clawforge_cli-1.6.1.tar.gz.

File metadata

  • Download URL: clawforge_cli-1.6.1.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

Hashes for clawforge_cli-1.6.1.tar.gz
Algorithm Hash digest
SHA256 1d9eeea7133ad479aa8d4036c27668a599232dce772a0c0053875b132bcebc9e
MD5 67f9a6aef173996807d7e604f88a9af8
BLAKE2b-256 aef61085869636dbb92f49c81fdae9587f19891b5fbdc750cdf1f7770f4acdc0

See more details on using hashes here.

File details

Details for the file clawforge_cli-1.6.1-py3-none-any.whl.

File metadata

  • Download URL: clawforge_cli-1.6.1-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

Hashes for clawforge_cli-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe68989d7abc1efa0bae1b1b5e0345c432237c7c66ac445ae08f0444b8080f11
MD5 20a0dfab27c6c0b2d01a79122dde9ec1
BLAKE2b-256 85332bd67262895e0f62502dc73ed9a0231da9a674e788a871b78f6fb4c50c4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page