Repository navigation
feat: native Gemini CLI support via GEMINI.md configuration files - #565
ChetanTekur wants to merge 3 commits into
Conversation
Bug found during testingFile: The export function generateCoAuthorTrailer(ctx: TemplateContext): string {
if (ctx.host === 'codex') {
return 'Co-Authored-By: OpenAI Codex <noreply@openai.com>';
}
return 'Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>';
// ← missing closing } here
export function generateConfigFile(ctx: TemplateContext): string {
return ctx.paths.configFile;
}Error when running Fix: Add the missing Once fixed, |
- Update templates and resolvers to use `ctx.paths.configFile` instead of hardcoding `CLAUDE.md` - Add dynamic `CONFIG_FILE` resolver for future template usage - Apply global replacement in `gen-skill-docs.ts` so `CLAUDE.md` references become `GEMINI.md` for the gemini host - Update `setup` to remap `CLAUDE.md` to `GEMINI.md` when installing the skills - Provide `GEMINI.md` and `GEMINI.md.tmpl` configuration docs
073c63d to
bf19156
Compare
|
@16francej — recommend closing this PR as superseded by #1247. It uses an obsolete parallel generator design and conflicts with the current host registry; #1247 owns the Gemini product and setup-path decision. Preserve contributor credit and the GEMINI.md and config-file mapping concept for a current registry-based host implementation. |
|
Thanks! Consolidating Gemini CLI host support under #1247. Closing. |
What
Adds native support for the Gemini CLI by migrating hardcoded
CLAUDE.mdreferences to a dynamic configuration file (GEMINI.mdfor Gemini,CLAUDE.mdfor Claude/Codex).Why
Currently, gstack assumes
CLAUDE.mdis the universal source of truth for project configurations. When using the Gemini CLI, agents attempting to update or read configurations default toCLAUDE.md. This creates friction, confuses the agent, and pollutes the workspace with Claude-specific files for non-Claude users.How
configFiletoHostPaths(scripts/resolvers/types.ts) and updated existing resolvers (testing.ts,utility.ts) to usectx.paths.configFileinstead of hardcoded strings.{{CONFIG_FILE}}resolver (scripts/resolvers/index.ts) for future template authoring.scripts/gen-skill-docs.tsso any staticCLAUDE.mdreferences in.tmplfiles are automatically rewritten toGEMINI.mdwhen compiling for the--host geminitarget../setupto perform theCLAUDE.md->GEMINI.mdtranslation viasedwhen installing skills into~/.gemini/skills/gstack.GEMINI.mdandGEMINI.md.tmplat the root.This ensures 100% backward compatibility for Claude and Codex hosts while providing a seamless, native experience for Gemini users.
Testing
mainand resolved merge conflicts.bun run build.setupscript correctly formats.agents/skillsfor the Gemini host without altering Claude's output.