Skip to main content

FORGEX

Plan. Build. Refine. Verify.

FORGEX is a CLI-first autonomous AI software engineering system. Specialized agents — Architect, Builder, Expert Coder, Supervisor — collaborate on a real repository through permission-gated tools, Git checkpoints, a deterministic verification harness, and a bounded self-healing repair loop.

FORGEX is not a chatbot and not a code generator: it is an AI software engineering runtime — with the safety rails that implies.

request → Architect → research → plan → [ Builder → Expert Coder →
tests → Supervisor → PASS? done : repair ↺ ] (bounded by max_iterations)

Status: v0.1.0 alpha — the full pipeline works end-to-end with any OpenAI-compatible provider (Groq, OpenAI, local servers). Multi-model ensemble review, Docker sandboxing, and a context-intelligence layer are built in.

Installation

One-Line Install (Zero Environment Activation)

curl -sSL https://raw.githubusercontent.com/B-max12/Forgex/main/install.sh | bash

(Or clone and run ./install.sh)

Via pipx or uv tool

pipx install forgex-cli          # once published to PyPI
# or directly from GitHub:
pipx install "git+https://github.com/B-max12/Forgex.git"

From source (Developers):

git clone https://github.com/B-max12/Forgex.git && cd Forgex
pip install -e ".[dev]"

Python 3.12+. Optional: Git (checkpoints — strongly recommended), Docker (sandboxing), ripgrep (faster search).

Quickstart

The Universal Way (Zero Learning Curve)

Simply run forgex and describe what you want in plain English:

forgex
forgex ❯ Build me a FastAPI Todo API with SQLite and pytest

FORGEX handles the complete lifecycle automatically:

  1. Auto-initializes the project workspace and git repository if needed
  2. Plans architecture and task breakdown (Architect agent)
  3. Implements code and tests across tasks (Builder + Expert Coder)
  4. Verifies deterministically (tests, lint, typecheck)
  5. Self-heals and auto-repairs if any verification gates fail
  6. Snapshots a clean, reversible Git checkpoint on success!

Follow up naturally with conversational context:

forgex ❯ now add rate limiting to those endpoints
forgex ❯ fix the failing tests in users.py

One-Shot CLI / CI/CD Mode

Run tasks directly from your shell without opening the REPL:

forgex "Create a FastAPI Todo API with SQLite and pytest"
# Or:
forgex do "Add JWT authentication with refresh tokens"

Granular Power User Commands

For granular manual control, individual pipeline stages remain available:

forgex plan "Add caching layer"     # run architect planning only
forgex build                         # execute existing plan tasks
forgex verify                        # run tests and lint deterministically
forgex fix                           # verify + repair loop without replanning
forgex checkpoint "Stable release"   # snapshot Git state
forgex rollback                      # undo to previous checkpoint

Commands

Command Purpose
forgex init [DIR] initialize a project (state, events, SQLite index)
forgex plan [REQUEST] [--dry-run] Architect: analysis → registry research → implementation plan
forgex build [REQUEST] [--file F] [--resume] [--dry-run] full pipeline with the repair loop
forgex fix verify + supervise + repair until green — no rebuild
forgex run [-- CMD] run the project's start command (policy-gated)
forgex task list / run ID inspect / execute single tasks (Builder + review)
forgex review [TASK] [--base C] Expert Coder review — single model or ensemble
forgex verify deterministic tests/build/lint — no LLM
forgex supervise verification + LLM audit + quality gates → verdict
forgex status / logs / diff project state, event stream, git diff
forgex checkpoint / rollback Git checkpoints; reversible rollback
forgex models [catalog|health] bindings, capability catalog, live provider ping
forgex context stats|search context index and relevance retrieval
forgex tools list|run inspect / manually run agent tools
forgex config show|get|set|setup layered configuration
forgex doctor [--ping] environment and provider health

Every command supports --json and --plain (CI/SSH friendly).

Providers

Type Target Notes
groq Groq API default binding: llama-3.3-70b-versatile
openai_compatible OpenAI & any compatible endpoint set base_url
local Ollama, llama.cpp, vLLM, LM Studio base_url required, keyless

Provider-independent by design: per-agent model bindings, capability-aware routing, retry with backoff, fallback chains, and multi-model ensemble review ([ensemble] enabled = true — e.g. Groq + OpenAI reviewing the same diff in parallel, findings corroborated before fixes are applied).

Security

  • Agents act only through permission-gated tools; every path is workspace-confined; .forgex/, .git/ and secret files are untouchable.
  • Commands are argv-only (no shells), policy-filtered (deny list, optional allowlist, network approval), and — with [sandbox] enabled = true — run in hardened Docker containers (no network by default, host FS invisible).
  • Secrets never enter prompts: env-only storage, sanitized child environments, pattern-based content scrubbing.
  • Deterministic quality gates: no model verdict can pass a red test suite or an incomplete build.

Full model + residual risks: docs/security.md.

License

MIT

Metadata

Release files for forgex-cli 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forgex-cli 0.1.0
File Size Uploaded
forgex_cli-0.1.0.tar.gz 151.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for forgex-cli 0.1.0
File Interpreter ABI Platform
forgex_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 314.5 kB

Release files / forgex_cli-0.1.0.tar.gz

Download URL forgex_cli-0.1.0.tar.gz
Size 151.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6696600361eb305c66e7a8de2b76f33ea4d22680f15b3e9192d01c52d58b1245
BLAKE2b-256 checksum
How to use checksums
c1a0e3bb056994556326d3cc3369e8a7f3998e8a4724ebc51970e68d7441603b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / forgex_cli-0.1.0-py3-none-any.whl

Download URL forgex_cli-0.1.0-py3-none-any.whl
Size 163.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d3901dec21042027e461a5041118fc8ce8f2d5894e6d57862dd86beeef728ba
BLAKE2b-256 checksum
How to use checksums
9bd36e98e8ec95b84e4a9e59cee653cbe256975af17db9f7626835a07da10185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page