MCPHub LabRegistrytarunms7/forge-orchestrator
tarunms7

tarunms7/forge orchestrator

Built by tarunms7 โ€ข 40 stars

What is tarunms7/forge orchestrator?

Describe what you want. Forge plans it, runs parallel AI agents, orchestrates them, reviews every line, handles merge-conflicts and opens the final PR thats ready to be merged. And it learns from mist

How to use tarunms7/forge orchestrator?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add tarunms7/forge orchestrator using the following command: npx @modelcontextprotocol/tarunms7-forge-orchestrator 4. Restart the client and verify the new tools are active.
๐Ÿ›ก๏ธ Scoped (Restricted)
npx @modelcontextprotocol/tarunms7-forge-orchestrator --scope restricted
๐Ÿ”“ Unrestricted Access
npx @modelcontextprotocol/tarunms7-forge-orchestrator

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified Standard Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

tarunms7/forge orchestrator FAQ

Q

Is tarunms7/forge orchestrator safe?

Yes, tarunms7/forge orchestrator follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is tarunms7/forge orchestrator up to date?

tarunms7/forge orchestrator is currently active in the registry with 40 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for tarunms7/forge orchestrator?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<div align="center">

FORGE

Ship features, not prompts.

Python 3.12+ Claude Code License: MIT CI

Describe what you want. Forge plans it, runs parallel AI agents, reviews every line, and opens a pull request.

Claude Code for thinking. Forge for shipping.

Why Forge? ยท Install ยท How It Works ยท In Action ยท Multi-Repo ยท Configuration ยท CLI Reference

</div> <br/>
forge tui
<p align="center"> <img src="docs/screenshots/forge_tui_dashboard.png" alt="Forge TUI โ€” home screen" width="720" /> </p>

Type your task. Hit Ctrl+S. Walk away. Come back to a pull request.


Why not just use Claude Code?

Claude Code is great. Forge is built on it. Every Forge agent IS a Claude Code session. The planner IS a Claude Code session. So why not just use Claude Code directly?

Because you're the bottleneck.

Claude Code handles one task at a time. You prompt, you wait, you review, you prompt the next thing. For a 5-task feature, that's 5 rounds of your attention. Forge runs all 5 in parallel while you do something else.

ScenarioClaude CodeForge
Fix a typoโœ… Perfect. One file, 10 seconds.Overkill. Don't use Forge for this.
Add a buttonโœ… Great. Quick and interactive.Unnecessary.
"Build JWT auth with registration, email verification, password reset, and tests"You prompt 4 times. Review 4 times. Hope they work together.Plans all 4. Generates contracts so they agree on APIs. Runs in parallel. Reviews every diff. One PR.
"Migrate 15 endpoints from requests to httpx"One by one. An hour of your time.All 15 in parallel. 8 minutes. You weren't even watching.
"Fix issue #42"You read the issue. Understand the code. Write the fix.forge fix 42. Done.
Multi-repo backend + frontend changeSwitch repos. Copy-paste API shapes. Hope they match.Agents in both repos get the same contract. They match on first try.

Forge doesn't replace Claude Code. It removes the human scheduling layer. You still approve the plan. You still review the PR. But the 45 minutes between "approve plan" and "PR ready" โ€” that's Forge, not you.

When to use what

  • Claude Code โ†’ Debugging, exploration, quick fixes, learning a codebase
  • Forge โ†’ Features, migrations, multi-file changes, anything with 2+ parallel tasks

What makes Forge different

Forge isn't another chat wrapper. It's an orchestration engine with systems that compound over time.

You're doing this todayForge does this instead
Prompting one thing at a timeDecomposes into a DAG and runs tasks in parallel
Hoping AI-written files agree on interfacesContract Builder generates binding API specs before coding starts
Manually reviewing every AI change5-gate review pipeline: build, lint, test, LLM review, contracts
Copy-pasting between chat and terminalEach agent works in an isolated git worktree โ€” zero conflicts
Losing context in long sessionsEach agent gets a focused prompt + contracts + project lessons
Merging by handAuto rebase + fast-forward merge, then gh pr create
No idea what the AI costReal-time cost tracking with budget limits
AI makes the same mistakes twiceSelf-evolving learning โ€” Forge learns from failures and gets smarter
Waiting for AI to ask obvious questionsPlanner asks you first โ€” unclear requirements get clarified before agents run

See it in action

Planning โ€” Forge reads your codebase and builds a task graph

<p align="center"> <img src="docs/screenshots/forge_planning_screen.png" alt="Forge โ€” planning phase" width="720" /> </p>

