Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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).
Expand Down
46 changes: 46 additions & 0 deletions hosts/copilot.ts
Original file line number Diff line number Diff line change
@@ -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;
5 changes: 3 additions & 2 deletions hosts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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 };
2 changes: 1 addition & 1 deletion test/host-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down