Skip to content

feat: implement HostConfig for Pi Agent#1289

Open
blaise-liu-optimizely wants to merge 3 commits intogarrytan:mainfrom
Codist-Cafe:feature/add-pi-host
Open

feat: implement HostConfig for Pi Agent#1289
blaise-liu-optimizely wants to merge 3 commits intogarrytan:mainfrom
Codist-Cafe:feature/add-pi-host

Conversation

@blaise-liu-optimizely
Copy link
Copy Markdown

@blaise-liu-optimizely blaise-liu-optimizely commented May 1, 2026

This PR adds formal host support for the Pi Agent (@mariozechner/pi-coding-agent) within the GStack framework. Following the guidelines in docs/ADDING_A_HOST.md, this integration allows Pi Agent users to leverage GStack's multi-persona agentic workflows.

Key Changes:

  • Host Configuration: Created hosts/pi.ts to define the HostConfig for Pi, mapping global and local skill roots to ~/.pi/agent/skills/gstack.
  • Registry Integration: Added and exported the Pi host configuration in hosts/index.ts.
  • Ignore List: Updated .gitignore to exclude the .pi/ directory to prevent tracking generated skill artifacts.
  • Test Coverage: Updated test/host-config.test.ts to include validation for the new Pi host configuration.

Verification:

The following local validations were performed using Bun to ensure framework stability:

  1. Schema Validation: Ran bun run scripts/host-config-export.ts validate to confirm the configuration matches the expected interface.
  2. Doc Generation: Verified bun run gen:skill-docs --host pi successfully generates host-specific skill documentation.
  3. Unit Tests: Executed bun test test/host-config.test.ts and bun test test/gen-skill-docs.test.ts with all tests passing.

Close #1288 .


View in Codesmith
Need help on this PR? Tag @codesmith with what you need.

  • Let Codesmith autofix CI failures and bot reviews

Copilot AI review requested due to automatic review settings May 1, 2026 16:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new Pi Agent host integration to the existing declarative GStack host-config system, enabling generation/installation behaviors to be driven by HostConfig alongside the other supported hosts.

Changes:

  • Added a new HostConfig definition for the pi host.
  • Registered the new host in the host registry and adjusted the host-count test.
  • Updated .gitignore to exclude generated Pi artifacts.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 4 comments.

File Description
hosts/pi.ts Introduces the Pi host configuration (paths, rewrites, runtime assets, install strategy).
hosts/index.ts Registers the Pi host in ALL_HOST_CONFIGS.
test/host-config.test.ts Updates the registry host-count assertion to include the new host.
.gitignore Ignores .pi/ generated artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread hosts/pi.ts
Comment thread hosts/pi.ts
Comment thread hosts/index.ts
Comment thread test/host-config.test.ts Outdated
blaise-liu-optimizely and others added 2 commits May 1, 2026 13:02
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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

3 participants