Install one extension.Uninstall the rest.

Parallel sub-agents, multi-model code review and a cleaner terminal for Pi. One install, works out of the box.

pi install npm:pi-firecode

FireCode in under a minute.

One sentence sends sub-agents to work in parallel. Each result is reviewed, rejected work goes back to be fixed, and the commander reviews the merged result before delivery.

Sub-agents under control.

Run them in parallel, pick a model per role, switch automatically on failure, step in any time.

  1. Run them in parallel

    One request, three researchers. Each works in its own session, at the same time.

  2. A model for every role

    Researchers run on a fast, cheap model; engineers get a stronger one. Set it once per role.

  3. Switch on failure

    When a provider fails, the sub-agent moves to the next model in its role's list and carries on in the same session.

  4. One table back

    The three reports come home to the commander, merged into the single table you asked for.

Dispatch 3 researchers in parallel to count the files, total lines and largest file of master/, review/ and tools/ each, then report back with just one summary table

researcher
→ gpt-6.1-terra/high
engineer
→ claude-opus-5-5/medium
count-masterresearchergpt-6.1-terra/high
$ find master/ -type f | wc -l→ 21 files$ wc -l master/**/*→ 3,438 lines→ largest: worker-view.ts (516)✓ Done
count-reviewresearchergpt-6.1-terra/highclaude-sonnet-5-5/medium
$ find review/ -type f | wc -l→ 18 files✕ anthropic · overloaded↻ switched → claude-sonnet-5-5/medium$ wc -l review/**/*→ 4,177 lines→ largest: index.ts (879)✓ Done
count-toolsresearchergpt-6.1-terra/high
$ find tools/ -type f | wc -l→ 16 files$ wc -l tools/**/*→ 2,124 lines→ largest: group-view.ts (420)✓ Done
DirectoryFilesTotal linesLargest file
master/213,438worker-view.ts (516)
review/184,177index.ts (879)
tools/162,124group-view.ts (420)

The counts are the researchers' own and I didn't re-run them.

  • count-masterresearcher · Thinking
  • count-reviewresearcher · Thinking
  • count-toolsresearcher · Thinking

✓3 donecount-master · count-review · count-tools

WorkingWaiting for 3 workers✓Master

Step in any time

Every sub-agent sits above the input box. Click one to read its whole run and talk to it directly.

Also check what 0s and an empty string return

Your two cases

  • - parseDuration("0s") returns 0.
  • - parseDuration("") throws Invalid duration: . The same happens for anything that isn't a run of <digits><unit> pairs, such as "abc". It never returns NaN.
✓ Done 31sparse-duration· engineer

› Say something to this Worker, Enter to send

1/1 · claude-opus-5-5/medium · Tab switch Worker · click summary to expand · ctrl+o expand all · esc back

Fully automatic review and delivery.

Run /fire-review after a change. Problems worth fixing go back to be fixed and are reviewed again, and you are told how it ended.

  1. Your models review in parallel

    Any number of them, adversarially. A single FAIL sends the whole round back.

  2. Every problem goes back to be fixed

    The agent fixes each finding at its root, and the next round starts on its own.

  3. Reviewed again until it settles

    The loop ends when the review passes, the advisor stops it, or the rounds run out, and you see which.

/fire-review

Round 1

  • Model 1ReviewingFAIL
  • Model 2ReviewingFAIL
  • Model 3ReviewingPASS

Review failedparseDuration("500ms") → 30000s, expected 0.5

↳ Round 1 · fixing

duration.js- /(\d+)(h|m|s|ms)/g+ /(\d+)(ms|h|m|s)/gduration.test.js+ parseDuration("500ms") === 0.5

Round 2

  • Model 1ReviewingPASS
  • Model 2ReviewingPASS
  • Model 3ReviewingPASS

Review passedafter 2 rounds

/fire-review
A real run: round 1 fails, the agent fixes it, round 2 passes

Stuck? An advisor decides

If rounds keep failing, an advisor model reads the findings and rules on what happens next:

Continue fixingNarrow scopeStop fixing

Or start it yourself

Run /fire-review any time.

Fix and re‑review in a loop, not a one‑off list of problems

ToolReviewersWhat you get
FireCodeUp to five models, reviewing adversariallyFixed code, re-reviewed
Claude Code/code-reviewOne sub-agent of your sessionA findings list; --fix applies it
Codex/reviewOne reviewer on your session's modelA summary of the issues
Open Code ReviewAlibabaOne model, a sub-agent per file groupLine comments to fix yourself
QodoSpecialist agents plus a judgeRanked findings; can apply a fix
PR-Agentopen sourceOne model call per toolComments and code suggestions
multi-model-reviewPiSeveral model familiesOne combined verdict

An ultra-light core.

Built the Pi way: sub-agents add just two small tools, and review adds none.

FireCode2 tools1,715
pi-subagents (0.77.0)2–3 tools1,561–4,918
omp (18.10.1)2 tools3,369
Codex CLI (0.162.1)5–6 tools5,045–9,641
Sub-agent tool definitions sent to the model on every request, in characters.

At its heaviest, Codex CLI (0.162.1) costs 5.6× what FireCode does, on every request

Also in the box

/quota/tokens
Usage at a glance
CtrlR
Rename the session
CtrlShiftS
Toggle OpenAI Fast mode
/login
Works with Claude subscription login

One install.Works out of the box.

pi install npm:pi-firecode

Restart Pi (1.1.0+) and it's ready. The config is created on first launch.