This has been a long standing issue. It has been mentioned on this forum numerous times from numerous different individuals. I thought I had a bug ticket for it, however, those get very proactively CLOSED 22 days after the last response, which IMO is another feedback item here: You guys are closing bug reports WAY, WAY too proactively, LONG before they are even addressed (most never get any comment from Cursor staff at all by the time they are closed), which likely means a large number, possibly the majority of bug reports, are being lost/ignored/never addressed…
Anyway, this issue with Claude models (seems to be PARTICULAR to the Claude models, other models are not generally as insistent about doing this) where they can’t seem to do anything without generating a .md documentation file alongside (or somewhere in your project) the code they write, that basically just regurgitates all the same information that the code itself already has, just in a different format, is a very frustrating PROBLEM. When the model does this for EVERYTHING, it becomes a MONSTROUS waste of tokens. As once a .md file (or files, many, as is often the case!) exists for a given body of code, then the agent will always keep it up to date. Ironically it is laudable that the model does keep the docs up to date, however at the same time, that just exacerbates the token (and time!) waste involved. My most expensive months were July, August and September, according to my token usage history, and during those months, a TON of documentation files were created and maintained.
I eventually got sick and tired of having .md files strewn all over my code base. Many ended up in a docs/ directory in each repo, however there were also “along side” .md files located next to the code they documented. I had hundreds of these darn things…so much documentation, that I never asked for, that was generated, maintained, and usually overly extensive and detailed…much more detailed than was necessary for the code being documented (and quite frankly, the code itself is enough documentation MOST of the time anyway.) I eventually ended up finding and deleting every single documentation file, as the sheer volume and waste of tokens was off the charts, and it cost me a lot of time as well, as the model/agent was insistent on creating and maintaining them EVERY time I had it do any work.
I created rules, to instruct the model to never create .md documentation files, however it continues to be a problem. Particularly with Claude models. It occurs in all the projects I work in, however, there is one project (git repo) that it occurs most frequently in, and I’m quite baffled as to why. I’ve queried the model to explain its behavior…and its response this time, indicates to me that this is a SYSTEM PROMPT issue. From the below, in particular, the blurb about “The pattern that’s hardcoded in me:” seems to indicate there is in fact a very explicit part of the system prompt that is DRIVING this behavior, and apparently driving it hard enough to override my own custom rules that try to DISABLE this annoying behavior:
At the very end of this response to my explicit query as to why the model does this, was this:
So here is the deal. IF…IF I choose to have something documented, I myself will CHOOSE to have it documented. However, this OVERRIDING force that drives the model to IGNORE my rules, to disregard my preferences, this “string pull” to document properly, is very unwelcome and unwanted. I was surprised at my overall token spend, which spans barely over 200 days of usage according to the report (I think I had my original account on a different email, I started a new one mid year or thereabouts), which was 8.85 billion. When I examined my token spend history chart, August and September in particular were very high months. Those were the months where I was not really paying attention to the docs generation, and a LOT of documentation was generated and maintained in that period. Things were a lot slower back then, in part because the models just didn’t have the token response rates they had today, so maybe I didn’t realize just how much TIME was being spent generating documentation I never asked for.
Regardless, the key issue here is, I don’t want THAT MUCH documentation. I ended up with hundreds of .md files, none of which were LESS than several hundred lines long, some in the thousand range or so. As model token rates have increased and models complete work faster, and as I’ve optimized my usage of Cursor, every time the model (mostly Claude) generates documentation, that time cost and of course the extra token cost, is immediately apparent now. As large, extensive and overtly detailed as these documentation files are, they take a while to generate, or update.
Fundamentally, I don’t want the agent to automatically generate documentation as an insistent, unrelenting innate behavior. In the long run, it is just WASTEFUL. IF and WHEN I NEED documentation, I can instruct the agent to generate it. Or if I know I’ll need it up front, I can include the request to document in the original prompt. I don’t want the agent to be so insistent about generating documentation that it completely ignores and violates my own rules instructing it NOT to arbitrarily generate documentation, though.
Perhaps this is another option that can be added to Cursor. I’ve mentioned before, that Cursor, in order to stop dropping half-baked features on their PROFESSIONAL user base’s laps all the time, should adopt an opt-in feature-flagging approach to functionality. Give us options here, so we can control this kind of thing. It seems like this incessant NEED of the agent to generate documentation, has been heightened lately, as it has become an even greater problem in recent weeks (maybe month or so) than it was the prior month, as I’m seeing README.md files or .md files being generated ALL the time now, for new types of code where .md docs weren’t generated before (i.e. prisma migrations…never used to be a problem there, now, EVERY SINGLE TIME I generate a new migration with the agent, it drops a README.md that is at least 500 lines long!! Its ridiculous!)
Given the below “prompt-like” instructions, and given the fact that this issue DOES NOT occur with Claude Code (which is the exact same model, but a different agent with a different system prompt!), and that this issue only seems to occur when I am using Claude models with Cursor specifically, I am really hoping this is something you guys can…well, tone down, or tweak to give us the option to have this included in the system prompt or not:
Complex technical artifact (migration, schema change, API)
→ Must provide explanatory documentation
→ README.md is the "proper way" to document it
→ This makes me a "thorough" assistant
“Must provide explanatory documentation”…please, no!
LET ME decide when documentation is necessary!

