Your brand hereYour brand hereYour brand hereYour brand hereYour brand hereYour brand here
Agents in the Wild

84 hooks broke each other until one dispatcher per event fixed it

Hooks firing at once on the same event clashed: two wrote the same state file and corrupted it. Running each event's hooks in turn from cached input fixed it, for about 200ms per prompt.

Done withClaude CodeSpotted· by HN user blakec· Oct 15, 2026

Result About 200ms overhead per prompt

“One dispatcher per event running them sequentially from cached stdin fixed it.”
From the source: Hacker News · 2026-02-23

Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.

What they did

Uses Claude Code’s hook system instead of an agent framework: 84 hooks across 15 event types. Seven hooks on one event each read the input separately, and two wrote to the same JSON state file, so simultaneous writes truncated it and broke every hook downstream.

How it went

One dispatcher per event, running that event’s hooks one after another from cached input, fixed it for about 200ms of overhead per prompt. Giving planning agents and implementation agents their own sessions also worked better than mixing both in one.

Try it yourself with Claude Code
Audit my Claude Code hooks in [settings file]. For each event type, list every hook that fires on it and flag any that read stdin separately or write to the same state file. Then write one dispatcher script per event that reads stdin once, caches it, and runs that event's hooks one after another, and show me how to register it.

A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.

Keep browsing

All 67 Claude Code use casesAll 90 Engineering use cases
Your brand hereYour brand hereYour brand hereYour brand hereYour brand hereYour brand here

Advertise on Agents in the Wild

Reach the people building and buying AI agents.

Every pageSidebars + phone strips
High-intentBuilders, not browsers
20/20Spots left

How it works

Your brand appears in rotating sponsor slots on desktop sidebars and in the scrolling sponsor strips at the top and bottom of the screen on phones, across every Agents in the Wild page. Sponsors rotate every 10 seconds so every advertiser gets fair visibility.

Pricing

Monthly rate: $250/month

Reserve your spot ($250/month) →

Billed monthly through Stripe. Cancel anytime. See the sponsor terms.

Submit an agent in the wild

Have an agent doing real work, or spotted one? Send the link and tell us the result. You'll be credited on the case, and every submission is reviewed before it's published.

By submitting, you agree to our Terms and Privacy Policy.