New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Student suspended for bringing coffee to class in act of 'civil disobedience'(fox5ny.com ↗)
    discuss
  2. Show HN: Salmon – tray and desktop alerts for systemd services and custom checks(github.com/dimonomid ↗)
    discuss
  3. Demystifying the PCIe and CPU address space translation in Linux(nxp.com ↗)
    discuss
  4. A new privacy savy openrouter(openrouter.ai ↗)
    1comments
  5. Categorize Everything All at Once(iev.ee ↗)
    discuss
  6. Alan Kay's Answer To – Is AGI a Software Problem or a Hardware Problem?(quora.com ↗)
    discuss
  7. Billvy|Accounting software for business owners(getbillvy.com ↗)
    discuss
  8. Show HN: Musslop – turn any track into adaptive game-style music loops(github.com/siziff ↗)
    discuss
  9. I Put Nam A2-Lite Inside an iRig HD X(playtaurus.com ↗)
    discuss
  10. Show HN: On-device detector for fake lossless audio files (iOS)(apps.apple.com ↗)
    discuss
  11. Fractal basins trap latent reasoning(arxiv.org ↗)
    discuss
  12. Omarhy's work on Mac support, independent of Asahi(omarchy.org ↗)
    1comments
  13. Elm-CRDT – Pure-Elm Conflict-Free Replicated Data Types(github.com/gampleman ↗)
    discuss
  14. Lepton: Steam's tool for running Android games on Linux(steamos.cloud ↗)
    discuss
  15. Andrew Feldman on Building Cerebras and the Future of Chips [video](youtube.com ↗)
    discuss
  16. Anthropic's proposed AI watchdog METR has deep ties to Effective Altruism(nypost.com ↗)
    1comments
  17. Find every missing music royalty in under 5 minutes (and fix the issues)(usemogul.com ↗)
    discuss
  18. EU Floats Canada Becoming the Bloc's First 'Associate Member'(bloomberg.com ↗)
    22comments
  19. More people are seeking emergency care for gambling and it's mostly men and boys(cbc.ca ↗)
    discuss
  20. Mistral X Mozilla: Private, Multilingual AI Browsing(mistral.ai ↗)
    discuss
  21. Coding Agents Have Converged: Why the SWE-Bench Leaderboard Can No Longer Order(arxiv.org ↗)
    discuss
  22. AI safety beyond the frontier labs: uncensored local models(languageops.com ↗)
    discuss
  23. An updated look for the Raspberry Pi Desktop(raspberrypi.com ↗)
    1comments
  24. Gemini for Go Developers: Building Agents in Go(danicat.dev ↗)
    discuss
  25. iCloud+ Includes Apple TV, Arcade, and Curated Music Stations in 100 Countries(macrumors.com ↗)
    1comments
  26. Omarchy ships its own Linux kernel in v4.0.4(github.com/omacom ↗)
    discuss
  27. Organizing Context in a Multi-Agent Harness(langchain.com ↗)
    discuss
  28. Never-again – so your AI agent stops repeating mistakes you fixed(github.com/malaysherasia-ai ↗)
    discuss
  29. There is NO realistic scenario where AI wipes out all of humanity(twitter.com/richardsocher ↗)
    4comments
  30. Senate Blocks Cryptocurrency Regulation(latimes.com ↗)
    1comments

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

3 pointsby 1h 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?

47m agoHN ↗

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