A maintained fork of alexanderkreidich/pi-agent, configured for the OpenOrange central inference proxy. Tested target: Pi 0.85.1 and Node 22.20.0. Main defaults: openorange/openai/gpt-6-astra, thinking xhigh.
/difffor local terminal inspection;/review-difffor a model review of selected files./tools, GitHub issue autocomplete, issue/PR context widget, notifications and/bookmark./isand/prprompts with read-only GitHub behavior unless mutation is explicitly requested./handoffusing native provider dispatch and Pi's active context, leaving an editable new-session draft.subagentsingle/parallel/chain with per-task OpenOrange model and thinking selection.- Patched
pi-btw0.4.1 for side conversations through the native provider. - Pinned Plannotator 0.27.13, Markdown Preview 0.16.0 and Autoresearch 1.8.1.
Upstream source files that are not selected remain in the repository for provenance but are not activated by this manifest. The preset extension and upstream external skill installer are not part of this setup.
First install Pi and authenticate the native OpenOrange provider. Provider login and API keys remain in your private Pi configuration, never in this repository. The bootstrap pins the reviewed provider source but does not perform login.
pi install git:git@github.com:Bezrukov01/pi-agent.git@<reviewed-commit>
node ~/.pi/agent/git/github.com/Bezrukov01/pi-agent/scripts/bootstrap.mjs --dry-run
node ~/.pi/agent/git/github.com/Bezrukov01/pi-agent/scripts/bootstrap.mjsRestart Pi. bootstrap.mjs enforces Astra/xhigh, adds missing pinned packages, copies four role definitions and maintains an identifiable section of Pi's AGENTS.md. It preserves other instructions, credentials, settings, existing version pins and explicit resource filters. Changed files are backed up under the selected agent directory. PI_CODING_AGENT_DIR confines all bootstrap writes; neither Codex configuration nor ~/.agents is modified.
update.mjs only reapplies the installed revision. To upgrade code or package versions, review and install a new explicit commit; no broad pi update is run by these scripts.
Ghostty is the terminal window. Pi is the agent process. A normal pi command starts a process; separately opening the same session file is not a shared live terminal and should not be done concurrently.
With tmux 3.5+ installed, run this from the project you want Pi to work in:
~/.pi/agent/git/github.com/Bezrukov01/pi-agent/scripts/pi-sharedThe helper creates or attaches to the same main session on an isolated pi-openorange tmux server. The user and an automation client can observe the same process. Coordinate input so only one participant types at a time. Detach with Ctrl+B then D; closing the terminal leaves Pi running. PI_SHARED_SESSION=project-name selects another named session. The helper leaves ~/.tmux.conf unchanged.
Herdr can also host persistent Pi terminals and workspaces; it is optional and is not installed by this package.
| Role | Default model through OpenOrange | Thinking |
|---|---|---|
| research | openai/gpt-5.6-luna |
high |
| planner | openai/gpt-6-astra |
xhigh |
| worker | openai/gpt-5.6-terra |
high |
| reviewer | openai/gpt-5.6-sol |
xhigh |
Ask Pi naturally, for example: “Use a research subagent on Luna/high to inspect the API; then ask a reviewer on Astra/xhigh to check the result.” The tool accepts explicit overrides:
{
"tasks": [
{ "agent": "research", "task": "Inspect the existing API", "model": "openorange/openai/gpt-5.6-luna", "thinkingLevel": "high" },
{ "agent": "reviewer", "task": "Review the specified diff", "model": "openorange/openai/gpt-6-astra", "thinkingLevel": "xhigh" }
]
}Selection priority per field: task override, shared batch override, role default, current parent. Exact models must exist in the OpenOrange catalog. The whole batch is validated before children start. Children share the filesystem, run up to four concurrently and have no persisted child session or background resume. Assign explicit ownership for parallel writes.
/btw <question>opens a tool-enabled side conversation. It inherits the current model/thinking./btw:thinking xhighoverrides thinking;/btw:model clearreturns to model inheritance./plannotator-annotate file.mdor/plannotator-reviewopens browser review. In its AI panel select Pi and openorange/openai/gpt-6-astra; this browser preference is separate from the parent Pi model and persists in localhost cookies. Approval can continue an explicitly submitted implementation plan./preview file.mdrenders a terminal image;/preview-browser file.mdopens HTML. Pandoc is required; terminal/PNG rendering also requires Chrome or Chromium. PDF export additionally requires a LaTeX engine, which this package does not install./autoresearchshows help;/autoresearch offstops its loop. Start optimization only in an explicitly designated clean worktree with correctness checks and an iteration cap. The package can commit/revert/clean experiment files and resume a directory with an existing experiment log.
See external package audit, handoff validation, subagent validation, and implementation scope.
npm ci --ignore-scripts
npm run validatenpm test is offline. Opt-in scripts/validate-handoff.mjs and scripts/validate-subagents.mjs perform real inference and require a prepared private PI_CODING_AGENT_DIR. They are not run by CI. Never publish the private session logs or credentials used for live validation.
MIT. See LICENSE, NOTICE.md and vendored BTW provenance.