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
- Self Labs launches Agent Vault to let AI agents log in and pay with credit cards — EXM7777 · 2026-10-16
- Plane Agents: triggers, not prompts, are what turn chatbots into workflow agents — JosephJacks_ · 2026-10-16
- Claude eng lead Felix Rieseberg publishes tutorial on being more ambitious with AI — danshipper · 2026-10-16
- Qwen Code Desktop v0.25.2 ships managed-agent fixes and MCP config repair — github-actions[bot] · 2026-10-16
- NVIDIA makes 7 AI agent courses free, from agent basics to securing agents — ifioknkem · 2026-10-16
- Claude runs 9-hour task, then stalls waiting for Drive permission — juliey4 · 2026-10-16