Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When a repo contains a file and a symlink pointing to the same content (e.g. AGENTS.md is a symlink to CLAUDE.md), Cursor’s Context Explorer shows both as separate entries and appears to include both in the context window, effectively doubling the token count for a single logical file.
Steps to Reproduce
Create a file AGENTS.md with ~5 000 tokens of content
Create a symlink: ln -s AGENTS.md CLAUDE.md
Open the project in Cursor and inspect the Context Explorer
Expected Behavior
Expected
Only one file’s content should appear in context (they resolve to the same inode).
Actual
Both CLAUDE.md and AGENTS.md are listed as separate entries, each contributing ~5 100 tokens (~10 300 tokens total).
Note
It’s unclear whether this is a visual/reporting bug or actual double-loading at the LLM level — either way it’s misleading and should be fixed. The symlink pattern is common in repos that need to support both Claude Code (CLAUDE.md) and other agents (AGENTS.md).
Screenshots / Screen Recordings
Operating System
MacOS
Version Information
Cursor [3.7.42]
Does this stop you from using Cursor
No - Cursor works, but with this issue
