fx
One engineering plugin for coding agents. It takes a piece of work from an
idea to a reviewed branch through one pipeline: design, plan, build test-first,
review. Exactly one skill claims each intent, so the model never has to choose
between two skills that both say "TDD".
fx runs on four harnesses: Claude Code, Codex, opencode 1.x and opencode 2.x.
How the pipeline runs
Architectural work takes the path below, with two approval gates. A bounded
change gets one approval in chat and goes straight to code. A spike ends in a
recommendation.
you: "let's build X"
|
v
fx-brainstorm ........ classify (spike | bounded | architectural)
| question rounds, then one message: what made it
| 95% sure, a 2-line plan, every output the design
| names with its answer, 2 or 3 approaches
| (recommendation first); wait for go
| design doc -> docs/plans/YYYY-MM-DD-slug/design.md
|
[ GATE ] you review the file once and approve it
|
v
fx-plan .............. vertical slice tasks, one file each
| exact interfaces, blocking edges, global constraints
| offers a red-team pass (fx-devils-advocate)
|
[ GATE ] implement | red-team | keep discussing | save for later
|
v
fx-implement ......... a worktree, and a ledger that survives compaction
|
+--> per task: a fresh subagent
| fx-tdd ........... failing test first, then the code
| task review ...... spec compliance and code quality
| tripwire lenses .. security, database, silent-failure,
| only when the diff matches their trigger
| fix loop ......... at most 5 rounds
|
+--> coverage audit, then branch review: a broad pass on
| cross-task seams, at most four lenses, and an unprimed
| adversarial pass
|
+--> the full test suite, once, and the repository's own CI
| commands, each exit code read
|
v
three options: merge | push and open a PR | leave it.
Discard happens only when you type it. Nothing merges or
leaves the machine until you choose.
What a build costs
Measured on fx 0.2.9 with Opus sessions on 2026-10-22, one row per phase of
the pipeline above.
The implement and review row is the 6-task fixture with no auth. A realistic
7-task feature with auth, on fx 0.7.0 with Claude Code Opus on 2026-10-27, cost
43.6M tokens and 52.6 min from idea to the completion menu, with the specs run
for real (77 examples). The docs step, 2 ADRs and 4 HTML pages after it added
23.1M tokens and 25 min.
| Phase | Tokens | Wall clock | Measured on |
|---|
| Brainstorm: the interview, up to the confidence check | 0.50M to 0.56M | 3.4 to 3.6 min | 2 runs, below |
| Design: design.md written and approved | 0.24M to 0.32M | 0.9 to 1.3 min | the same 2 runs |
| Plan: plan.md and the task files | 0.50M to 0.98M | 3.6 to 4.5 min | the same 2 runs, 6 and 7 tasks |
| Implement and review: every task built and reviewed, then the branch review | 11.3M | 18.7 min | median of 3 builds of a 6-task plan |
| Total: idea to reviewed branch | 12.5M to 13.1M | 26.8 to 27.9 min | each of the 2 runs' phases plus the build median |
- Brainstorm, design and plan ran on one feature: invoice approval in a small
Rails app, with 13 requirements, a migration with a backfill and an
authorization rule. A Haiku model played the user from a fixed brief. Both
plans carried all 13 requirements; the two designs carried 12 and 13. The
times include the simulated user's replies, so a person answering takes
longer.
- Implement and review is the median of three fixture builds
(
tests/fixture-build/). Its tokens split into 8.1M for the controller
(dispatch, ledger, coordination), 1.3M for the implementers, 1.3M for task
reviews, lenses and the coverage audit, and 0.6M for other agents. The wall
clock is not split between implementing and reviewing.
- Run files:
docs/plans/2026-10-21-audit-fx/checkpoints.md and
docs/plans/2026-10-21-audit-fx/plan-phase-runs.md.
The skills
Twelve of the fourteen work on their own, with no plan: only fx-plan and
fx-implement need an artifact to start from.