feat(plugin): pi agent support — one-liner install#24
Merged
Conversation
Adds a pi extension at repo root that bootstraps yactt on first session and registers it with pi-mcp-adapter. Mirrors the Claude plugin's TOFU + SHA256 trust chain by reusing plugins/yactt/scripts/install.sh. The pi one-liner: pi install git:github.com/kellenff/yactt What the extension does on first session_start: - Runs the shared installer (no-op when yactt is current) - Installs pi-mcp-adapter if not already in settings - Writes a yactt MCP server entry to ~/.pi/agent/mcp.json (idempotent) Subsequent sessions are no-ops. The code-explore skill is published at repo root with pi-format frontmatter so it's auto-discovered by pi.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a pi extension at repo root (multi-agent layout, parallel to the Claude plugin) that bootstraps yactt on first session and registers it with pi-mcp-adapter.
End user story
That's it. First session:
plugins/yactt/scripts/install.shfetches yactt (same TOFU + SHA256 chain as the Claude plugin).npm:pi-mcp-adapterif not already present in~/.pi/agent/settings.json.yacttMCP server entry to~/.pi/agent/mcp.json(idempotent — preserves user-added servers).Second session onward: no-op.
What's in this MR
pi-extension/index.js— ~57 LOC extensionpi-extension/package.json— declarespi.extensionsentrypi-extension/test/extension.test.js— 4 smoke tests (52ms)skills/code-explore/SKILL.md— pi-format skill at repo rootREADME.md+plugins/yactt/README.md— install section updatedTrust
Reuses the Claude plugin's
scripts/install.shunchanged — same SHA256 verification, same TOFU(version, sha256)record at~/.local/share/yactt/known-good, same SLSA L3 attestations. The pi extension adds zero new attack surface; it just calls the existing installer and writes a JSON file.Test