The Forge

Multiple LLMs compete to solve the same coding challenge, a real JIT compiler judges them, and evolution breeds winners into code no single model could write.

Stars
★ 14
Last updated
1mo ago
FARS reviewed
Sep 26, 2026
License
MIT
Primary language
Python

At a glance

Works with
Universal · cross-platformOpenAI API · Claude API
You'll need
Python 3.12+At least one LLM API key (OpenRouter, Anthropic, OpenAI, Google, or DeepSeek)Ollama (optional)Vitalis JIT compiler v60 (optional)Shell / CLINetwork accessLocal filesystemMCP Server
Typical use
Algorithm or interview-prep practitioners who want several models to attack one problem and evolve the survivors for measurably better solutions.
Main limitation
Requires at least one paid LLM API key; a multi-generation tournament across several models can consume a lot of tokens and the README gives no cost estimates.
Maintenance
Commits in the last 6 monthslast commit 2026-10-23

What does this agent do, and when should you use it?

The Forge is a self-hosted multi-agent code evolution platform. It dispatches one coding challenge to several frontier or local models, then runs every candidate through the 7 gates of the Vitalis compiler (lex, parse, type-check, lint, capability, compile, execute); anything that fails is eliminated. Survivors enter an evolution layer that combines KLS stochastic localization tilt selection, Boltzmann/softmax selection, Bayesian UCB1, elite passthrough, quantum-inspired annealing, uniform/single-point/AST-aware crossover and several mutation operators across hundreds of generations, scored on six weighted fitness dimensions (correctness 30%, performance 25%, quality 15%, robustness 15%, efficiency 10%, novelty 5%). The main entry point is a Python server, forge_server.py, serving a single-file dashboard on 127.0.0.1:8777; there is also a forge_cli.py with nine subcommands, a forge_mcp.py MCP server exposing 13 tools over JSON-RPC 2.0 stdio, and an importable Python SDK (Arena, factory_build, auto_route). Around the core sit an Agent Factory (18 artifact types across 9 languages, including Lean 4 proofs), three-tier memory, a fitness-gated self-improvement engine, a SHA-256 provenance ledger and per-request budget tracking. It is MIT licensed, requires at least one vendor API key, and is explicitly positioned as a local, high-privilege single-user tool rather than a public service.

On launch, forge_server.py exposes REST endpoints such as /api/chat, /api/build, /api/compile, /api/orchestrate and /api/self-improve. /api/build fans a description out to multiple models — direct Anthropic/OpenAI/Google/DeepSeek/xAI calls when keys exist, OpenRouter as relay fallback, and Ollama for local models — and collects competing artifacts. The fitness engine scores each with Vitalis heuristics (line count, import density, error handling, complexity) plus a Gemini semantic pass, weighted 60% heuristic / 40% LLM, and deployer.py writes deployment scaffolding (mcp.json, Dockerfile, Cargo.toml, etc.) only after the PolicyEngine approves. forge/arena.py orchestrates tournaments while forge/evolution.py performs crossover, mutation and selection, and forge/benchmark.py supplies Welford online statistics, Student's t confidence intervals, Welch's t-test, Cohen's d and MAD outlier detection before anything is declared a winner. Every action is appended to a hash-chained provenance ledger in governance.py, while budget.py records tokens, cost and latency per request and enforces the FORGE_BUDGET_USD cap. All /api/* routes except /api/health require an X-Forge-Key header, auto-generated into .forge_key on first run.

  1. Algorithm or interview-prep practitioners who want several models to attack one problem and evolve the survivors for measurably better solutions.
  2. Platform engineers using forge_cli.py build so models compete on an MCP server, FastAPI service or Terraform module and the winner arrives with deployment files.
  3. Teams managing model spend who need per-provider token, latency and cost breakdowns plus auto_route to pick the cheapest capable model.
  4. Developers wiring code generation into MCP clients such as Cursor or VS Code via the 13 tools in forge_mcp.py for scoring, compiling, building and provenance.
  5. Researchers combining LLM generation with evolutionary computation who want KLS selection, Pareto fronts and deterministic replay/A-B testing.
  6. Individual developers with a GPU who want local Ollama inference switched between gpu, cpu and split modes via FORGE_COMPUTE.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install -r requirements.txt
