oh-my-opencode-pi
Pantheon-style multi-agent orchestration for pi, inspired by oh-my-opencode-slim
Package details
Install oh-my-opencode-pi from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:oh-my-opencode-pi- Package
oh-my-opencode-pi- Version
0.3.4- Published
- Apr 24, 2026
- Downloads
- 1,617/mo ยท 401/wk
- Author
- jkbjhs
- License
- MIT
- Types
- extension, skill, prompt
- Size
- 774.7 KB
- Dependencies
- 3 dependencies ยท 4 peers
Pi manifest JSON
{
"extensions": [
"./extensions/oh-my-opencode-pi"
],
"prompts": [
"./prompts"
],
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
๐ฆ Installation
Quick start
Project-local install from npm:
pi install -l npm:oh-my-opencode-pi
Global install from npm:
pi install npm:oh-my-opencode-pi
You can also pin a version explicitly:
pi install -l npm:oh-my-opencode-pi@<version>
Standalone installer / bootstrap CLI:
The generated config now inherits your existing pi default provider/model for delegated specialists and council runs. It still enables the review-board council preset plus Pantheon-specific adapter/skill defaults. If you later add explicit model overrides, make sure the provider prefix matches your pi auth setup (for example openai-codex/... for ChatGPT subscription auth vs openai/... for API keys).
Prerequisites for a successful first run:
- pi is installed and can load the package
- at least one provider is configured in pi
- tmux is only needed if you want multiplexer/background-pane features
npx oh-my-opencode-pi install --cwd /path/to/project --tmux=yes --skills=yes
npx oh-my-opencode-pi verify --cwd /path/to/project
If you installed the package globally and have the binary on your PATH, you can run oh-my-opencode-pi ... directly.
โ Verify your setup
Open pi in the target project, then run:
/pantheon
/pantheon-config
/pantheon-doctor
If those commands resolve, the extension is loaded and the Pantheon surface is available.
๐ Start here in 3 minutes
Use Pantheon from the outside in:
Open the launcher
/pantheonThe default launcher now stays focused on a small set of jobs: start work, review, resume, tasks, and troubleshooting. Lower-frequency setup and diagnostics live behind an Advanced path.
Try one bounded task
- choose Start work ยท Delegate to specialist
- if you're unsure, use Help ยท Which specialist should I use? in
/pantheon - ask Explorer or Fixer a small, concrete question
Inspect the result
- Pantheon writes a structured report into the editor
- non-interactive commands keep their output in the editor + compact widget below the editor
- interactive delegation flows can also add a labeled chat result when that helps preserve the prompt/response trail
Try one background workflow
- start detached work with
pantheon_background - use
/pantheon-task-actionsas the primary task inspector/recovery menu - drop into advanced task commands only when you specifically need
/pantheon-watch,/pantheon-result, or tmux attach behavior
- start detached work with
๐ What you'll see in the TUI
Pantheon uses a few consistent surfaces:
- Command widget โ short result/status line below the editor
- Editor report โ full command output for inspection and copy/paste
- Chat report โ used only for interactive command flows where a timeline entry is useful
- Dashboard widget โ the current next-best action, active work, and warnings
- Subagent widget โ live delegate/council activity while specialists run
Helpful first actions
/pantheon # simplified command center (+ specialist quick help)
/pantheon-council # high-confidence multi-model decision
/review # structured review helper
/pantheon-task-actions # inspect/retry/cancel/attach from one task menu
/pantheon-doctor # setup/runtime health checks
Detailed guides
๐๏ธ Meet the Pantheon
01. Orchestrator โ The Embodiment of Order
| Field | Details |
|---|---|
| Role | Master delegator and strategic coordinator |
| Prompt | agents/orchestrator.md |
| Behavior | Appends top-level orchestration guidance, chooses when to act directly, delegate, use council, or launch background work |
| Best at | Routing, sequencing, balancing speed/quality/cost |
02. Explorer โ The Eternal Wanderer
| Field | Details |
|---|---|
| Role | Codebase reconnaissance |
| Prompt | agents/explorer.md |
| Best at | Finding files, summarizing architecture, locating patterns, mapping unfamiliar areas |
| Ideal tools | read, bash, pantheon_repo_map, pantheon_code_map |
03. Oracle โ The Guardian of Paths
| Field | Details |
|---|---|
| Role | Strategic advisor and debugger of last resort |
| Prompt | agents/oracle.md |
| Best at | Risky decisions, architecture review, simplification, hard debugging |
| When to use | Expensive-to-reverse choices and persistent bugs |
04. Council โ The Chorus of Minds
| Field | Details |
|---|---|
| Role | Multi-model consensus and synthesis |
| Prompt | agents/council.md |
| Guide | docs/council.md |
| Best at | Ambiguous trade-offs, high-confidence review, architecture verdicts |
05. Librarian โ The Weaver of Knowledge
| Field | Details |
|---|---|
| Role | External knowledge retrieval |
| Prompt | agents/librarian.md |
| Best at | Docs lookup, package research, release notes, upstream examples |
| Research surface | Fetch/search tools plus the adapter system documented in docs/mcps.md |
06. Designer โ The Guardian of Aesthetics
| Field | Details |
|---|---|
| Role | UI/UX implementation and review |
| Prompt | agents/designer.md |
| Best at | Interface polish, interaction quality, visual cleanup, frontend ergonomics |
| When to use | User-facing work where presentation quality matters |
07. Fixer โ The Last Builder
| Field | Details |
|---|---|
| Role | Fast implementation specialist |
| Prompt | agents/fixer.md |
| Best at | Focused execution, bounded code changes, tests, follow-through after planning |
| When to use | Requirements are clear and the work is implementation-heavy |
Available agents in-session
/pantheon-agents
The command now acts as a lightweight specialist guide: it shows what each Pantheon specialist is best for, when not to use it, example task shapes, and the active source/model summary when available.
Bundled agents:
explorerlibrarianoracledesignerfixercouncil- internal:
councillor,council-master
๐ Documentation
๐ Getting started
| Doc | Contents |
|---|---|
| Installation Guide | npm-based pi install, installer CLI, bootstrap flow, verification, troubleshooting |
| Provider Configurations | Pi model strings, mixed-provider presets, per-agent overrides, council diversity |
| Quick Reference | Docs index and suggested reading order |
โจ Features
| Feature | Doc | What it covers |
|---|---|---|
| Council | council.md | Multi-model consensus, presets, timeouts, and when to use pantheon_council |
| Multiplexer Integration | multiplexer-integration.md | Tmux-backed background panes, layout, attach/reuse, troubleshooting |
| Cartography Skill | cartography.md | Hierarchical codemap generation and incremental repo mapping |
| Interview / Spec Workflow | interview.md | Upstream interview difference and the pi-native spec workflow replacement |
โ๏ธ Config & reference
| Doc | Contents |
|---|---|
| Configuration | Config files, merge order, presets, overrides, schema usage |
| Skills | Bundled karpathy-guidelines + cartography skills, policy controls, setup hints |
| MCPs / Adapters | Pi-native adapter system that fills the role upstream MCP docs cover |
| Tools | Background tasks, LSP, AST-grep, formatting, patch rescue, observability |
| Author-style Preset | A practical mixed-provider preset for day-to-day Pantheon usage |
| Repository Codemap | Top-level architecture map for future contributors and agents |
โจ What this port includes
This pi package ports the most valuable oh-my-opencode-slim ideas into pi's native extension model:
- orchestrator-style top-level prompt injection
- specialist delegation via
pantheon_delegate - multi-model consensus via
pantheon_council - background specialist tasks with status, wait, result, retry, cancel, and attach flows
- tmux-backed multiplexer support for live background logs
- structured research through adapters and docs-aware fetch/search helpers, including smart
pantheon_webfetch - behavioral guardrails for non-trivial coding work via a bundled
karpathy-guidelinesskill - cartography / codemap workflows via a bundled
cartographyskill - workflow-state persistence, auto-continue, and resume helpers
- richer code intelligence: LSP navigation, rename, organize-imports, format, patch, AST-grep
- debug traces, runtime inspection, hook tracing, and usage statistics
- prompt templates and review helpers:
/implement,/scout-and-plan,/implement-and-review,/ask-council,/review
๐ฆ Package / release setup
This repository is structured as a publishable pi package.
Included:
package.jsonwith thepimanifestagents/,prompts/,skills/,extensions/, andbin/oh-my-opencode-pi.schema.json- publish-ready
filesentries includingdocs/andcodemap.md - package scripts:
npm run typechecknpm run pack:drynpm run eval:orchestration
Recommended validation cadence:
- fast PR-safe orchestration check:
npm test -- tests/orchestration-evals.test.ts tests/orchestration-approval.test.ts tests/orchestration.test.ts tests/ui-rendering-approval.test.ts
- fuller release / milestone validation:
npm testnpm run typechecknpm run eval:orchestrationnpm run pack:dry
To publish:
npm publish
๐ Pi port notes
This package adapts Pantheon workflows to pi rather than cloning OpenCode behavior byte-for-byte.
Some upstream behavior remains runtime-bound, especially:
- OpenCode agent registry integration
- exact OpenCode hook/interception semantics
- exact
apply_patchrescue semantics - exact detached-session lifecycle behavior
Overriding agents
The extension loads agents in this precedence order:
- bundled agents in this package
~/.pi/agent/agents/*.md- project-local
.pi/agents/*.mdwhenincludeProjectAgents: true
That means you can override any bundled agent by creating an agent markdown file with the same name frontmatter.
Optional config
Create one of these files:
- global:
~/.pi/agent/oh-my-opencode-pi.jsonor~/.pi/agent/oh-my-opencode-pi.jsonc - project:
.pi/oh-my-opencode-pi.jsonor.pi/oh-my-opencode-pi.jsonc
Both JSON and JSONC are supported.
Minimal example:
{
"$schema": "../oh-my-opencode-pi.schema.json",
"extends": ["research", "durable"],
"agents": {
"oracle": { "model": "anthropic/claude-sonnet-4-5", "variant": "high" },
"explorer": {
"model": "openai-codex/gpt-5.4-mini",
"allowSkills": ["cartography"],
"allowedAdapters": ["local-docs", "github-code-search", "web-search"]
},
"librarian": {
"model": "openai-codex/gpt-5.4-mini",
"allowedAdapters": ["local-docs", "docs-context7", "npm-registry", "web-search"]
}
},
"council": {
"defaultPreset": "review-board"
},
"multiplexer": {
"tmux": true,
"layout": "main-vertical"
}
}
If you use OpenAI API keys instead of ChatGPT/Codex subscription auth, switch the prefix back to openai/.... Main-model examples use gpt-5.5; mini examples remain on gpt-5.4-mini until a gpt-5.5-mini model exists.
For the full option map, presets, council config, adapter policy, and schema guidance, see docs/configuration.md.
โก Command center at a glance
| Command | Purpose |
|---|---|
/pantheon |
Open the command center |
/pantheon-agents |
List bundled/user/project Pantheon agents |
/pantheon-council |
Launch a council run interactively |
/pantheon-config |
Show config sources, presets, and warnings |
/pantheon-skills |
Show effective skill guidance |
/pantheon-regenerate |
Refresh generated project-local scaffold files after an update |
/pantheon-adapters |
List adapters and effective policy |
/pantheon-backgrounds |
Inspect recent background tasks |
/pantheon-stats |
Inspect usage and reliability statistics |
/pantheon-version |
Inspect installed package version and cached update state |
/pantheon-update-check |
Force a fresh package update check |
For the full command list, see docs/quick-reference.md and docs/tools.md.
๐งฐ Core tool surface
Delegation and consensus
pantheon_delegatepantheon_council
Background execution
pantheon_backgroundpantheon_background_statuspantheon_background_waitpantheon_background_resultpantheon_background_watchpantheon_background_retrypantheon_background_cancelpantheon_background_attach
Code intelligence
pantheon_lsp_*navigation / rename / diagnostics toolspantheon_format_documentpantheon_apply_patchpantheon_ast_grep_searchpantheon_ast_grep_replace
Research and repository mapping
pantheon_adapter_*pantheon_webfetch,pantheon_fetch*,pantheon_searchpantheon_repo_mappantheon_code_map
See docs/tools.md for the complete breakdown.
โจ Feature highlights
Background tasks + tmux
Pantheon can queue detached specialist work, persist task specs/results, and optionally attach live tmux panes for progress visibility.
See:
Auto-continue + workflow state
The port can persist unchecked todos, auto-continue multi-step work, and generate resume context from previous background activity.
Behavioral guardrails
The bundled karpathy-guidelines skill gives Pantheon agents a reusable behavior layer for non-trivial implementation work: clarify assumptions, prefer the simplest change, keep diffs surgical, and verify before claiming success.
See:
Repo cartography
The bundled cartography skill generates and maintains codemap.md documentation backed by .pi/cartography.json.
See:
Adapters instead of MCP runtime semantics
The pi port uses a policy-aware adapter system for docs, package, release, web, and code research.
See:
Debugging and observability
Pantheon writes foreground debug traces and lightweight usage stats so failed delegate/council/background runs can be inspected after the fact. Foreground delegate/council runs also surface a live subagent activity widget below the editor, and /pantheon-subagents lets you inspect per-agent details or jump straight to the full trace.
See:
๐ Where the detailed reference lives now
The README is intentionally the overview. Detailed reference moved to the docs set:
- installation / verification โ
docs/installation.md - providers / model strategy โ
docs/provider-configurations.md - full config reference โ
docs/configuration.md - council behavior โ
docs/council.md - adapters / MCP-equivalent surface โ
docs/mcps.md - tools / commands / background / LSP / patch behavior โ
docs/tools.md - runtime and workflow behavior โ
docs/workflows.md
Notes
- Top-level sessions get the orchestrator prompt automatically.
- Subagent sessions do not get it; they only receive their specialist prompt.
pantheon_councilworks without custom config, but config is how you get real model diversity.- This port adapts Pantheon workflows to pi rather than cloning OpenCode behavior exactly.