feat: native Gemini CLI support via GEMINI.md configuration files#565
Open
ChetanTekur wants to merge 2 commits intogarrytan:mainfrom
Open
feat: native Gemini CLI support via GEMINI.md configuration files#565ChetanTekur wants to merge 2 commits intogarrytan:mainfrom
ChetanTekur wants to merge 2 commits intogarrytan:mainfrom
Conversation
- 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
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.
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.