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.
- Source repo
- ModernOps888/the-forge
- Stars
- ★ 14
- Last updated
- 1mo ago
- FARS reviewed
- Sep 26, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 41/100 · Major gaps
At a glance
- Works with
- Universal · cross-platformOpenAI API · Claude API
- You'll need
- 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
- Source review
- 41/100 · Major gaps
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.
- Algorithm or interview-prep practitioners who want several models to attack one problem and evolve the survivors for measurably better solutions.
- 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.
- Teams managing model spend who need per-provider token, latency and cost breakdowns plus auto_route to pick the cheapest capable model.
- 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.
- Researchers combining LLM generation with evolutionary computation who want KLS selection, Pareto fronts and deterministic replay/A-B testing.
- 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_KEYFORGE_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.txtSet 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.pyThen 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 10A 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
Can I use it without any API keys?
What will it cost to run?
Does my code leave the machine?
Does it really rewrite its own source?
Can I deploy it for my team on a server?
Is The Forge open source?
Is The Forge safe to use?
Is The Forge still maintained?
Who makes The Forge?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.