The planner has the same power as Claude Code โ€” full access to your CLAUDE.md, skills, memory, and MCP servers. It explores your codebase deeply, asks clarifying questions if something is ambiguous, and produces a structured task graph.

Plan review โ€” Approve, edit, or reject before agents run

<p align="center"> <img src="docs/screenshots/forge_plans_screen.png" alt="Forge โ€” task plan with dependencies" width="720" /> </p>

Every plan shows tasks with complexity, dependencies, file ownership, and a cost estimate. You can edit the plan, reorder tasks, or reject and re-plan with different instructions.

Execution โ€” Parallel agents with real-time learning

<p align="center"> <img src="docs/screenshots/forge_execution_with_learning.png" alt="Forge โ€” parallel execution" width="720" /> </p>

Each agent runs in its own git worktree with a focused prompt. When an agent fails and succeeds on retry, Forge captures what it learned and applies it to future runs. A health monitor watches for stuck tasks and deadlocks.

Code review โ€” Inspect every diff before merge

<p align="center"> <img src="docs/screenshots/forge_diff_screen.png" alt="Forge โ€” diff review" width="720" /> </p>

Done โ€” PR created, cost tracked, ready to merge

<p align="center"> <img src="docs/screenshots/forge_final_pr_screen.png" alt="Forge โ€” pipeline complete" width="720" /> </p>

Install

Prerequisites: Git 2.20+ and Claude Code CLI (claude login). Optional: gh CLI for automatic PR creation.

curl -fsSL https://raw.githubusercontent.com/tarunms7/forge-orchestrator/main/install.sh | sh

The installer handles Python 3.12, uv, the Forge CLI, and all dependencies. Safe to re-run to upgrade.

To upgrade later:

forge upgrade
<details> <summary><b>Manual install</b></summary>
git clone https://github.com/tarunms7/forge-orchestrator.git
cd forge-orchestrator
uv tool install --python 3.12 ".[web]"
forge doctor
</details>

Quick start

cd your-project
forge tui

Type what you want. Hit Ctrl+S. Forge auto-creates .forge/ on first run.

Or skip the TUI:

forge run "Add input validation to all API endpoints"

Fix a GitHub issue directly:

forge fix 42    # Fetches issue #42 and builds a pipeline to fix it

How it works

You: "Build a REST API with JWT auth and tests"
                    โ”‚
              1. PRE-FLIGHT
              Validates tools, branches, disk space
              โ€” catches problems before spending money
                    โ”‚
              2. PLAN
              Full Claude Code power โ€” reads codebase,
              asks clarifying questions, builds task DAG
                    โ”‚
              3. CONTRACT
              Generates binding API & type specs so
              agents agree on interfaces before coding
                    โ”‚
              4. EXECUTE
              Parallel agents in isolated git worktrees
              with real-time health monitoring
                    โ”‚
              5. REVIEW
              5-gate pipeline per task:
              build โ€บ lint โ€บ test โ€บ LLM review โ€บ contracts
                    โ”‚
              6. FORMAT + MERGE
              Auto-format, rebase, fast-forward merge,
              then gh pr create

The Contract Builder

Two agents writing a backend API and a frontend client will invent different field names and response shapes. Forge solves this with binding contracts generated before any code is written:

POST /api/templates
  Request:  { name: string, description: string, tasks: TaskConfig[] }
  Response: { id: string, name: string, created_at: string }
  Producer: task-1 (backend)  โ”‚  Consumer: task-2 (frontend)

Producers implement the spec. Consumers call the spec. The reviewer checks compliance.

Self-evolving learning

Forge gets smarter with every pipeline it runs:

  • Adaptive timeouts โ€” ESLint took 180s and failed? Next run starts at 360s. Automatically.
  • Agent learnings โ€” When a task fails then succeeds on retry, Forge asks "what did you do differently?" and stores the answer as a lesson.
  • Noise filtering โ€” Server 503s and transient errors aren't stored. Only real pattern changes become lessons.
  • Cross-pipeline โ€” Lessons persist across projects. What Forge learns on one repo helps on the next.
forge lessons list    # See what Forge has learned
forge lessons add     # Manually teach Forge something

Pre-flight validation

Before any pipeline starts, Forge runs 8 fast checks:

  • Claude CLI installed and authenticated
  • Git repo valid, base branch exists
  • gh CLI available (for PR creation)
  • Sufficient disk space (>1 GB)
  • No uncommitted changes that would interfere
  • Build/test commands resolvable

If anything fails, you get a clear error with a fix command โ€” not a cryptic failure 5 minutes into planning.

Pipeline health monitor

