New stories

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

4m agoHN ↗

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