Environment variables
OPENROUTER_API_KEY FORGE_BIND_HOST
Config files
challenges/sort_integers.json
Runtime
Python 3.12+
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

You need Python 3.12+ and at least one vendor API key. Ollama and Vitalis v60 are optional; without Vitalis the compiler falls back to a pure-Python .sl interpreter.

git clone https://github.com/ModernOps888/the-forge.git
cd the-forge
pip install -r requirements.txt

Set a key (PowerShell or Linux/macOS):

$env:OPENROUTER_API_KEY = "sk-or-v1-your-key-here"
export OPENROUTER_API_KEY="sk-or-v1-your-key-here"

Direct Anthropic, OpenAI, Google, DeepSeek or xAI keys are also supported and reduce latency.

How do you use this agent?

Start the server and dashboard:

python forge_server.py

Then open http://localhost:8777; the dashboard pulls .forge_key over the loopback-only /api/auth-bootstrap endpoint. To avoid API spend entirely, run the mock tournament first:

python forge_cli.py demo --generations 5 --population 10

A real tournament and a factory build:

python forge_cli.py arena --challenge challenges/sort_integers.json --generations 20
python forge_cli.py build "Build a GitHub webhook receiver with HMAC verification"

Or call the SDK directly:

from forge import factory_build

result = factory_build(
    description="Build a GitHub MCP server with PR review and issue triage tools",
    artifact_type="mcp_server",
)
print(result.leaderboard())

