← Back to Skills Marketplace
bowen31337

claw-forge CLI

by bowen31337 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
290
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install claw-forge-cli
Description
Use the claw-forge CLI to run autonomous coding agents on a project until all features pass. Covers the full workflow: init → spec → plan → run → status → ui...
README (SKILL.md)

claw-forge CLI

claw-forge is a multi-provider autonomous coding agent harness.
Agents run in parallel, claim features from a dependency DAG, and keep working until every feature passes — or you stop them.

GitHub: https://github.com/clawinfra/claw-forge
PyPI: https://pypi.org/project/claw-forge/

Install

pip install claw-forge
# or (recommended):
uv pip install claw-forge

Full Workflow

1 — Bootstrap a project

cd my-project
claw-forge init

Creates:

  • CLAUDE.md — agent instructions (stack-aware)
  • .claude/ — slash commands (/create-spec, etc.)
  • claw-forge.yaml — provider pool config
  • .env.example — API key template

2 — Write a spec

Create app_spec.txt (plain text) or app_spec.xml (structured XML):

Project: My App
Stack: Python, FastAPI, SQLite

Authentication:
- JWT login endpoint
- Token refresh
- Session management

Dashboard:
- Real-time stats via WebSocket
- Export CSV

Or use the Claude slash command inside Claude Code: /create-spec

3 — Plan: parse spec → feature DAG

claw-forge plan app_spec.txt
  • Decomposes spec into atomic features
  • Assigns dependency edges (A must pass before B starts)
  • Writes task graph to .claw-forge/state.db
  • Uses Opus by default (planning is the most critical step)
# Use Sonnet if cost matters more
claw-forge plan app_spec.txt --model claude-sonnet-4-6

4 — Run agents

claw-forge run

Default: 5 parallel coding agents, reads claw-forge.yaml.

# More concurrency
claw-forge run --concurrency 8

# Pin a specific model
claw-forge run --model claude-opus-4-6

# YOLO mode — skip human-input gates, max speed, aggressive retry
claw-forge run --yolo

# Preview without executing
claw-forge run --dry-run

# Use hashline edit mode (better for weaker models — 6.7%→68.3% benchmark)
claw-forge run --edit-mode hashline

5 — Check progress

claw-forge status

Shows: passing/failing/running/pending feature counts, recommended next action.

6 — Open the Kanban UI

claw-forge ui

Opens a browser-based Kanban board at http://localhost:8888.
Shows real-time agent activity, feature status, costs, and logs.


All Commands

Command Purpose
init Bootstrap project (CLAUDE.md, config, slash commands)
plan \x3Cspec> Parse spec → feature DAG in state DB
run Run agents until all features pass
status Show progress and recommended next action
ui Launch Kanban UI at localhost:8888
dev Start API + Vite dev server (for UI development)
add \x3Cspec> Add features to an existing project (brownfield)
pause Drain mode: finish in-flight, start no new agents
resume Resume after pause
fix \x3Cdesc> Fix a bug using RED→GREEN reproduce-first protocol
merge Squash-merge a feature branch to target
input Answer pending human-input questions interactively
pool-status Show provider pool health and current routing
state Start the AgentStateService REST + WebSocket API

Config: claw-forge.yaml

# Provider pool — add as many as you have keys for
providers:
  anthropic-primary:
    type: anthropic
    api_key: ${ANTHROPIC_API_KEY}
    priority: 1
    enabled: true
    max_rpm: 50
    model: claude-sonnet-4-6

  anthropic-backup:
    type: anthropic
    api_key: ${ANTHROPIC_API_KEY_2}
    priority: 2
    enabled: true
    max_rpm: 30
    model: claude-sonnet-4-6

# Pool routing strategy
pool:
  strategy: priority       # priority | round_robin | least_cost

# Model aliases (use in --model flag)
model_aliases:
  fast: claude-haiku-4-5
  smart: claude-opus-4-6
  default: claude-sonnet-4-6

# Git integration
git:
  enabled: true
  merge_strategy: auto     # auto | squash | merge

Edit Modes

str_replace (default)

Standard exact-text matching. Works well with capable models (Sonnet, Opus).

hashline (recommended for weaker models)

Content-addressed line tagging. Each line gets a 3-char hash prefix.
Model references lines by hash — immune to whitespace/indentation drift.
Benchmark: 6.7% → 68.3% success rate improvement on Grok Code Fast.

claw-forge run --edit-mode hashline

Brownfield (add to existing project)

# Write additions spec
cat > additions_spec.xml \x3C\x3C 'EOF'
\x3Cproject_specification>
  \x3Cproject_name>my-app\x3C/project_name>
  \x3Cfeatures_to_add>
    \x3Cauth>
      - Add OAuth2 Google login
      - Add rate limiting to auth endpoints
    \x3C/auth>
  \x3C/features_to_add>
\x3C/project_specification>
EOF

claw-forge add additions_spec.xml

Bug Fix Protocol

# Reproduce-first: agent writes failing test, then fixes it
claw-forge fix "Login fails when email has uppercase letters"

Common Patterns

Quick greenfield project

mkdir my-api && cd my-api
claw-forge init
# write app_spec.txt
claw-forge plan app_spec.txt
claw-forge run --concurrency 3
claw-forge status

Cost-optimised run

# Mix cheap + expensive: cheap model in pool for simple tasks
claw-forge run --model claude-haiku-4-5 --concurrency 10

Multi-provider failover

# Add multiple providers to claw-forge.yaml
# Pool auto-fails over on rate limits or errors
claw-forge pool-status    # check health
claw-forge run            # runs with automatic failover

YOLO overnight run

claw-forge run --yolo --concurrency 8
# Come back in the morning — all features should be passing

