Skip to content

Commit c178721

Browse files
authored
feat(cli): add Gemini CLI agent instructions (#891)
1 parent 6771edf commit c178721

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/cli/src/utils/__tests__/agent.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,15 @@ describe('writeAgentInstructions symlink behavior', () => {
334334

335335
await writeAgentInstructions({
336336
projectRoot: dir,
337-
targetPaths: ['AGENTS.md', 'CLAUDE.md', '.github/copilot-instructions.md'],
337+
targetPaths: ['AGENTS.md', 'CLAUDE.md', 'GEMINI.md', '.github/copilot-instructions.md'],
338338
interactive: false,
339339
});
340340

341341
expect(mockFs.isSymlink(path.join(dir, 'AGENTS.md'))).toBe(false);
342342
expect(mockFs.isSymlink(path.join(dir, 'CLAUDE.md'))).toBe(true);
343343
expect(mockFs.readlinkSync(path.join(dir, 'CLAUDE.md'))).toBe('AGENTS.md');
344+
expect(mockFs.isSymlink(path.join(dir, 'GEMINI.md'))).toBe(true);
345+
expect(mockFs.readlinkSync(path.join(dir, 'GEMINI.md'))).toBe('AGENTS.md');
344346
expect(mockFs.isSymlink(path.join(dir, '.github/copilot-instructions.md'))).toBe(true);
345347
expect(mockFs.readlinkSync(path.join(dir, '.github/copilot-instructions.md'))).toBe(
346348
path.join('..', 'AGENTS.md'),

packages/cli/src/utils/agent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const AGENT_ALIASES: Record<string, string> = {
171171
export const AGENTS = [
172172
{ id: 'chatgpt-codex', label: 'ChatGPT (Codex)', targetPath: 'AGENTS.md' },
173173
{ id: 'claude', label: 'Claude Code', targetPath: 'CLAUDE.md' },
174+
{ id: 'gemini', label: 'Gemini CLI', targetPath: 'GEMINI.md' },
174175
{
175176
id: 'copilot',
176177
label: 'GitHub Copilot',

0 commit comments

Comments
 (0)