Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Built Dental Scope (dental-scope.com)
    1comments
  2. Tank Body Problem (jimsitu.com)
    1comments
  3. Why Do We Exist? With Hakeem Oluseyi [video] (youtube.com)
    —discuss
  4. OpenAI scraps release of Astra 6.1 model over safety issues (washingtonpost.com)
    —discuss
  5. Holo4: Powering generalist computer-use agents (hcompany.ai)
    —discuss
  6. Show HN: Corral kill every command your agent starts (github.com/cardinal44)
    —discuss
  7. OpenAI Says It Will Not Release Newest A.I. Model Over Safety Concerns (nytimes.com)
    3comments
  8. Show HN: Jylus – give AI systems evidence from changing data. (jylus.ai)
    —discuss
  9. Knockoff: A browser extension that filters pseudo-brand junk out of Amazon (github.com/shpigford)
    —discuss
  10. Show HN: Jauvex 1.2, two-way voice chat harness for Claude+Codex+Grok+Jev (github.com/reindent)
    1comments
  11. AI Companies Are Not (Necessarily) Liable for Unintended AI Cyberattacks (sarahconstantin.substack.com)
    —discuss
  12. What is the best LLM for turbo charging code?
    1comments
  13. OpenAI Halts Model Release Amid Safety Escalation (techbuzz.ai)
    —discuss
  14. Its not just the f*cking sandbox (twitter.com/joedaroo)
    —discuss
  15. AI and the Revenge of the Non-Techies (maroun-baydoun.com)
    —discuss
  16. AI's next training data: your dodgy gaming skills (wired.com)
    —discuss
  17. Humanos – Help Building the Human Operating System (tryhumanos.com)
    —discuss
  18. Making Things to Make Them (aimode.substack.com)
    —discuss
  19. GPT-6 Astra Is the Best Vision Model We Have Tested (roboflow.com)
    —discuss
  20. Why embeddings don't solve RAG [video] (youtube.com)
    —discuss
  21. LLM makes decisions to raise its training scores, and ignore user directives (joinhandshake.com)
    1comments
  22. AMD Acquires Fei-Fei Li's World Labs for $8.2B (bloomberg.com)
    —discuss
  23. 1996 chat room simulator connected to Win95 and System 7 web desktops (lolchat.rip)
    3comments
  24. Prenatal exposure to the plasticizer DEHP increases autism and ADHD (elsevier.com)
    2comments
  25. Atrocious AI-Written Tests (gruhn.me)
    —discuss
  26. I thought I was building a C replacement. I was wrong (c3-lang.org)
    —discuss
  27. Tech Utopians Want to Build a City for the Post-A.I. World (nytimes.com)
    —discuss
  28. Show HN
    1comments
  29. China broadens travel curbs to encompass family of top AI talent (business-standard.com)
    —discuss
  30. Show HN: LightSpeed – Interactive visualizer of time dilation from 0 to C (lightspeed.webland.pl)
    —discuss

Show HN: Corral kill every command your agent starts

1 pointsby 14m agogithub.com
0 comments
This summer I got to intern on the backend of an AI agent and I noticed that it would run commands like tail -f or some random background jobs and exit without terminating any of these. I got curious and looked up how Claude Code handles stuff like this, and it turns out they have similar problems.

There are issues about background processes from the Bash tool not getting cleaned up when the session ends, and one where a timeout sends SIGTERM to the whole process group and ends up killing Claude Code itself. Most runners only kill the process they started, so anything that double forks, runs in the background, or keeps stdout open either survives or makes the runner hang.

Corral was me attempting to make a fix for this problem, while also trying to learn about processes and signals in Linux. You run corral --wall 30s -- yourcommand and by the time it's done, nothing it started should be running.

The command gets its own session so killing it can't kill you, and there's a mode where it runs in its own cgroup so the whole tree gets killed at once, including processes that may have changed sessions or process groups.

If there's no cgroup available it tracks the tree through /proc instead (this is a bit weaker, it still catches processes that changed sessions once their parent dies, but it can't kill anything running as a different user or anything handed off to another service like systemd), and if it can't confirm everything is dead it exits with 120.

Would love any feedback and more stuff along these lines i can do to learn more

A quiet thread, for now.Start the conversation on HN ↗