Article

Grok Bot engineering lead calls for deleting the vast majority of code comments:AI turning temporary patches into inherited rules

Beating AI Breaking News, Grok Bot engineering lead Lauren Tan called for deleting the vast majority of comments in code repositories. She believes that Coding Agent likes to imitate existing code. A comment explaining a temporary fix may be treated by subsequent Agents as the correct approach and copied repeatedly, ultimately spreading outdated patches and workarounds throughout the project.

Tan previously revealed in an interview that Dune, the development framework used by Grok Bot, has already banned code comments. She estimated that, of the AI comments she has encountered generated by 99%,PR when engineers merely asked a API not to use a specific implementation, the Agent instead wrote the instruction into a comment, leaving it for subsequent Agents to treat as a permanent rule.

For this reason, Tan recommends using the `/no-comments` Skill in the open-source pstack toolkit. It invokes a dedicated Agent to review comments, identify outdated explanations and temporary workarounds, and then address the root problem through refactoring. For example, an architectural requirement originally written in a comment can be changed into an automatically enforced Lint rule, or the type system can directly prevent an incorrect implementation.

However, necessary explanations may still be retained for external constraints that cannot be resolved independently, such as browser compatibility and third-party dependencies. Public https://m.theblockbeats.info/flash/371767