Repository navigation
Add host configs for Grok Build, Pi, and Antigravity CLI - #2726
Closed
voipexpert wants to merge 1 commit into
Closed
voipexpert wants to merge 1 commit into
voipexpert wants to merge 1 commit into
Conversation
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]>
|
Merging to
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 |
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! |
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 three host configs so gstack generates correctly-worded skills for
Grok Build, Pi, and the Antigravity CLI (
agy). Today their users getClaude-flavored text — instructions naming Bash/Read/Edit tools they don't
have, and
~/.claude/skills/gstackpaths that don't exist for them.Follows
docs/ADDING_A_HOST.md: one file each, registered in the index. Nogenerator, setup, or tooling changes.
Tool names
Taken from each vendor's own docs, not guessed:
read_file,search_replace,grep_search,list_dir,bash,task. No separate create-file tool, so Write and Edit both map tosearch_replace.pi --helpread,bash,edit,write. No first-party subagent or todo tool —subagentships in the optionalpi-subagentspackage, which the Agent rewrite notes.run_command,view_file,write_to_file,replace_file_content,invoke_subagent. No todo tool:manage_taskdrives background processes, so nothing is rewritten onto it.Two non-default paths
Both needed explicit
pathRewritesinstead of the derived trio:~/.pi/agent/skills, not~/.pi/skills.~/.gemini/config/skills(global) or<workspace>/.agents/skills(repo-local). That repo-local path is the onecodexalready claims as itshostSubdir, soagyuseshostSubdir: '.agy'to keep generation output from colliding with codex's tree.
All three suppress
CROSS_MODEL_RESOLVERS(none can shell out to Codex) plusthe default GBrain pair.
Testing
The two suites named in
ADDING_A_HOST.md, on a clean checkout: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/skillsleakage. The only test change is the hardcodedALL_HOST_CONFIGSlength, 10 → 13.README gains the three rows in the
--hosttable and matching uninstall lines;.gitignoregains the three generated dirs.🤖 Generated with Claude Code