Skip to content

feat: implement HostConfig for Pi Agent - #1289

Closed
blaise-liu-optimizely wants to merge 3 commits into
garrytan:mainfrom
Codist-Cafe:feature/add-pi-host
Closed

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

Conversation

@blaise-liu-optimizely

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

Copy link
Copy Markdown

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

Copilot AI 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.

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 Resolved
Comment thread hosts/pi.ts Resolved
Comment thread hosts/index.ts Resolved
Comment thread test/host-config.test.ts Resolved
@garrytan

Copy link
Copy Markdown
Owner

Thanks @blaise-liu-optimizely — closing as deferred. Pi Agent host integration needs focused review separate from a wave. Also overlaps with #846 (also Pi). Happy to revisit a canonical PR.

@garrytan garrytan closed this May 10, 2026
@garrytan garrytan mentioned this pull request May 10, 2026
10 tasks done
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Oct 12, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Oct 18, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Oct 25, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Oct 30, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 1, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 7, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 12, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 15, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 22, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
v639dragoon added a commit to v639dragoon/gstack that referenced this pull request Nov 25, 2026
Step 11.5 runs `complete`, then Steps 13 and 14.5 write the changelog
fragment and doc-release edits, and Step 16 stage 2 carries the reviews
forward to that tree. `converged` counts only a completion after the last
rerun-check, so every such run answered no-completion with zero blocking
findings and dohma's self-merge check refused it (dohma garrytan#917, PRs garrytan#1287
and garrytan#1289, where `complete` was re-run by hand).

Step 16 stage 2 now runs `complete --require-audits --require-native`
right after a successful carry-forward and stops on INCOMPLETE. The
governor's no-completion rule is unchanged. Regenerated ship/SKILL.md and
the three ship goldens.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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

4 participants