Skip to content

feat(hosts): add Pi as a supported host (closes #1288) - #1918

Closed
withabdul wants to merge 1 commit into
garrytan:mainfrom
withabdul:add-pi-host
Closed

withabdul wants to merge 1 commit into
garrytan:mainfrom
withabdul:add-pi-host

Conversation

@withabdul

@withabdul withabdul commented Jun 8, 2026 •

Copy link
Copy Markdown

Closes #1288

Summary

Adds Pi (https://pi.dev) as a 9th supported gstack host.

Pi implements the Agent Skills standard end-to-end, so every existing gstack skill works as-is. The integration is a single declarative config — no generator, setup, or tooling changes.

What this PR adds

  • hosts/pi.ts — minimal HostConfig mirroring the opencode pattern:
    • globalRoot: .pi/agent/skills/gstack
    • localSkillRoot: .pi/skills/gstack
    • frontmatter: allowlist (name + description), descriptionLimit: 1024 (pi enforces the 1024-char cap per spec)
    • pathRewrites: 3 standard .claude/skills → .pi/skills rewrites
    • toolRewrites: Claude tool names → pi's lowercase-verb native tool names (read, write, edit, bash, grep, find, agent)
    • install: symlink-generated strategy, prefixable: false
  • hosts/index.ts — register pi in ALL_HOST_CONFIGS and re-exports
  • .gitignore — skip .pi/ (generated skill docs)
  • README.md — add Pi row to the host table and a dedicated ### Pi install section

How Pi users would install

git clone --single-branch --depth 1 https://github.com/garrytan/gstack.git ~/gstack
cd ~/gstack && ./setup --host pi

Skills land at ~/.pi/agent/skills/gstack-*/, then /skill:review, /skill:ship, etc. work in pi.

Verification

Check Result
bun run gen:skill-docs --host pi 54 skills generated, 0 errors
grep -r '.claude/skills' .pi/skills/ 0 matches (no path leakage)
grep -r 'use the Bash tool' .pi/skills/ 0 matches (tool rewrites applied)
bun run scripts/host-config-export.ts validate All 11 configs valid (10 existing + pi)
bun test test/host-config.test.ts test/gen-skill-docs.test.ts 69/69 passed
bun run skill:check Pi detected, 0 missing skills
bun run gen:skill-docs --host all Idempotent — total stable at 63576 lines

Notes for reviewers

  • Pi's ~/.pi/agent/skills/ is its primary global skills dir per the Pi skills docs. Pi also discovers ~/.agents/skills/ and .pi/skills/ (project-local, after trust).
  • The codex skill is excluded via skipSkills: ['codex'] — same as every other non-Claude host.
  • No coAuthorTrailer set: pi is model-agnostic (Anthropic, OpenAI, local models), so there is no single author identity to attribute.
  • The hostSubdir .pi/ does not collide with pi's daemon socket file (.pi.sock, a sibling at repo root) — different paths.

Pi implements the Agent Skills spec, so gstack skills work with one config
file (no generator, setup, or tooling changes). Skills install to
~/.pi/agent/skills/gstack-*/ for global and .pi/skills/ for project-local,
both discovered by pi at startup.

- hosts/pi.ts: minimal config mirroring opencode pattern
- hosts/index.ts: register pi in ALL_HOST_CONFIGS + re-exports
- .gitignore: skip .pi/ (generated skill docs)
- README.md: add Pi row to host table + dedicated install section
@trunk-io

trunk-io Bot commented Jun 8, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@time-attack

Copy link
Copy Markdown
Contributor

Thanks for this. The blocker is that setup does not recognize Pi, the host-count assertion is stale, and delegation behavior is undefined. Please register Pi in setup, update the count test, and explicitly support or reject delegation before retesting.

@capy-ai

capy-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Thanks for the Pi host config and the clear write-up of Pi's Agent Skills support. We're consolidating Pi into #2507, which also wires up setup and tests, so I'm closing this as a duplicate. New hosts are waiting on a host-config refactor, and Pi will be decided there.

@capy-ai capy-ai Bot closed this Oct 8, 2026
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.

Add Pi Agent as a supported host

2 participants