frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Corral – Kill every command your agent starts

https://github.com/Cardinal44/corral
12•CG144•23h ago
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

Comments

pmoriarty•45m ago
Why not the timeout[1] command?

[1] - https://www.man7.org/linux/man-pages/man1/timeout.1.html

Livenerf: Has Opus 5.5 been nerfed yet?

https://github.com/ninjahawk/livenerf
130•bryan0•1h ago•69 comments

NASA asked several former SR-71A staffers to help secret restart

https://aviationweek.com/defense/aircraft-propulsion/nasa-asked-several-former-sr-71a-staffers-he...
34•ilamont•14h ago•16 comments

U.S. postal inspectors shut down website selling counterfeit postage labels

https://postalemployeenetwork.com/news/2026/09/26/u-s-postal-inspectors-shut-down-website-selling...
157•ilamont•4h ago•85 comments

Show HN: A working 3D model of an Enigma machine

https://enigma.design
23•primitivesuave•7h ago•1 comments

GPT 6.1 Sol: Near-Astra intelligence for a fifth of the price

https://openai.com/index/introducing-gpt-6-1-sol/
754•crorella•7h ago•699 comments

Vermont replacing power plants with home batteries

https://www.bbc.com/future/article/20260928-a-virtual-power-plant-hidden-in-vermont-homes-is-keep...
46•devonnull•6h ago•26 comments

Show HN: Real-time Solar System with 526k asteroids and all tracked satellites

https://space.bl2.net/
90•wanick•5h ago•25 comments

America.gov

https://america.gov/
306•plesiv•10h ago•249 comments

We’re forgetting what darkness feels like

https://www.theguardian.com/environment/2026/sep/29/night-sky-darkness-city-regulation
30•pseudolus•6h ago•20 comments

How Delhi cut electricity loss from 50 to 5 percent

https://spectrum.ieee.org/delhi-electricity-loss
425•rbanffy•11h ago•248 comments

NAND-16: a computer built from 277,248 NAND gates

https://somethingbig.ai/computer
106•rossant•2d ago•55 comments

UnoDOS

https://github.com/hmofet/unodos
12•nicoloren•2h ago•7 comments

Language models for text classification: From bag-of-words to Jev

https://magazine.sebastianraschka.com/p/classifier-history-and-jev
18•Anon84•13h ago•0 comments

Needed 1+1, built a functional programming language

https://hereticpleb.vercel.app/blog/needed-one-plus-one/
14•birdculture•8h ago•1 comments

When oil prices spike, where does the money go?

https://theconversation.com/when-oil-prices-spike-where-does-the-money-go-280763
16•thelastgallon•20h ago•4 comments

PS5 Relapse Exploit

https://github.com/ntfargo/Relapse-Exploit
223•therepanic•8h ago•122 comments

A Privacy Analysis of Web and Mobile Conversational AI Agents [pdf]

https://jorgegarciaherrero.com/wp-content/interactivos/20260916-Prompt-like-a-butterfly-sting-lik...
407•damaru2•15h ago•128 comments

Backblaze drive stats for Q2 2026

https://www.backblaze.com/blog/backblaze-drive-stats-for-q2-2026/
56•HieronymusBosch•10h ago•4 comments

Phyllotaxis: An audio-reactive LED display

https://jagi.studio/posts/phyllotaxis/
257•evakhoury•1d ago•43 comments

Commodore 64: Mercenary

https://gamesexplained.com/c64/mercenary/
22•a1r•3d ago•4 comments

Tcl/Tk 9.1

https://www.tcl-lang.org/software/tcltk/9.1.html
230•dmux•7h ago•79 comments

Ask HN: What are you reading?

120•dan-bailey•10h ago•322 comments

How our vibe coded website looks like a designer made it

https://railcode.dev/blog/vibe-coded-website
48•yakkomajuri•1h ago•29 comments

Show HN: Corral – Kill every command your agent starts

https://github.com/Cardinal44/corral
12•CG144•23h ago•1 comments

Show HN: NSL – WSL for Linux

https://frostyard.github.io/nsl/
77•bketelsen•9h ago•58 comments

Virus Stole a Human Gene and Won't Let Go of It

https://www.nytimes.com/2026/09/28/science/virus-molluscum-human-gene.html
79•gumby•1d ago•28 comments

A Staff Engineer's Guide to Inventing Work

https://sujithjay.com/inventing-work
177•amortize•1d ago•36 comments

Dots: Always-on agents

https://openai.com/index/introducing-dots/
451•alvis•7h ago•341 comments

Stuck in the Suez Canal – the short version (2021)

https://cathsenker.co.uk/stuck-in-the-suez-canal-the-short-version/
36•joebig•2d ago•2 comments

Jeeves. Reasoning improves Jev-like decision models

https://github.com/PostHog/jeeves
220•nicowaltz•13h ago•85 comments