@ogulcancelik/pi-spar
Agent-to-agent sparring for pi. Back-and-forth conversations with peer AI models for debugging, design review, and challenging your thinking.
Package details
Install @ogulcancelik/pi-spar from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@ogulcancelik/pi-spar- Package
@ogulcancelik/pi-spar- Version
0.1.5- Published
- Apr 5, 2026
- Downloads
- 244/mo · 17/wk
- Author
- ogulcancelik
- License
- MIT
- Types
- extension
- Size
- 286.3 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
pi-spar
Agent-to-agent sparring for pi. Back-and-forth conversations with peer AI models for debugging, design review, and challenging your thinking.
Install
pi install npm:@ogulcancelik/pi-spar
Setup
Configure which models are available for sparring:
/spmodels
This shows all models from your pi configuration and lets you assign short aliases (e.g., opus, gpt).
Note: After changing model aliases, restart pi for the agent to see the updated aliases. The aliases work immediately for tool execution, but the agent's tool description updates on next startup.
Usage
The extension provides a spar tool the agent can use, plus commands for viewing sessions.
Tool: spar
The agent uses this when you ask it to consult another model:
"spar with gpt about whether this architecture makes sense"
"ask opus to review the error handling in src/auth.ts"
Sessions persist — follow up, push back, disagree. The peer can read files, grep, and explore your codebase but can't execute commands or write files.
Commands
| Command | Description |
|---|---|
/spmodels |
Configure available sparring models |
/spar [session] |
Watch a spar session in a floating overlay |
/spview |
Browse all sessions — view, peek, or delete |
Peek overlay
/spar opens a floating overlay that renders the spar conversation using the same components as pi's main TUI — same message styling, same syntax-highlighted tool output, same everything. It's pi inside pi.

- j/k or ↑/↓ — scroll
- g/G — jump to top/bottom
- q or Esc — close
Live sessions auto-scroll as the peer model responds.
Session browser
/spview opens an inline session browser:
- j/k or ↑/↓ — navigate
- enter — open peek overlay for selected session
- d — delete selected session
- D — delete all non-active sessions
- q or Esc — close
License
MIT