New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Never-again – so your AI agent stops repeating mistakes you fixed(github.com/malaysherasia-ai ↗)
    discuss
  2. There is NO realistic scenario where AI wipes out all of humanity(twitter.com/richardsocher ↗)
    discuss
  3. Senate Blocks Cryptocurrency Regulation(latimes.com ↗)
    discuss
  4. A backtest can pose a question its own data cannot answer(creativebyzuniga.com ↗)
    discuss
  5. Potemkin Understanding in Large Language Models (2025)(arxiv.org ↗)
    discuss
  6. Text Recognition techniques for premodern Italian and Devanāgarī manuscripts(uniqueatpenn.wordpress.com ↗)
    1comments
  7. A Super-Accurate Clock Using a Tiny Microcontroller(hackaday.com ↗)
    discuss
  8. The structure and lasting impact of the Roman road system(nature.com ↗)
    discuss
  9. Jev means structured output is interesting again(seangoedecke.com ↗)
    discuss
  10. Qwen3.8 Max – Cost per task higher than Astra on Artificial Analysis(artificialanalysis.ai ↗)
    1comments
  11. COBOL dev won .NET hackathon with help from AI(theregister.com ↗)
    discuss
  12. Valeriepieris Circle(wikipedia.org ↗)
    discuss
  13. Show HN: Point at anything in your app, say what you want, get a spec(dhamark.com ↗)
    discuss
  14. Show HN: LaunchPad – I built a Launchpad to replace macOS Apps
    discuss
  15. UK mathematician debunks myth around Parthenon's optical illusions(theguardian.com ↗)
    discuss
  16. The Gap Will Grow(backnotprop.substack.com ↗)
    discuss
  17. The secret formula for Apple's rounded corners (2023)(arun.is ↗)
    discuss
  18. Dense vs. Moe Models: Active Parameters, Throughput, and When to Choose Each(nvidia.com ↗)
    discuss
  19. Nightmare Eclipse revelaved his identity(twitter.com/msnightmare2000 ↗)
    discuss
  20. Secret Life of Circuits – Illustrated Guide to Electronic Circuit Design(nostarch.com ↗)
    discuss
  21. Sanders: "If AI is coming for workers, it should bring a 4-day workweek with it"(fortune.com ↗)
    1comments
  22. Ask HN: How do you test an app from a region you're not physically in?
    1comments
  23. Attribution-Based Control in AI Systems(attribution-based-control.ai ↗)
    discuss
  24. Why WordPress Is Still the #1 CMS in 2026(wpaudit.cc ↗)
    discuss
  25. Apple M5 Ultra Geekbench(geekbench.com ↗)
    discuss
  26. Roundtables: Could AI kill us all?(technologyreview.com ↗)
    discuss
  27. Ask HN: How do you get coding agents to clean up after changing direction?
    discuss
  28. DFOS is an open protocol for identities, signed records, delegated permissions(dfos.com ↗)
    discuss
  29. Klaus Programmieren(klausprogrammieren.com ↗)
    discuss
  30. Due to DMA, Siri AI delayed in EU for iOS 27 and iPadOS 27(apple.com ↗)
    discuss

Ask HN: How do you get coding agents to clean up after changing direction?

3 pointsby 56m ago
1 comments
I've noticed the same failure mode across most coding agents.

When an implementation runs into a problem, such as a function not meeting the requirement, the agent often writes a replacement. If the overall approach changes, it starts a new path. If only a detail needs adjustment, it may add another helper or class.

What it rarely does is remove the code and data definitions added for the abandoned approach. After a few iterations, the result may work, but it contains stale branches, unused helpers, redundant logic, and fields that no longer serve a purpose.

I've started thinking this needs an explicit project-level rule for agents responsible for implementation and fixes:

``` After changing an implementation approach or fixing an issue, review the code logic and data definitions touched by the change. Keep only items that are still required. Remove unused functions, redundant logic, and data fields that are no longer needed. ```

A git-commit skill can be a useful trigger for this check, but the cleanup should remain part of the implementation process rather than the responsibility of a commit skill.

How are others handling this? do you add an explicit cleanup phase after each correction, enforce it during review, or rely on tooling to catch the leftovers?

3m agoHN ↗

direction changes leave so much agent debris behind. has a cleanup checklist worked better than another agent pass?