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.2

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.2
File Size Uploaded
forgex_cli-0.1.2.tar.gz 151.2 kB Details

Built distribution (wheel)

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

Total release size: 315.0 kB

Release files / forgex_cli-0.1.2.tar.gz

Download URL forgex_cli-0.1.2.tar.gz
Size 151.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7df243398458f12180c6d3aa31f78c3a833b16b79993719ebe84a0e02e2ba320
BLAKE2b-256 checksum
How to use checksums
5e194f3a98c5eb1d06adef31dba3a198bcdfe0dbcc08e198eca9ae914b2dda7c
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.2-py3-none-any.whl

Download URL forgex_cli-0.1.2-py3-none-any.whl
Size 163.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a76ee4159c1df00c70c87f5fe0b4195e016753fbd05b32245a4138f2e99e562
BLAKE2b-256 checksum
How to use checksums
f9f027c95fc6edfadbb05a823e02bcde13a3074421cb655943b9808f6d44c553
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

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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