Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
We have a big monorepo, many folders have their own AGENTS.md file. There are several hundred AGENTS.md files across the repo. If I load the root of the repo in Cursor, then run an agent (typically specifying a specific file+line in my prompt), it will often load all rules files across the entire repo, loading e.g. 600k tokens worth of rules, immediately blasting past my e.g. 300k context window. This also causes massive $$$$$$ use which makes Cursor economically insanely expensive, yield extremely slow results as it seems to think and do “Chat context summarized” dozens of times, and in the end yield bad quality results.
This problem started occurring in Cursor 3.6 and mostly always happened since then, until 3.10 when it seemed to sometimes work, but sometimes I still have this issue and I don’t know how to get out of it. I’ve never once had the problem in Cursor 3.5 or earlier, so I frequently find myself reinstalling 3.5 and then avoiding “restart to update” (or else reinstalling 3.5 every time I accidentally update).
Steps to Reproduce
Have a large project (e.g. monorepo) with a lot of AGENTS.md files in folders/subfolders across the project. Create a new agent and do any prompt. Even something as simple as “hi” would cost $5, but being very specific and quoting a specific file (e.g. Ctrl+L) has the same problem.
Expected Behavior
Only the relevant AGENTS.md rules are loaded for a given prompt. In older versions of Cursor before 3.6, I had never seen this issue.
Screenshots / Screen Recordings
Operating System
Windows
Version Information
Version: 3.10.17 (user setup)
VS Code Extension API: 1.125.0
Commit: c89f45b831621cdc5e951694db44fecd8fab1150
Date: 2026-07-05T06:39:45.228Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Opus 4.8
Does this stop you from using Cursor
Yes - Cursor is unusable

