feat: add GitHub Copilot CLI as a supported host#1044
Open
sumitgogia wants to merge 2 commits intogarrytan:mainfrom
Open
feat: add GitHub Copilot CLI as a supported host#1044sumitgogia wants to merge 2 commits intogarrytan:mainfrom
sumitgogia wants to merge 2 commits intogarrytan:mainfrom
Conversation
Add hosts/copilot-cli.ts with tool rewrites mapping Claude Code tools to Copilot CLI equivalents (view, create, edit, bash, grep, glob, task, ask_user, web_fetch). Path rewrites translate .claude/skills → .copilot-cli/skills and CLAUDE.md → AGENTS.md. Suppressed resolvers: CODEX_SECOND_OPINION, CODEX_PLAN_REVIEW (Codex-specific), GBRAIN_CONTEXT_LOAD, GBRAIN_SAVE_RESULTS (not available). REVIEW_ARMY, ADVERSARIAL_STEP, and DESIGN_OUTSIDE_VOICES are kept — they map to Copilot CLI's task tool for parallel sub-agent dispatch. Includes boundary instruction to prevent reading .claude/ skill definitions. - Generation: bun run gen:skill-docs --host copilot-cli (36 skills) - Detection: cliCommand 'gh' with alias 'copilot' - Install path: ~/.copilot-cli/skills/gstack - All 355 gen-skill-docs tests pass - All 73 host-config tests pass (count bumped 10→11) Co-authored-by: Copilot <[email protected]>
Copilot CLI discovers personal skills at ~/.copilot/skills/ and project skills at .github/skills/ (not .copilot-cli/). Updated: - globalRoot: .copilot-cli → .copilot (matches ~/.copilot/ config home) - localSkillRoot: .copilot-cli → .github (native project skill path) - hostSubdir: .copilot-cli → .copilot (build output dir) - cliCommand: copilot is the actual binary (gh is an alias) - All path rewrites and boundary instruction updated Skills are now auto-discovered by /skills list without manual /skills add. Co-authored-by: Copilot <[email protected]>
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.
Summary
Adds GitHub Copilot CLI as gstack's 11th supported host.
What's included
hosts/copilot-cli.ts— Declarative host config following the pattern inADDING_A_HOST.mdhosts/index.ts— Registration in the host registry.gitignore— Added.copilot-cli/for generated skill docstest/host-config.test.ts— Bumped host count assertion (10→11)Design decisions
Tool rewrites — Copilot CLI uses different tool names than Claude Code:
Path rewrites:
.claude/skills/gstack→.copilot-cli/skills/gstackCLAUDE.md→AGENTS.md(Copilot CLI reads AGENTS.md as custom instructions)Suppressed resolvers:
CODEX_SECOND_OPINION,CODEX_PLAN_REVIEW— Codex-specificGBRAIN_CONTEXT_LOAD,GBRAIN_SAVE_RESULTS— Not availableKept resolvers:
REVIEW_ARMY,ADVERSARIAL_STEP,DESIGN_OUTSIDE_VOICES— these map to Copilot CLI'stasktool which supports parallel sub-agent dispatch (similar to Claude's Agent tool)Detection:
cliCommand: 'gh'with alias'copilot'. The GitHub CLI (gh) hosts the Copilot CLI extension.Boundary instruction: Prevents the agent from reading
.claude/or.agents/directories.Verification
Context
I use GitHub Copilot CLI as my primary AI coding agent. gstack's methodology (especially /review, /office-hours, /cso) is exactly what's missing from my workflow. The generated skill docs work as reference documents that the agent reads on demand via its
viewtool.TODO (follow-up PRs)
copilot-clidetection to setup script (gh copilot --versioncheck)