You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gemini CLI loads both GEMINI.md and gemini.md on case-insensitive filesystems, duplicating context #19904
On a case-insensitive filesystem (macOS/Darwin), the Gemini CLI appears to be searching for both GEMINI.md and gemini.md during context initialization. Because the filesystem is case-insensitive, both paths resolve to the exact same physical file.
As a result, the CLI loads the same instructional context twice into the model's prompt, wasting context window space.
Technical Evidence:
Running ls -lai in the root directory confirms that both names point to the same inode:
1 65116059 -rw-r--r-- 1 user group 10933 16 Feb 15:59 gemini.md
2 65116059 -rw-r--r-- 1 user group 10933 16 Feb 15:59 GEMINI.md
Attempting to ignore the duplicate via .geminiignore (adding gemini.md) did not resolve the issue.
What did you expect to happen?
The loader should deduplicate files based on their device/inode ID to avoid this redundancy on case-insensitive systems.
@yoganand560 Thanks for taking interest but this issue is already assigned. We'd still love to have you contribute. Check out our Help Wanted list for issues where we need some extra attention.
hey @Sunzzx, i was already working on this and have nearly completed a PR. would it be okay if i continue and submit it? happy to collaborate if needed, thanks!
hey @Sunzzx, i was already working on this and have nearly completed a PR. would it be okay if i continue and submit it? happy to collaborate if needed, thanks!
sure mate , you can go ahead with it , let me know if you face any issue in the process and need help , goodluck
thank you so much @Sunzzx, @vektorich just created the PR #19915, with the fix, please do check It out and let if know if you have any suggestions, thank you again!
@scidomino I spoke with @Sunzzx earlier and he was okay with me working on this issue. would it be possible to assign me to it so the PR #19915 can be reviewed? thanks!
Activity
Nixxx19 commentedon Feb 22, 2026
mhm, interesting, will look at this
Sunzzx commentedon Feb 22, 2026
/assign
gemini-cli commentedon Feb 22, 2026
👋 @Sunzzx, you've been assigned to this issue! Thank you for taking the time to contribute. Make sure to check out our contributing guidelines.
yoganand560 commentedon Feb 22, 2026
/assign
gemini-cli commentedon Feb 22, 2026
@yoganand560 Thanks for taking interest but this issue is already assigned. We'd still love to have you contribute. Check out our Help Wanted list for issues where we need some extra attention.
Nixxx19 commentedon Feb 22, 2026
hey @Sunzzx, i was already working on this and have nearly completed a PR. would it be okay if i continue and submit it? happy to collaborate if needed, thanks!
Sunzzx commentedon Feb 22, 2026
sure mate , you can go ahead with it , let me know if you face any issue in the process and need help , goodluck
Nixxx19 commentedon Feb 22, 2026
thank you so much @Sunzzx, @vektorich just created the PR #19915, with the fix, please do check It out and let if know if you have any suggestions, thank you again!
Nixxx19 commentedon Mar 4, 2026
@scidomino I spoke with @Sunzzx earlier and he was okay with me working on this issue. would it be possible to assign me to it so the PR #19915 can be reviewed? thanks!
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…
fix(core): deduplicate GEMINI.md files by device/inode on case-insens…