Skip to content

feat: add Pi subagent support - #1

Merged
HerbertGao merged 6 commits into
mainfrom
feat/pi-support
Oct 23, 2026
Merged

HerbertGao merged 6 commits into
mainfrom
feat/pi-support

Conversation

@HerbertGao

@HerbertGao HerbertGao commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Rebased onto current main and adds Pi custom Subagent conversion and install.

  • preserves Claude name, description, color, emoji, vibe, and body
  • maps current Agency tools to Pi built-ins
  • emits extensions: false for an explicit tool list
  • installs to ~/.pi/agent/agents/ or a project .pi/agents/

This PR is on the fork so bugbot can review the rebased branch. Upstream: msitarzewski#809

Validation

  • ./scripts/check-tools.sh
  • bash scripts/test-convert-frontmatter.sh

Note

Low Risk
Changes are limited to new integration scripts, docs, and test fixtures; no auth or production runtime paths are modified.

Overview
Adds Pi as a supported multi-tool integration so Agency agents can be converted and installed as Pi custom Subagents (via pi-subagents).

convert.sh gains a pi target that writes integrations/pi/agents/*.md, keeps persona frontmatter (name, description, color, emoji, vibe) and the body, maps Claude-style tools to Pi names, and records originals/unmapped tools under x-agency-* with extensions: false. install.sh copies those files to ~/.pi/agent/agents/ or a project path, with backups before overwrite and skips for symlinks/non-file targets; tests cover conversion frontmatter and isolated Pi install branches. Docs, .gitignore, and tools.json are updated so Pi appears in the supported-tools list and parallel --tool all now runs 16 tools.

Reviewed by Cursor Bugbot for commit 62eb326. Bugbot is set up for automated code reviews on this repo. Configure here.

Upstream agents can already quote a description. Pi keeps that scalar instead of forcing single quotes.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 40d3dc18-6c1a-41a1-a3e9-730b3331b12c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6ada68a. Configure here.

Comment thread scripts/install.sh
Trim Pi fields the same way as the app renderer, skip empty tool tokens, and treat Pi filenames as colliding with other agent markdown.
Strip one matching quote pair before splitting, matching the app renderer.
The empty-roster success check still expected 15 tools after Pi joined the set.
@HerbertGao
HerbertGao merged commit cf2b9de into main Oct 23, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant