fix(gemini): drop redundant .gemini/skills copy#155
Closed
Conversation
PR #150 added a step in setup_codex.py that wipes ~/.agents/skills/ via shutil.rmtree then re-populates it from .claude/skills. Gemini also discovers skills under .agents/, so this nukes Gemini's skills on every codex setup run. Drop step 5 entirely and remove the now-unused .agents/ entry from .gitignore. Gemini's existing skill discovery path is left alone; codex falls back to its other lookup mechanisms. Co-authored-by: Isaac
Gemini CLI already discovers skills from .agents/, which setup_codex.py populates from .claude/skills. Copying them again into .gemini/skills created a second source of truth that drifted on every codex setup run and showed up as Gemini's skills being clobbered. Remove step 5 from setup_gemini.py and drop the now-unused shutil import. Skill discovery for Gemini continues to work via the shared .agents/ path. Co-authored-by: Isaac
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.
Summary
.agents/(whichsetup_codex.pypopulates from.claude/skills/).setup_gemini.pywas also copying those skills into.gemini/skills/, creating a second source of truth that drifted on every codex setup run.Changes
setup_gemini.py(theshutil.rmtree+copytreeblock targeting.gemini/skills).import shutil.# 6.to# 5..No changes to
setup_codex.py— Codex still owns.agents/skills/, and Gemini reads from that same path. One source of truth, no clobbering.Test plan
geminiCLI starts and resolves skills from.agents/skills/.codexCLI still resolves skills from.agents/skills/(unchanged behavior)..gemini/skills/directory is created on a clean app deploy.This pull request and its description were written by Isaac.