Gemini CLI Fix: Dedupe Symlinked Skills Directories
aniruddhaadak80 · ghdev · 2026-08-23
A fix in google-gemini/gemini-cli resolves an issue where linking the .gemini folder to .agents (via symlinks or Windows junctions) caused duplicate skill registration warnings.
The Problem:
- To support the Open Agent Skills standard, users often link .gemini to .agents.
- The CLI discovery logic did not resolve aliases to physical paths, treating linked paths as separate directories and scanning them twice.
The Fix:
- SkillManager.discoverSkills now tracks scanned directories by their physical (real) path using fs.realpath.
- It skips any directory resolving to an already-scanned location, applying to both user-level and workspace-level tiers.
Testing:
- End-to-end tests verify that skills are discovered exactly once when linked, eliminating conflict warnings.
More from coding & agent
- Returning to Squad after 6 months: the agent OS feels far more mature — ayushtweetshere · 2026-11-30
- Indie dev vibe-codes a native iOS RSS app with 183 curated AI sources, awaiting TestFlight — vista8 · 2026-11-30
- AI Slides: Why Text-Layer Separation and Native PPTX Both Fall Short, and When to Pick Which — dotey · 2026-11-30
- Taku OS: open-source Android build embeds AI agents at the OS level — RevolutionStandard56 · 2026-11-30
- Bathys: 9B/27B deep search agents trained with verifiable question synthesis hit strong BrowseComp results — Bathys · 2026-11-30
- Open-source MCP server lets you annotate PDFs and send feedback straight to your research agent session — RegularCycle1971 · 2026-11-30