This commit is contained in:
Surya Kandukuri 2026-07-14 18:26:06 -07:00 committed by GitHub
commit 6e2fc8ae69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 53 additions and 4 deletions

1
.gitignore vendored
View File

@ -38,6 +38,7 @@ extension/lib/xterm-addon-fit.js
.env.*
!.env.example
supabase/.temp/
.copilot/
# Throughput analysis — local-only, regenerate via scripts/garry-output-comparison.ts
docs/throughput-*.json

View File

@ -101,7 +101,7 @@ These are conversational skills. Your OpenClaw agent runs them directly via chat
### Other AI Agents
gstack works on 10 AI coding agents, not just Claude. Setup auto-detects which
gstack works on 11 AI coding agents, not just Claude. Setup auto-detects which
agents you have installed:
```bash
@ -120,6 +120,7 @@ Or target a specific agent with `./setup --host <name>`:
| Slate | `--host slate` | `~/.slate/skills/gstack-*/` |
| Kiro | `--host kiro` | `~/.kiro/skills/gstack-*/` |
| Hermes | `--host hermes` | `~/.hermes/skills/gstack-*/` |
| GitHub Copilot | `--host copilot` | `~/.copilot/skills/gstack-*/` |
| GBrain (mod) | `--host gbrain` | `~/.gbrain/skills/gstack-*/` |
**Want to add support for another agent?** See [docs/ADDING_A_HOST.md](docs/ADDING_A_HOST.md).

46
hosts/copilot.ts Normal file
View File

@ -0,0 +1,46 @@
import type { HostConfig } from '../scripts/host-config';
const copilot: HostConfig = {
name: 'copilot',
displayName: 'GitHub Copilot',
cliCommand: 'copilot',
cliAliases: ['gh-copilot', 'copilot-cli'],
globalRoot: '.copilot/skills/gstack',
localSkillRoot: '.copilot/skills/gstack',
hostSubdir: '.copilot',
usesEnvVars: true,
frontmatter: {
mode: 'allowlist',
keepFields: ['name', 'description', 'triggers', 'platforms'],
descriptionLimit: 1024,
descriptionLimitBehavior: 'truncate',
},
generation: {
generateMetadata: false,
metadataFormat: null,
skipSkills: ['codex'],
},
pathRewrites: [
{ from: '~/.claude/skills/gstack', to: '~/.copilot/skills/gstack' },
{ from: '.claude/skills/gstack', to: '.copilot/skills/gstack' },
{ from: '.claude/skills', to: '.copilot/skills' },
],
runtimeRoot: {
globalSymlinks: ['bin', 'browse/dist', 'browse/bin', 'gstack-upgrade', 'ETHOS.md'],
globalFiles: { 'review': ['checklist.md', 'TODOS-format.md'] },
},
install: {
prefixable: false,
linkingStrategy: 'symlink-generated',
},
learningsMode: 'basic',
};
export default copilot;

View File

@ -16,9 +16,10 @@ import cursor from './cursor';
import openclaw from './openclaw';
import hermes from './hermes';
import gbrain from './gbrain';
import copilot from './copilot';
/** All registered host configs. Add new hosts here. */
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain];
export const ALL_HOST_CONFIGS: HostConfig[] = [claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, copilot];
/** Map from host name to config. */
export const HOST_CONFIG_MAP: Record<string, HostConfig> = Object.fromEntries(
@ -65,4 +66,4 @@ export function getExternalHosts(): HostConfig[] {
}
// Re-export individual configs for direct import
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain };
export { claude, codex, factory, kiro, opencode, slate, cursor, openclaw, hermes, gbrain, copilot };

View File

@ -31,7 +31,7 @@ const ROOT = path.resolve(import.meta.dir, '..');
describe('hosts/index.ts', () => {
test('ALL_HOST_CONFIGS has 10 hosts', () => {
expect(ALL_HOST_CONFIGS.length).toBe(10);
expect(ALL_HOST_CONFIGS.length).toBe(11);
});
test('ALL_HOST_NAMES matches config names', () => {