Run them in parallel
One request, three researchers. Each works in its own session, at the same time.
A model for every role
Researchers run on a fast, cheap model; engineers get a stronger one. Set it once per role.
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.
One table back
The three reports come home to the commander, merged into the single table you asked for.
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-firecodeFireCode 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.
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
| Directory | Files | Total lines | Largest file |
|---|---|---|---|
| master/ | 21 | 3,438 | worker-view.ts (516) |
| review/ | 18 | 4,177 | index.ts (879) |
| tools/ | 16 | 2,124 | group-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
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")returns0. - -
parseDuration("")throwsInvalid duration:. The same happens for anything that isn't a run of<digits><unit>pairs, such as"abc". It never returnsNaN.
› 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.
Your models review in parallel
Any number of them, adversarially. A single FAIL sends the whole round back.
Every problem goes back to be fixed
The agent fixes each finding at its root, and the next round starts on its own.
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.
Round 1
- Model 1ReviewingFAIL
- Model 2ReviewingFAIL
- Model 3ReviewingPASS
Review failedparseDuration("500ms") → 30000s, expected 0.5
↳ Round 1 · fixing
Round 2
- Model 1ReviewingPASS
- Model 2ReviewingPASS
- Model 3ReviewingPASS
Review passedafter 2 rounds
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
| Tool | Reviewers | What you get |
|---|---|---|
| Up to five models, reviewing adversarially | Fixed code, re-reviewed | |
Claude Code/code-review | One sub-agent of your session | A findings list; --fix applies it |
Codex/review | One reviewer on your session's model | A summary of the issues |
| Open Code ReviewAlibaba | One model, a sub-agent per file group | Line comments to fix yourself |
| Qodo | Specialist agents plus a judge | Ranked findings; can apply a fix |
| PR-Agentopen source | One model call per tool | Comments and code suggestions |
| multi-model-reviewPi | Several model families | One combined verdict |
An ultra-light core.
Built the Pi way: sub-agents add just two small tools, and review adds none.
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-firecodeRestart Pi (1.1.0+) and it's ready. The config is created on first launch.