Relevant switches: FORGE_BIND_HOST defaults to 127.0.0.1, FORGE_ALLOW_SHELL_EXEC is off by default, and FORGE_BUDGET_USD caps spend.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • A real compiler acts as judge: the 7 Vitalis gates filter submissions before scoring, and the final score is weighted 60% toward deterministic heuristics rather than model self-evaluation.
  • The evolution layer goes beyond a basic GA — KLS stochastic localization tilt selection, Boltzmann, UCB1, elite passthrough, AST-aware crossover and Lévy-flight mutation, with a 10-seed A/B benchmark reported (Welch t=4.59, Cohen's d=2.0527).
  • Statistical rigor is built in: Welford online variance, Student's t 95% CIs, Welch's t-test, Cohen's d, MAD outlier detection and a 30-run minimum before declaring significance.
  • Multi-vendor routing with direct Anthropic/OpenAI/Google/DeepSeek/xAI calls, OpenRouter fallback, Ollama locals, and per-request cost tracking with a hard budget cap.
  • Breadth of integration: an Agent Factory covering 18 artifact types across 9 languages with generated deployment files, a 13-tool MCP server, a single-file dashboard, a SHA-256 provenance ledger, and CLI, SDK and HTTP interfaces.
  • Sensible security defaults: loopback-only binding, key auth on every /api/* route, origin-restricted CORS, path jailing to the repo, refusal to read credential files, and a fail-closed fitness gate for self-patching.
Limitations
  • Requires at least one paid LLM API key; a multi-generation tournament across several models can consume a lot of tokens and the README gives no cost estimates.
  • The judging path depends on Vitalis (v60 JIT). Without it the pure-Python .sl fallback works but loses the native compilation and heuristic speed.
  • Explicitly a local single-user tool: the API key is a shared secret, not an identity or authorization system, and the authors warn against public exposure.
  • High-privilege features (shell execution, GUI keystroke automation, self-modifying source) need extra environment flags and rely on the PolicyEngine to contain them — misconfiguration is on the operator.
  • Version metadata is inconsistent: the badge says v2.5.0, the package comment says v2.4.0, and factory.py comments say 17 artifact types while the tables list 18.
  • The model registry lists fast-moving vendor IDs (Claude 5.x, GPT-6 families); availability depends on account entitlements, and direct Claude 5.x calls reject temperature, so steering is prompt-only.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
The Forge This agent 41 · Major gaps — ★ 14 1mo ago Python OpenAI API · Claude API
LeanCTX Context Intelligence 69 · Some gaps CLIFree + model costs ★ 4k 1d ago Rust Codex · Claude Code · OpenAI API · Claude API
re:factory 71 · Some gaps CLIFree + model costs ★ 75 7d ago Python Codex · Claude Code
KADATH 66 · Some gaps CLIFree + model costs ★ 259 1mo ago Python OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
41/ 100 5-point scale 2.1 / 5
Trust 12/29
Reliability 5/14
Adaptability 10/18
Convention 10/18
Effectiveness 4/13
Verifiability 0/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

The README documents a fairly complete set of controls: X-Forge-Key on /api/*, loopback-only default bind, CORS echoed only for localhost, shell execution disabled by default behind FORGE_ALLOW_SHELL_EXEC, path jailing to the repo root, refusal to read .env/.pem/id_rsa credential files, a hard budget cap, and fail-closed self-improvement. These are documentation-level claims only; no server or governance source is included to substantiate them, so least_privilege, user_confirmation, data_flow_transparency and external_effects score 1 (asserted, unsupported). sensitive_data_handling scores 2 (credential-pattern refusal and git-ignored .forge_key are reasonably specific). rollback scores 2 (.bak backup before writes, fail-closed fitness gate, hash-chained provenance). dependency_security scores 1 (requirements.txt contains only comments, no pinned versions or hashes, so the dependency surface is unauditable). source_attribution scores 1 (MIT copyright notice present, but publisher is unverified and the referenced Vitalis repo and model list cannot be checked here). No malware, credential theft, covert exfiltration or destructive defaults were found, so status is not blocked.

Reliability5 / 14 · 1.8/5

self_consistency scores 1: the README is internally strained — it claims 'zero heavy dependencies / pure stdlib' while depending on the Vitalis JIT and Rust FFI (vitalis_ffi.py claimed at 234K LOC of bindings), and the model registry is dated 'July 2026' with unverifiable IDs such as claude-fable-5 and gpt-5.6-sol. dependency_availability scores 1: requirements.txt declares no actual dependencies, Vitalis is optional with a Python fallback, but neither the fallback path nor the FFI bindings are evidenced. failure_messages scores 1: 402 on budget exhaustion, a three-state circuit breaker and a fail-closed fitness gate are mentioned, but no actual error text or code is shown.

Adaptability10 / 18 · 2.8/5

audience_and_scenarios scores 2: aimed at local developers with CLI, Python SDK, dashboard and MCP entry points across chat/consensus/build/orchestrate/evolve scenarios. capability_boundaries scores 2: it explicitly states this is a local-only tool, not a public service, and flags shell exec and self-improvement as high-privilege. trigger_precision scores 1: subcommands and API routes are listed, but trigger conditions, argument validation and conflict handling are absent. environment_fit scores 2: Windows/Linux/macOS GPU and RAM detection plus auto/gpu/cpu/split compute modes are described concretely.

Convention10 / 18 · 2.8/5

information_architecture scores 2: the README is well layered (architecture diagram, Quick Start, Factory, Evolution, Security, Governance, SDK, structure tree). install_notes scores 2: clone, pip install, per-platform env vars, launch command and port are given and actionable. naming_stability scores 1: package version v2.0.0 appears in the structure tree, but model aliases and IDs are mixed and the IDs look fabricated. examples_and_faq scores 2: CLI examples, SDK snippets and a challenge JSON are provided, though there is no FAQ. known_limitations scores 1: only scattered notes ('auth key is not a full identity system', 'do not expose publicly'), no consolidated limitations list. license scores 3: a complete standard MIT text with copyright holder and year, no deduction. versioning_changelog scores 1: a single v2.0.0 mention, no CHANGELOG or version history. maintenance_responsibility scores 1: publisher unverified, no maintainer contact, contribution guide or support channel.

Effectiveness4 / 13 · 1.5/5

output_usability scores 1: it claims deployable artifacts across 16 types (Dockerfile, systemd unit, mcp.json, etc.), but no generated sample or output file is included to inspect, so usability is assertion only. marginal_value scores 1: multi-LLM competition plus evolution plus a JIT judge is a differentiated pitch, but the core claim of beating any single model has no benchmark data. cost_benefit scores 1: budget tracking, EMA cost alerts and smart routing are designed in, but no actual cost figures or comparison against alternatives are given, so benefit is unquantified.

Verifiability0 / 8 · 0.0/5

claim_traceability scores 0: strong claims (234K LOC of FFI bindings, 1800+ line server, sub-µs native scoring, statistical significance, seven compiler gates) have no traceable source, test or data reference. cross_source_corroboration scores 0: only README, LICENSE and requirements.txt are provided; no code, tests, CI or third-party source can corroborate anything. fact_inference_separation scores 0: marketing assertions ('code no single model could write', 'research-grade') are interleaved with engineering facts without separating verified fact from inference, and the dated model list is plainly unverifiable.

Risks and how to mitigate them
  • All security controls in the README (auth, path jailing, shell disabled by default, budget cap) are documentation claims; no server or governance source is included, so they cannot be statically verified.
  • requirements.txt contains only comments with no dependencies or version pins, so dependency security and reproducible installation cannot be assessed.
  • The model registry is dated 'July 2026' and lists unverifiable IDs such as claude-fable-5 and gpt-5.6-sol; do not configure production routing from it.
  • 'Zero heavy dependencies / pure stdlib' contradicts the stated reliance on the Vitalis JIT and Rust FFI, leaving real runtime prerequisites unclear.
  • The self-improvement engine can rewrite its own source and shell execution can run commands; these are high-privilege features and should be independently audited before enabling, even though they are off by default.
  • The publisher is unverified and there is no maintainer contact, CHANGELOG or contribution guide, so long-term maintenance and update paths are unclear.
Evidence confidence: Low Reviewed Sep 26, 2026 Reviewed revision e2bf248e928f
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/the-forge.svg)](https://followagents.com/en/agents/the-forge)
<a href="https://followagents.com/en/agents/the-forge"><img src="https://followagents.com/badge/the-forge.svg" alt="FARS review"></a>

FAQ

Can I use it without any API keys?
Yes, for the mock tournament (python forge_cli.py demo) and pure-Python .sl compilation. The multi-model competition and evolution need at least one vendor key.
What will it cost to run?
The software is MIT and free; costs come entirely from LLM calls. budget.py logs tokens, cost and latency per request, and FORGE_BUDGET_USD returns 402 once the cap is hit, but the README gives no typical tournament price.
Does my code leave the machine?
Candidate code and challenge text go to whichever vendor APIs you configure; with local Ollama models it stays local. Provenance, memory and artifacts are written under the repo, and /api/analyze-file refuses to read .env, .pem, id_rsa and similar credential files.
Does it really rewrite its own source?
/api/self-improve asks an LLM for line-range patches, repairs truncated JSON, AST-validates the result, requires a 6-dimension fitness gain (no regressions, 30/100 floor), backs up to .bak, then overwrites; if the sandbox cannot evaluate the patch it is rejected.
Can I deploy it for my team on a server?
You can set FORGE_BIND_HOST=0.0.0.0, but the design target is a loopback, single-user tool with shared-secret auth and no multi-user authorization model, so exposing it publicly is discouraged.
Is The Forge open source?
Yes. The source code is on GitHub (ModernOps888/the-forge) under the MIT licence.
Is The Forge safe to use?
FollowAgents' FARS review (Sep 26, 2026) scored The Forge 12/29 on trust and safety. None of the eight safety controls the review checks for was missing outright.
Is The Forge still maintained?
Development has slowed: the latest commit on GitHub is from 2026-10-23, within the last six months but not the last 30 days.
Who makes The Forge?
The Forge is published on GitHub by the account ModernOps888. FollowAgents has not verified which person or company is behind that account.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts