Fast, observable subagents for Pi.
Ask for a scout, a researcher, a planner, a builder, or a reviewer. Pi delegates the work, the agents run in parallel where they can, and their results come back to Pi. Every builder change gets an independent review before it reaches your checkout.
Watch the demo · Parallel builders, independent review, passing tests.
In Pi's terminal (manual):
pi install npm:pi-pinataReload Pi. You need Pi 1.1.0+, Node 22.19+ (for the pinata command), and Git, on Linux,
macOS or Windows. Research tasks also use
pi-web-access. Herdr is
optional: inside Herdr, agents can run in their own panes.
Ask Pi in plain language:
Have a scout figure out how request validation works in this repo.
Send two scouts out in parallel, one on the retry logic and one on its tests.
Then have research check both reports against the official docs.
/pinata-fix Correct the seconds-to-milliseconds conversion in src/duration.mjs.
/pinata-review Focus on the error handling.
Pi picks the agents, writes their briefs, and decides who waits for whom. Start with the first-run tutorial.
| Agent | What it does |
|---|---|
Scout (scout) |
Finds where the behavior lives. |
Researcher (research) |
Checks the docs and brings sources. |
Planner (planner) |
Turns findings into a workable plan. |
Builder (builder) |
Makes the change and runs the checks. |
Reviewer (reviewer) |
Checks the diff and challenges the assumptions. |
- Fast. Agents run inside your Pi by default: one starts in a few milliseconds and uses a megabyte or two, so many can work at once.
- Visible. A widget above the editor shows every agent's state, time, tokens, cost and
current tool.
/pinata open <task>shows an agent's whole conversation as it streams, and you can steer it from there.pinata viewfollows a run from another terminal. - Reviewed before it lands. Each builder works in its own git worktree; its checks run after it finishes, and an independent reviewer must approve that exact change before pinata applies it to your checkout (never staged or committed). You can roll it back.
- Recoverable. Runs are logged on disk. A run started with
survive: truekeeps going when Pi exits; the next Pi picks it up./pinata rerunrestarts tasks lost in a crash. - Scriptable.
pinata run job.jsonruns a job without an interactive Pi, with plain or JSONL output and exit codes for CI.
| I want to… | Start here |
|---|---|
| Run my first agents | First run |
| Build, review and apply a change | Build and review |
| Watch agents work | Watching agents |
| Choose lean or observe mode | Modes |
| Run agents as processes or Herdr panes | Backends, Herdr |
| Run jobs from scripts or CI | Headless runs |
| Give builders their dependencies | Dependencies |
| Recover, rerun or clean up | Recovery |
| Set up on Windows or macOS | Platforms |
| Look up a tool, command or config key | Reference |
| Understand how it works and what it trusts | Architecture, Trust |
The documentation index lists everything, including maintainer docs.
MIT licensed.
