Skip to content

About

Reusable public configuration package for the Pi coding agent

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Pi through OpenOrange

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.

Included workflow

  • /diff for local terminal inspection; /review-diff for a model review of selected files.
  • /tools, GitHub issue autocomplete, issue/PR context widget, notifications and /bookmark.
  • /is and /pr prompts with read-only GitHub behavior unless mutation is explicitly requested.
  • /handoff using native provider dispatch and Pi's active context, leaving an editable new-session draft.
  • subagent single/parallel/chain with per-task OpenOrange model and thinking selection.
  • Patched pi-btw 0.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.

Install a reviewed revision

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.mjs

Restart 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.

Terminal and shared session

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-shared

The 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.

Choosing subagent models

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.

External commands

  • /btw <question> opens a tool-enabled side conversation. It inherits the current model/thinking. /btw:thinking xhigh overrides thinking; /btw:model clear returns to model inheritance.
  • /plannotator-annotate file.md or /plannotator-review opens 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.md renders a terminal image; /preview-browser file.md opens 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.
  • /autoresearch shows help; /autoresearch off stops 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.

Validation

npm ci --ignore-scripts
npm run validate

npm 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.

License

MIT. See LICENSE, NOTICE.md and vendored BTW provenance.

About

Reusable public configuration package for the Pi coding agent

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages