Corral – Kill every command your agent starts
Details
- External ID
- 49886422
- Source
- HN
- Company
- —
- Product
- Corral
- Website domain
- github.com
- Launched
- Sept. 29, 2026
- Cohort
- —
- Upvotes
- 12
- Upvotes percentile
- 0.6419457735247209
- Tags
- —
- Fetched at
- Sept. 30, 2026, 5:01 p.m.
- Updated at
- Sept. 30, 2026, 5:01 p.m.
Description
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
Enrichment
- Theme
- Claude integrations and coding agents
- Vertical
- Security
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Hobby / open-source project
- Normalized one-liner
- process isolation and termination tool for ai agents
- Manually corrected
- False
Could you build this?
Yes Corral is a process supervision utility that tracks and terminates spawned subprocesses/process groups, a well-defined systems task easily generated by an AI assistant.
Discussion
2 comments analyzed.
Competitors mentioned: timeout
Concerns raised: Redundant with timeout command, Low quality/slop
Competitors
Other products that read as similar to this one — 266 launches clear the similarity bar, closest 8 shown.
Attention rank: #115 of 267 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 318 days after the earliest competitor.
- Agentspace · hn · 2026-06-17 · 5 upvotes · similarity 0.50
- TokenControlPlane · ph · 2026-09-15 · 1 upvotes · similarity 0.50
- CCC · ph · 2026-09-10 · 3 upvotes · similarity 0.49
- Deadpath · ph · 2026-09-24 · 3 upvotes · similarity 0.48
- Replicas · ph · 2026-06-03 · 241 upvotes · similarity 0.45
- Executable Markdown files with Unix pipes · hn · 2026-01-09 · 126 upvotes · similarity 0.45
- Crank · hn · 2026-02-12 · 6 upvotes · similarity 0.45
- Lessons learned from running Claude Code swarms at scale · hn · 2026-06-05 · 10 upvotes · similarity 0.44
Other launches for this product
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.