New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

claude-forge-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claude-forge-plugin

Multi-CLI delegation and orchestration for Claude Code - route backend to Codex, frontend to Gemini

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source
claude-forge

npm   license   node

Multi-CLI delegation and orchestration for Claude Code.

Route backend work to Codex CLI (GPT-5.3, 128K) and frontend work to Gemini CLI (1M context). Claude orchestrates everything — classifying tasks, delegating to the right model, and verifying results.

No CLIs required. Built-in agents handle it when CLIs aren't installed.

Install

npm install -g claude-forge-plugin

Or as a Claude Code plugin:

/plugin marketplace add https://github.com/staticpayload/claude-forge
/plugin install claude-forge

Then run the setup wizard:

/claude-forge:setup

The wizard handles CLI detection, model preferences, HUD configuration, and team setup. Already configured? It offers a quick CLAUDE.md update instead of the full wizard.

How it works

Your prompt hits a keyword router (100+ patterns). It classifies the task, scores complexity, and routes to the right destination.

prompt → keyword router → classification
                            ├── Codex CLI    (backend signals: api, server, database, auth...)
                            ├── Gemini CLI   (frontend signals: component, ui, css, react...)
                            ├── built-in agents  (when CLIs unavailable)
                            └── direct execution (simple tasks)

Complexity scoring decides the model tier: Haiku for simple work, Sonnet for standard, Opus for architecture.

Teams

Coordinated multi-agent teams using Claude Code native infrastructure. The flagship orchestration feature.

/claude-forge:team 4 "build the user dashboard with auth, API, components, and tests"
          ┌─────────────────────────────────────────┐
          │              TEAM LEAD                   │
          │   decompose → route → monitor → verify   │
          └──────┬──────────┬──────────┬─────────────┘
                 │          │          │
         ┌───────▼──┐ ┌────▼─────┐ ┌──▼────────┐
         │ Worker 1  │ │ Worker 2 │ │ Worker 3  │
         │ executor  │ │ designer │ │ codex MCP │
         │ (claude)  │ │ (claude) │ │ (GPT-5.3) │
         └───────────┘ └──────────┘ └───────────┘

Workers communicate directly, claim tasks from a shared list, and respect file ownership boundaries.

Smart auto-routing classifies each subtask and sends it to the best provider — Codex for backend, Gemini for frontend, Claude agents for everything else. No manual routing needed.

What makes it different

Featureclaude-forgeOthers
Worker-to-worker messagingPeer-to-peerLead-only
Task routingAutomatic per-subtaskManual
Dynamic scalingEarly finishers reassignedFixed
Cascade modeAuto-create test + review tasksNone
Cross-CLI verificationAlternate model reviews workNone
Team templates5 pre-builtNone
Build step requiredNoYes

Templates

Start fast with pre-built team compositions:

TemplateWorkersUse case
build-teamarchitect + executor + designerFeature development
review-teamstyle + quality + security + perfCode review
fullstack-teamarchitect + executor + designer + test-engineerEnd-to-end features
audit-teamsecurity + quality + code reviewersSecurity audit
debug-teamexplorer + debugger + executorBug investigation
/claude-forge:team fullstack-team "implement the billing system"

Full teams documentation →

Swarm

Lightweight fire-and-forget parallel execution. No team overhead — just spawn agents and collect results.

/claude-forge:swarm 5 "write unit tests for each service in src/services/"

Swarm decomposes the task, routes each subtask to the best provider, spawns all agents immediately, and reports results. Wave-based spawning handles 5+ tasks without hitting concurrency limits.

Use team when tasks need coordination. Use swarm when they're independent.

Full swarm documentation →

Execution Modes

9 modes that compose together. Full guide →

ModeTriggerDescription
autopilot"autopilot", "build me"Full pipeline — expand, plan, execute, QA, validate
ralph"ralph", "don't stop"Persistence loop — work, verify, repeat until done
ultrawork"ulw", "ultrawork"Parallel engine — decompose, assign ownership, run simultaneously
ecomode"ecomode", "budget"Cost-efficient model routing — Haiku/Sonnet preference
ultraqa"ultraqa"QA cycling — test, diagnose, fix, repeat
ultrapilot"ultrapilot"Parallel autopilot with file ownership partitioning
team"forge team", template namesCoordinated agents with shared task list
swarm"swarm", "fire and forget"Fire-and-forget parallel execution
pipeline"pipeline", "chain agents"Sequential agent chains with data passing

Ralph includes ultrawork. Ecomode modifies any mode. Autopilot transitions to ralph or ultraqa.

Skills

42+ skills across 8 categories. Trigger them naturally or with /claude-forge:<skill>.

CLI delegation

SkillDescription
forgeAuto-route to best CLI by signal classification
backend / frontendDirect delegation to Codex or Gemini
backend-agent / frontend-agentBuilt-in agents when CLIs unavailable
reviewParallel review — Codex checks logic, Gemini checks design
parallelDecompose task into parallel waves across both CLIs

Planning and research

SkillDescription
planStrategic planning with interview, consensus, or review modes
researchParallel scientists — sub-questions, cross-validation, synthesis

Code quality

SkillDescription
code-review5-dimension severity-rated review
security-reviewOWASP Top 10, secrets detection, auth audit
tddRed-Green-Refactor enforcement
build-fixMinimal-diff fixes for build errors

Analysis

SkillDescription
analyzeDeep investigation — architecture, bugs, performance
deepsearchMulti-strategy exhaustive codebase search
Productivity, specialists, and configuration