Tips

  • Planning quality = outcome quality. Don't skimp on the planning model. Use Opus for plan.
  • More concurrency ≠ always better. Each agent needs context. 3–5 is usually the sweet spot.
  • --edit-mode hashline dramatically helps weaker/cheaper models that struggle with exact text matching.
  • claw-forge status tells you exactly what to do next — trust it.
  • claw-forge ui is the best way to monitor long runs — live logs per agent, cost tracking, dependency graph.
  • Provider API keys go in .env (never commit). .env.example is the template.
Usage Guidance
This skill appears to be a usage guide for the claw-forge CLI (benign in intent) but there are important mismatches and operational risks to consider before installing or invoking it: - The SKILL.md and examples reference provider API keys (e.g., ANTHROPIC_API_KEY, ANTHROPIC_API_KEY_2) and create a .env.example, but the registry metadata does not declare any required environment variables. Ask the publisher to clarify which secrets the skill needs and why. Do not provide keys until you understand required scopes/limits. - The tool can run agents that write tests, edit code, and perform merges. That means it can modify your repository and potentially push changes. Only run this in repositories where you trust automated merges, or test in a fork/isolated clone with backups and protected branches. - The skill starts local services (UI, REST/WebSocket) on localhost. Be aware these bind network ports; run the tool in a safe environment and check firewall/port exposure if you have strict network policies. - Installation is suggested from PyPI (pip install claw-forge). Verify the PyPI package and upstream project (https://github.com/clawinfra/claw-forge) before installing. Consider installing into an isolated virtualenv/container and inspecting the package source first. - Limit provider keys to least privilege (rate limits, project-scoped if possible), and prefer separate keys for testing vs production. - Because the registry didn't enumerate required env vars or install steps, treat this as incomplete metadata. If you need to use the skill, request corrected metadata from the publisher or run the tooling manually until you confirm what secrets and permissions are required. If you want, I can: (a) list concrete questions to ask the publisher, (b) draft a safe install/run checklist, or (c) show commands to run claw-forge in an isolated container for testing.
Capability Analysis
Type: OpenClaw Skill Name: claw-forge-cli Version: 1.0.2 The skill bundle facilitates the use of 'claw-forge', an autonomous coding agent harness with high-risk capabilities such as a 'YOLO mode' (--yolo) that bypasses human-in-the-loop gates and the ability to execute arbitrary code across a project. While the behavior is aligned with the stated purpose of a multi-agent coding tool, the inherent risks of autonomous execution, local API/WebSocket servers (claw-forge ui/state), and the management of sensitive API keys in configuration files (claw-forge.yaml) meet the threshold for a suspicious classification in the absence of verified intent.
Capability Assessment
Purpose & Capability
Name/description match the actions shown in SKILL.md (init, plan, run, status, ui, merge). The only declared runtime requirement in the registry is the 'claw-forge' binary, which is consistent. However, SKILL.md includes an embedded install suggestion (pip install claw-forge) and shows provider/API-key usage in example configs that the registry metadata did not declare — a minor inconsistency that should be clarified.
Instruction Scope
Instructions tell the agent to run CLI commands that can bootstrap projects, create config files (.env.example, claw-forge.yaml), run agents, open a local UI, run a REST+WebSocket AgentStateService, and perform merges (squash-merge). Those are within the claimed purpose, but they also imply the agent may perform repository writes/merges, start network services on localhost, and require provider API keys. The SKILL.md references environment variables (ANTHROPIC_API_KEY, ANTHROPIC_API_KEY_2) and git integration but the registry declared no required env vars — the skill instructs actions that rely on secrets and potentially mutates code/repo, which is material and should be explicitly declared.
Install Mechanism
This is instruction-only in the registry (no install spec), but the SKILL.md includes a pip install suggestion (package 'claw-forge' on PyPI). Installing from PyPI is typical and reasonable for this tool; no arbitrary download URLs are used. The mismatch between 'no install spec' in the registry and the SKILL.md's embedded install metadata should be resolved.
Credentials
Registry metadata lists no required env vars, but the provided config examples explicitly expect provider API keys (ANTHROPIC_API_KEY, ANTHROPIC_API_KEY_2) and .env.example is created to hold keys. The skill also performs operations that may require git credentials (merge/push). The absence of declared credential requirements in metadata is a red flag; these credentials are sensitive and their use should be made explicit.
Persistence & Privilege
The skill is not always-enabled and does not request special platform privileges. However, runtime behavior (starting an AgentStateService REST + WebSocket service, opening a local UI, running autonomous agents that can merge code) gives it the ability to modify repositories and run long-lived local services. This matches the tool's purpose but increases the blast radius and should be considered before granting it execution rights.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-forge-cli
  3. After installation, invoke the skill by name or use /claw-forge-cli
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
Add repo link to SKILL.md; published from github.com/clawinfra/claw-forge-cli-skill
v1.0.1
Published from dedicated skill repo (github.com/clawinfra/claw-forge-cli-skill)
v1.0.0
Initial publish — full claw-forge CLI workflow skill
Metadata
Slug claw-forge-cli
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is claw-forge CLI?

Use the claw-forge CLI to run autonomous coding agents on a project until all features pass. Covers the full workflow: init → spec → plan → run → status → ui... It is an AI Agent Skill for Claude Code / OpenClaw, with 290 downloads so far.

How do I install claw-forge CLI?

Run "/install claw-forge-cli" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is claw-forge CLI free?

Yes, claw-forge CLI is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does claw-forge CLI support?

claw-forge CLI is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created claw-forge CLI?

It is built and maintained by bowen31337 (@bowen31337); the current version is v1.0.2.

💬 Comments