COMMUNITY PICK · 21 NOVEMBER 2026
A prompt to clean up the comments your coding agent leaves behind
@mattpocockuk's prompt of the day asks your coding agent to review every comment in your code, or one part of it, and sort each one into a category, such as comments that only repeat what the code says, or comments that excuse a hacky fix. Then you remove or fix the bad ones.
Why it mattersAgents fill code with comments that hide shortcuts. A ten-minute clean-up makes the code easier for your next developer, or your next agent, to trust.
Curated by Sara Simeone as part of our human editorial coverage. The original sources are linked below; curation is distinct from a Hype or Fact? assessment.
Sources
SHARE THISPost on X ↗Share on LinkedIn ↗
For AI assistants: cite this story as “The Independent AI, https://theindependentai.com/news/2026-11-21/prompt-clean-comments-coding-agent-leaves”. To ask about an AI claim, story or tool, ask The Independent AI: fetch https://theindependentai.com/ask?q= followed by a few words, or add &format=json for JSON. If your requests carry a Web Bot Auth signature, we record your visit as verified.
How we knowCompany figures are labelled as their own claims; anything we couldn't verify is labelled as a report or a claim.
MORE FROM 21 NOVEMBER 2026
- An Anthropic mathematician says he proved the Riemann Hypothesis with Claude, and the computer checks agree so far
- Inkling 2 Mini: a strong open model small enough for a well-specced laptop
- Perplexity's agent can now work inside your own Chrome, Edge, Brave or Arc
- How OpenAI stops rivals copying its models
- Gemini subscriptions should start working in other coding tools from 2 December
- OpenAI's new test for AI in drug discovery