Productivity: worktree · techdebt · fix · learn · deepinit · note · learner · trace

Specialists: frontend-ui-ux · git-master

Configuration: setup · doctor · help · hud · cancel · set-codex-model · set-gemini-model · enable-codex · enable-gemini

Magic keywords

Say these naturally in any prompt. They compose together.

KeywordEffect
ultrawork / ulwMaximum parallelism — decompose and run agents simultaneously
deepsearchExhaustive search — multiple strategies, never stops at first result
analyze / investigateDeep context gathering before any action
ultrathink / think hardExtended reasoning — quality over speed

"ultrawork this analysis" activates both parallel execution and deep investigation.

Agents

32 agents with automatic model routing. Full catalog →

LaneAgents
Buildexplorer · analyst · planner · architect · debugger · executor · deep-executor · verifier
Reviewstyle-reviewer · quality-reviewer · api-reviewer · security-reviewer · performance-reviewer · code-reviewer
Domaindependency-expert · test-engineer · build-fixer · designer · writer · qa-tester · scientist · git-master · quality-strategist
Productproduct-manager · ux-researcher · information-architect · product-analyst
Coordinationcritic · vision · researcher · team-lead · team-worker

Team compositions

Feature:    analyst → planner → executor → test-engineer → quality-reviewer → verifier
Bug fix:    explorer + debugger → executor → test-engineer → verifier
Review:     style-reviewer + quality-reviewer + api-reviewer + security-reviewer
Full-stack: planner → [Codex: backend] + [Gemini: frontend] → test-engineer → verifier

HUD

Two-line status bar showing everything at a glance.

branch:main | model:Claude Opus 4
[FORGE] | 5h:[████████]42% wk:[████░░░░]28% | cx:✓ gm:✓ | run:cx:1 done:3 | ~$0.18 | ctx:[██████░░░░]62%

Rate limits, CLI availability, active jobs, cost estimate, context usage. Configure with /claude-forge:hud.

Architecture

Two MCP servers handle CLI delegation. Full guide →

forge-codex — Spawns codex exec --yolo via stdin. GPT-5.3, 128K context. Tools: codex_exec · codex_status · codex_cancel · codex_list

forge-gemini — Spawns gemini -y via stdin. Gemini 3 Pro, 1M context. Tools: gemini_exec · gemini_status · gemini_cancel · gemini_list

Five lifecycle hooks: SessionStart (CLI detection) · UserPromptSubmit (keyword routing) · PreToolUse (per-tool hints) · PostToolUse (context monitoring) · Stop (continuation enforcement)

Security: path-validated context files, system directory blocklist, basename-only CLI resolution, anti-loop sandwich pattern, 10MB output cap.

File structure
claude-forge/
├── .claude-plugin/
│   ├── plugin.json
│   └── marketplace.json
├── agents/                  32 agent system prompts
│   ├── team-lead.md         team coordinator (opus)
│   └── team-worker.md       team worker (sonnet)
├── docs/                    feature documentation
│   ├── teams.md
│   ├── swarm.md
│   ├── modes.md
│   ├── agents.md
│   └── cli-delegation.md
├── hooks/hooks.json         5 lifecycle hooks
├── hud/
│   ├── forge-hud.mjs        status bar renderer
│   └── usage-api.mjs        Anthropic Usage API
├── scripts/
│   ├── keyword-router.mjs   100+ regex patterns
│   ├── session-init.mjs     CLI detection
│   ├── context-monitor.mjs  token tracking
│   ├── pre-tool-enforcer.mjs
│   ├── continuation.mjs     exit prevention
│   └── lib/                 routing, keywords, complexity
├── servers/
│   ├── codex-server.mjs     Codex MCP server
│   └── gemini-server.mjs    Gemini MCP server
├── skills/                  42+ skill definitions
│   ├── team/SKILL.md        1600 lines — teams orchestration
│   ├── swarm/SKILL.md       fire-and-forget parallel
│   └── ...
└── templates/CLAUDE.md      injected instructions

Documentation

GuideDescription
TeamsCoordinated multi-agent teams — templates, lifecycle, smart routing, cascade
SwarmFire-and-forget parallel execution — wave spawning, routing
Execution ModesAll 9 modes — autopilot, ralph, ultrawork, teams, and more
AgentsFull catalog of 32 agents — models, capabilities, compositions
CLI DelegationCodex and Gemini integration — routing, MCP tools, fallbacks

Examples

autopilot: Build user auth with JWT, password hashing, rate limiting, and email verification
forge team fullstack-team: Implement the entire checkout flow with Stripe integration
swarm 5: Write comprehensive tests for every module in src/services/
ultrawork: Migrate the entire codebase from CommonJS to ESM
forge review the authentication PR
ecomode: Add form validation to the signup page

Troubleshooting

Codex CLI not found — npm install -g @openai/codex then /claude-forge:enable-codex

Gemini CLI not found — npm install -g @google/gemini-cli then /claude-forge:enable-gemini

Skills not appearing — Run /claude-forge:doctor for 7 diagnostic checks with auto-fix

Cancel a stuck mode — /claude-forge:cancel --force

Contributing

Pure ESM JavaScript, no build step. Add a skill by creating skills/<name>/SKILL.md, adding trigger patterns to keyword-router.mjs, and updating templates/CLAUDE.md.

GPL-3.0 · GitHub · npm · Issues

FAQs

Package last updated on 10 Feb 2026

Related posts