forge
Plan · attack the plan · build test-first · review in crossfire


A harness-agnostic code-change workflow. Your request gets planned, the plan gets attacked, the code gets written with tests, and a panel of reviewers shoots at it before you ever see it.
One markdown core, thin per-harness adapters. Runs on Claude Code, codex, and opencode — each declaring how far it can enforce the workflow, stated honestly.
Site: alp82.github.io/forge — live demos: the full run, every stage, the crossfire wave
Featured in: Alper Ortac's AI Stack
Install
/plugin marketplace add alp82/forge
/plugin install forge@alperortac
/forge:setup-forge
The setup runs once, plugin-prefixed; it installs the bare command names, so from then on it's /setup-forge everywhere. Plugin updates propagate on their own — no re-run needed.
Upgrading from alp-river? Three steps in the 2.0.0 changelog entry.
Install (opencode)
Inside an opencode session, paste:
Fetch https://raw.githubusercontent.com/alp82/forge/main/adapters/opencode/INSTALL.md and follow it.
The session installs forge globally and verifies every capability live. On opencode, forge runs guarded: git-write guard and idle review nudge, no stop-gate — opencode cannot block a session from ending. Details in the opencode adapter README.
Install (codex)
In a terminal with Codex CLI installed:
codex plugin marketplace add alp82/forge
then install the forge plugin and run the $setup-forge skill inside a codex session. Setup enables hooks (with consent), generates the tier agents, and verifies every capability live. On codex, forge runs gated — the same stop-gate as Claude Code blocks a session ending on failing tests or unreviewed code. Details in the codex adapter README.
[!TIP]
Run the main session on a top-tier model at high effort. The orchestrator drives every routing decision, so a weaker main model degrades the whole pipeline.
Use
One verb. Describe the change you want in your own words.
/forge add rate limiting to the public API
/forge #482 # or point it at a ticket
/crossfire # review what's already there
See it run

Per-stage micro-casts and the standalone crossfire wave play on the site.
What happens
| Stage | What it does |
|---|
| triage | Sizes the request and detects what's missing: unknowns get interviewed, unproven externals get prototyped, missing knowledge gets researched, a bug gets diagnosed before anything is built. |
| plan | Writes the approach to a file, not the chat — the next stage reads a document, and a fresh agent can pick it up after compaction. |
| challenge | A second agent tries to break the plan before a line is written. Cheapest possible place to be wrong. |
| tests | Writes the red tests first, aimed at the behavior the request asked for — then a second agent hunts for false green: the test that passes with the feature deleted, the mock asserting on itself. Code waits until the tests prove something. |
| implement | Makes the change against the surviving plan and turns the tests green. |
| crossfire | Independent reviewers hit the diff at once, each carrying one lens, blind to the others. Also runs standalone as /crossfire on any diff, branch, or file set. |
| fix | Works the findings until the diff survives a clean re-run of the wave. |
With a worker CLI on PATH (codex, gemini, opencode), the challenge and the crossfire wave each get a different-model second opinion when the change's risk calls for one - read-only, failure visible, never blocking.