During execution, a background watchdog detects:

  • Stuck tasks โ€” in_progress for >15 minutes with no activity
  • Stuck reviews โ€” review gate running for >10 minutes
  • Deadlocks โ€” all tasks blocked with no way to make progress
  • Dependency cascades โ€” failed task blocking downstream work

Problems are logged and surfaced immediately, not discovered after the pipeline "completes."


Multi-repo workspaces

Forge natively supports monorepos and multi-repo setups. Point it at a directory with multiple git repos:

super-repo/
  backend/     โ† git repo on 'develop' branch
  frontend/    โ† git repo on 'main' branch
  shared-lib/  โ† git repo on 'main' branch
cd super-repo
forge tui

Forge auto-detects the repos and uses whatever branch each repo is currently checked out to as the base. No config needed. The TUI shows branch selectors for each repo so you can override at submission time.

Agents get repo-aware prompts. The planner understands cross-repo dependencies. Contracts ensure APIs match across repos.


Configuration

All settings use the FORGE_ prefix. Build and test commands are auto-detected from your project.

SettingDefaultWhat it does
FORGE_MAX_AGENTS5Max concurrent agents
FORGE_AGENT_TIMEOUT_SECONDS600Per-task timeout
FORGE_MAX_RETRIES5Retries per task on failure
FORGE_BUDGET_LIMIT_USD0 (unlimited)Per-pipeline spend cap
FORGE_MODEL_STRATEGYautofast / auto / quality
FORGE_REQUIRE_APPROVALfalseHuman approval before merge
FORGE_BUILD_CMD(auto)Override build command
FORGE_TEST_CMD(auto)Override test command
FORGE_BUDGET_LIMIT_USD=5 forge run "Refactor auth to OAuth2"

Project config

Drop a forge.toml in your .forge/ directory for per-project settings:

[agents]
max_parallel = 4
timeout_seconds = 300

[review]
max_retries = 3

[lint]
check_cmd = "npm run lint"
fix_cmd = "npm run lint:fix"

Model routing

StrategyPlannerAgentsReviewer
fastSonnetHaikuHaiku
autoOpusSonnetSonnet
qualityOpusOpusSonnet

CLI reference

CommandWhat it does
forge tuiLaunch the terminal UI
forge run "task"Run a pipeline from the command line
forge fix 42Fix GitHub issue #42 via pipeline
forge statusShow pipeline status
forge statsPipeline analytics and metrics
forge logs <id>Event timeline for a pipeline
forge lessons listShow learned lessons
forge lessons addManually add a lesson
forge doctorCheck environment health
forge cleanRemove stale worktrees and branches
forge initInitialize Forge in a project
forge serveStart the web dashboard
forge upgradeUpgrade to latest version
forge pingVerify Claude CLI is reachable

Web dashboard

forge serve   # Backend :8000 + Frontend :3000

Live pipeline progress via WebSocket, interactive plan editing, contract viewer, review gate results, and cost tracking. Set FORGE_JWT_SECRET for multi-user auth.

Requires a git clone install, not the one-line installer.


Architecture

forge/
  cli/           # Click CLI โ€” 14 commands
  tui/           # Textual TUI โ€” full terminal UI with live pipeline view
  core/          # Orchestration โ€” daemon, planner, executor, scheduler, health monitor
  agents/        # Claude Code SDK adapter โ€” agent runtime, prompt building
  merge/         # Git worktree lifecycle โ€” create, merge, cleanup
  review/        # Multi-gate review โ€” lint, build, test, LLM review
  learning/      # Self-evolving โ€” lesson store, runtime guard, extractor
  storage/       # SQLite via SQLAlchemy async โ€” tasks, pipelines, events, analytics
  config/        # Settings, project config, forge.toml, workspace.toml
  api/           # FastAPI backend for web dashboard
web/             # Next.js frontend โ€” TypeScript, Tailwind, Zustand

Troubleshooting

ProblemFix
forge: command not foundRe-run the installer, or add ~/.local/bin to PATH
Claude CLI not authenticatedclaude login
gh: command not foundInstall GitHub CLI and gh auth login
Pipeline stuckForge auto-detects stuck tasks. Check .forge/forge.log
Database issuesforge doctor
Upgrade failsforge upgrade auto-handles Python 3.12 installation

Contributing

git clone https://github.com/tarunms7/forge-orchestrator.git
cd forge-orchestrator
python -m venv .venv && source .venv/bin/activate
pip install -e '.[dev,web]'
python -m pytest forge/ -q

CI runs ruff lint + format + 2200+ tests on every PR.


License

MIT

Global Ranking

4.0
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "tarunms7-forge-orchestrator": { "command": "npx", "args": ["tarunms7-forge-orchestrator"] } } }