-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: add pi-coding-agent support #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Create OpenSpec change for adding pi-coding-agent from badlogic/pi-mono to the supported AI tools list. Includes proposal, design, specs, and tasks for implementing slash command support via .pi/prompts/*.md. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Pi (pi-coding-agent from badlogic/pi-mono) as a supported AI tool with slash command generation for .pi/prompts/*.md format. Pi already supports AGENTS.md natively, so only slash commands are needed. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Archive completed change to 2026-01-21-add-pi-coding-agent - Sync Pi slash command scenario to cli-init spec - Remove unnecessary pi-slash-commands delta spec (follows existing pattern)
📝 WalkthroughWalkthroughThis PR adds Pi as a new AI tool to OpenSpec, enabling users to select "Pi" during initialization. It includes configuration updates, a new slash-command configurator for Pi's Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hey @rdparker, big fan of Pi! we're undergoing bit of a migration right now and basically converting all of our workflow to use skills and updating slash commands etc, so this change will go stale very fast. Happy to support pi, it just will have to wait a couple of days |
Review CompleteYour review story is ready! Comment !reviewfast on this PR to re-generate the story. |
Greptile SummaryThis PR adds support for pi-coding-agent, a terminal-based coding tool that natively supports the AGENTS.md standard. The implementation follows the established pattern for adding new AI tool support in OpenSpec. Key Changes:
Implementation Quality:
Design Decisions:
The change is well-documented with comprehensive proposal, design, and tasks files in the archive directory, following OpenSpec's spec-driven development workflow. Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant CLI as openspec init
participant Registry as SlashCommandRegistry
participant PiConfig as PiSlashCommandConfigurator
participant FS as File System
User->>CLI: openspec init
CLI->>User: Prompt tool selection
User->>CLI: Select "Pi"
CLI->>Registry: Get configurator for "pi"
Registry->>PiConfig: Return pi configurator
CLI->>PiConfig: generateAll(projectPath)
loop For each command (proposal, apply, archive)
PiConfig->>PiConfig: getRelativePath(id)
Note over PiConfig: Returns .pi/prompts/openspec-{id}.md
PiConfig->>PiConfig: getFrontmatter(id)
Note over PiConfig: Returns YAML with description field
PiConfig->>PiConfig: getBody(id)
Note over PiConfig: Gets template from TemplateManager
PiConfig->>FS: Write file with frontmatter + body
Note over FS: Creates .pi/prompts/openspec-{id}.md
end
PiConfig->>CLI: Return created file paths
CLI->>User: Success message
|
Greptile found no issues!From now on, if a review finishes and we haven't found any issues, we will not post anything, but you can confirm that we reviewed your changes in the status check section. This feature can be toggled off in your Code Review Settings by deselecting "Create a status check for each PR". |
Summary
.pi/prompts/*.mdformatWhat is Pi-Coding-Agent?
Pi-coding-agent is a terminal-based coding agent with multi-model support, mid-session model switching, and RPC mode. It supports the AGENTS.md standard and has its own slash command system via
.pi/prompts/*.mdfiles.Changes
src/core/config.ts- add pi to AI_TOOLS arraysrc/core/configurators/slash/pi.ts- new slash command configuratorsrc/core/configurators/slash/registry.ts- register pi configuratoropenspec/specs/cli-init/spec.md- spec updateUser Impact
Pi users can select "Pi" during
openspec initand get/openspec-proposal,/openspec-apply,/openspec-archivecommands in their.pi/prompts/directory.Test Plan
Tested by:
openspec initand selecting Pi to add support/openspec-archivecommand to archive this change and commit it🤖 Generated with Claude Code
Summary by CodeRabbit
openspec init.✏️ Tip: You can customize this high-level summary in your review settings.