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
- Opus 5 guide: Set effort to Medium, define precise goals, and let it run — daniel_mac8 · 2026-08-23
- Claude Code Version 2.1.241 Incoming — ClaudeCodeLog · 2026-08-23
- Dev Rants on Cloud Environments: Wants Remote Laptop Experience — jasonkneen · 2026-08-23
- Tsinghua + Cornell: ACID-Transaction framework for reliable Agent memory — rohanpaul_ai · 2026-08-23
- MCP Connector for Hotel Booking Launches with USDC Payments on Base — modelcontextprotocol · 2026-08-23
- Hybrid Approach: Cloud for Isolation, Local for Sovereignty — sull · 2026-08-23