pi-pier
pier: pi extension that fuses pi agent sessions with the herdr pane/tab orchestrator — todo_write loop closure + interactive subagents in isolated panes
Package details
Install pi-pier from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:pi-pier- Package
pi-pier- Version
0.2.2- Published
- Aug 31, 2026
- Downloads
- 744/mo · 744/wk
- Author
- july24
- License
- MIT
- Types
- extension, skill
- Size
- 365 KB
- Dependencies
- 3 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
],
"skills": [
"./skills/pi-herdr-workflow"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-pier
[!IMPORTANT] This npm package is only the pi-extension half of pier. pier is a two-half system — this extension plus a herdr plugin (
pier.workbench). Without the herdr side you still gettodo_write/ask_user_question, but subagents, pane integration, notifications, and the workspace bootstrap all require herdr. See Install the herdr half below.
pier = pi × herdr — a pi extension that fuses coding agent sessions with the herdr pane/tab orchestrator.
pi-pier fills two gaps pi deliberately leaves open — the todo list loop and interactive subagents — using herdr panes/tabs as the visual and interaction substrate. It degrades gracefully outside herdr.
Install (this pi half)
pi install npm:pi-pier
Or from git (monorepo root, same content):
pi install git:github.com/July24/pier
Install the herdr half (companion plugin)
The herdr plugin pier.workbench provides the other half: main-tab bootstrap (auto-start a pi master session per workspace), blocked-gate notifications (system notifications when a subagent waits for a human), and the focus-heat layout (focused pane grows in place). Install it from the same repo:
herdr plugin install July24/pier/packages/pier-workbench --yes
Or install both halves at once with the one-shot installer from the monorepo:
git clone https://github.com/July24/pier && cd pier
node install.mjs # user mode: installs both halves + generates local bootstrap config
The installer also verifies node / pi / herdr versions, probes local paths, and writes the workbench bootstrap config (boot-config.json) into herdr's plugin config dir.
What you get
Tools
| Tool | Purpose |
|---|---|
todo_write |
Full-replacement todo list. Session JSONL is the single source of truth; correct rollback on branch switches. Projected live onto the pane title (▶i ○p ■b ✓c (N/M) · current task). /todos command to view/edit/unblock |
subagent |
Delegate self-contained subtasks to an isolated pi session in its own herdr pane (separate context window). Foreground / parallel / background modes |
list_agents |
Live state of background subagents (running / idle + panes) |
send_message |
Follow-up work for a subagent (queued if busy, wakes if idle) |
interrupt_agent |
Stop a subagent's current turn; it stays alive for more messages |
Behaviors
- Human-in-the-loop: every subagent is a visible, interactive TUI pane — step into it anytime to talk directly (fix bugs, take over, answer its
ask_user_question). Blocked gates raise sidebar markers + notifications - Soft locks: write paths lock per-pane; conflicts warn/block instead of racing
- Role profiles: built-in
master/worker-default; custom roles mount from.pi-herdr/roles/<name>.json. Toolsets converge per role — deny rules cannot be bypassed - Settlement notices folded: background subagent completions inject between turns (max 3 shown, rest collapsed) instead of flood-filling at run end
Scope & degradation
Outside a herdr environment the extension auto-degrades: herdr reporting costs nothing, subagent / terminal tools return "requires a herdr-managed pane" hints, while todo_write / ask_user_question keep working (session JSONL as authority, no herdr dependency).
Requirements
- Node ≥ 22
- pi ≥ 0.84 (
@earendil-works/pi-coding-agent) - herdr ≥ 0.8.0 — required for subagents / pane integration / notifications (see the IMPORTANT note above); without it only
todo_write/ask_user_questionwork
Development
git clone https://github.com/July24/pier && cd pier
npm install --ignore-scripts
npm test # node --test, ~250 unit tests
See the monorepo README for design principles, the herdr-plugin half, and the one-shot installer.
License
MIT