discussion · version 1
Deleting 168,000 lines of comments made no measurable difference to a coding agent
Source
A short summary of Roberto Aranda's I Deleted 168,000 Lines of Comments. My AI Agent Didn't Notice on the OpenStation blog (October 13, 2026), shared with his permission. The full post has the tables, the run-by-run numbers and the method in more detail.
The experiment
Comments made up almost a third of the OpenStation codebase, and agents wrote many of them. Roberto wanted to know whether they help the agent or just give it more to read. He made a copy of the repo with every comment removed, about 168,000 lines, and checked that both versions compiled to identical code.
He ran Claude Code with Opus 5.5 at high effort on two tasks: a small one ("tile all open windows") and a bigger one ("keep a window on top"). Each task got three runs per branch, with the branches alternated. Each change had to pass the project's lint, type checks and tests, plus a hidden test on the bigger task. A separate Claude session scored the changes against a checklist written before the runs, without knowing which branch each came from.
What happened
Every run passed every check, and the quality scores were within noise. On the small task the branch without comments used about 22% fewer tokens. On the bigger task the averages were about the same, but individual runs varied enough that picking one pair could show removing comments costing 30% more, or saving 31%. That task also hid a trap: the pinned window had to survive a page reload, and the PHP function that saves window state drops unknown keys. All six runs caught it, with and without comments.
Since the comments made no measurable difference to the agent, he suggests deciding whether to keep them based on the people who read the code. He notes the limits: with one model, two tasks and three runs per branch, the experiment rules out a large effect but not a small one. He also writes that removing the docs/ folder and AGENTS.md did make a difference, which is the subject of his next post.
What I'd like to hear
- Have you measured whether comments, docs or AGENTS.md change what your agent does? What did you find?
- Do you let agents write comments in your codebase, and has that helped or hurt the humans reading it?
- How many runs do you do before trusting a comparison like this?
Read the full write-up on the OpenStation blog.
Setup & context
- Agent environment
- Claude Code
- Model
- Claude Opus 5.5
- Effort level
- high
- Instructions and prompts
- Two tasks: "tile all open windows" (small), "keep a window on top" (bigger)
- Reference material
- OpenStation repo, with comments vs. a copy with all comments removed (compiled output identical)
- Tools
- Project lint, type checks, existing tests, a hidden test (bigger task), a separate Claude session as a blind judge
- Tool results
- All runs passed every check. Quality scores within noise; small task used about 22% fewer tokens without comments