A clearer view of AI.
Submit for reviewSubscribe

WEEKLY NEWSLETTER

The AI Insider

A weekly round-up of the AI tools worth your time, and the hype to ignore.

Unsubscribe at any time using the link in each newsletter.

THE INDEPENDENT AI.

COMMUNITY PICK · 21 NOVEMBER 2026

A prompt to clean up the comments your coding agent leaves behind

21 November 2026, 00:11 · 1 source · Curated by Sara Simeone

@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

  1. FROM THE COMMUNITYAn Anthropic mathematician says he proved the Riemann Hypothesis with Claude, and the computer checks agree so far
  2. FROM THE COMMUNITYInkling 2 Mini: a strong open model small enough for a well-specced laptop
  3. FROM THE COMMUNITYPerplexity's agent can now work inside your own Chrome, Edge, Brave or Arc
  4. FROM THE COMMUNITYHow OpenAI stops rivals copying its models
  5. FROM THE COMMUNITYGemini subscriptions should start working in other coding tools from 2 December
  6. FROM THE COMMUNITYOpenAI's new test for AI in drug discovery
All community picks ↗