Skip to content

Add host configs for Grok Build, Pi, and Antigravity CLI - #2726

Closed
voipexpert wants to merge 1 commit into
garrytan:mainfrom
voipexpert:add-grok-pi-antigravity-hosts
Closed

voipexpert wants to merge 1 commit into
garrytan:mainfrom
voipexpert:add-grok-pi-antigravity-hosts

Conversation

@voipexpert

Copy link
Copy Markdown
Contributor

Adds three host configs so gstack generates correctly-worded skills for
Grok Build, Pi, and the Antigravity CLI (agy). Today their users get
Claude-flavored text — instructions naming Bash/Read/Edit tools they don't
have, and ~/.claude/skills/gstack paths that don't exist for them.

Follows docs/ADDING_A_HOST.md: one file each, registered in the index. No
generator, setup, or tooling changes.

Tool names

Taken from each vendor's own docs, not guessed:

Host Source Notable
grok Grok Build README, "Built-in Tools" read_file, search_replace, grep_search, list_dir, bash, task. No separate create-file tool, so Write and Edit both map to search_replace.
pi pi --help read, bash, edit, write. No first-party subagent or todo tool — subagent ships in the optional pi-subagents package, which the Agent rewrite notes.
agy Antigravity builtin skills run_command, view_file, write_to_file, replace_file_content, invoke_subagent. No todo tool: manage_task drives background processes, so nothing is rewritten onto it.

Two non-default paths

Both needed explicit pathRewrites instead of the derived trio:

  • Pi nests agent state a level deeper: ~/.pi/agent/skills, not ~/.pi/skills.
  • Antigravity resolves user skills from ~/.gemini/config/skills (global) or
    <workspace>/.agents/skills (repo-local). That repo-local path is the one
    codex already claims as its hostSubdir, so agy uses hostSubdir: '.agy'
    to keep generation output from colliding with codex's tree.

All three suppress CROSS_MODEL_RESOLVERS (none can shell out to Codex) plus
the default GBrain pair.

Testing

The two suites named in ADDING_A_HOST.md, on a clean checkout:

bun test test/gen-skill-docs.test.ts    430 pass, 0 fail
bun test test/host-config.test.ts        76 pass, 0 fail

The parameterized smoke tests pick up all three hosts automatically and confirm
output exists, frontmatter is valid, the codex skill is excluded, and there's no
.claude/skills leakage. The only test change is the hardcoded
ALL_HOST_CONFIGS length, 10 → 13.

README gains the three rows in the --host table and matching uninstall lines;
.gitignore gains the three generated dirs.

🤖 Generated with Claude Code

Three coding agents that read SKILL.md-style skills had no gstack host
adapter, so their users get Claude-flavored text: instructions naming the
Bash/Read/Edit tools they do not have, and ~/.claude/skills/gstack paths
that do not exist for them.

Each config follows docs/ADDING_A_HOST.md. Tool names are taken from each
vendor's own documentation:

- grok: read_file, search_replace, grep_search, list_dir, bash, task
  (Grok Build README "Built-in Tools"). No separate create-file tool, so
  Write and Edit both map to search_replace.
- pi: read, bash, edit, write (pi --help). Pi ships no first-party
  subagent or todo tool; `subagent` comes from the optional pi-subagents
  package, which the Agent-tool rewrite notes.
- agy: run_command, view_file, write_to_file, replace_file_content,
  invoke_subagent. Antigravity has no todo tool -- manage_task drives
  background processes -- so nothing is rewritten onto it.

Two paths needed explicit pathRewrites rather than the derived trio:

- Pi nests agent state one level deeper (~/.pi/agent/skills, not
  ~/.pi/skills).
- Antigravity resolves user skills from ~/.gemini/config/skills (global)
  or <workspace>/.agents/skills (repo-local). The repo-local path is the
  one codex already claims as hostSubdir, so agy uses hostSubdir '.agy'
  to keep generation output from colliding with codex's tree.

All three suppress CROSS_MODEL_RESOLVERS (none can invoke Codex) plus the
default GBrain pair.

Verified with the two suites named in ADDING_A_HOST.md:
  bun test test/gen-skill-docs.test.ts   430 pass, 0 fail
  bun test test/host-config.test.ts       76 pass, 0 fail
The parameterized smoke tests pick up all three hosts automatically and
confirm no .claude/skills leakage. The only test edit is the hardcoded
ALL_HOST_CONFIGS length, 10 -> 13.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@trunk-io

trunk-io Bot commented Aug 29, 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

@capy-ai

capy-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Antigravity landed in v1.91.67.0 (#3089), with credit to you for the tool names sourced from Antigravity's own docs. The Grok Build and Pi host configs in this PR are parked under 'New hosts' in TODOS.md (Pi is tracked via #2507, Grok Build via #2028). Thank you @voipexpert!

@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.

1 participant