Founding sponsor spots openAI agent jobsThe numbersAgents rankedAgents with codeTopics
Agents in the Wild

A hook cut Claude Code's usage bursts from 365 agents to 27

Claude Code kept burning through its usage window in minutes. A hook now warns before oversized submissions and blocks sub-agents above 80% usage. Over 75 days, the worst burst fell from 365 agents spawned to 27.

Done withClaude CodeSpotted· by HN user zzyyxx332211· Oct 23, 2026

Result Requests over 500k tokens: 14.5% down to 0.6%

“the biggest burst fell from 365 agent spawned to 27, and requests over 500k tokens of context from 14.5% to 0.6%”
From the source: Hacker News · 2026-10-22

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

What they did

After repeatedly burning through their whole Claude Code usage window in a few minutes, they built a hook that checks for an expired cache and oversized content before a submission, suggesting a compact-then-send, and that blocks sub-agents from spawning once usage passes 80%. It tracks agents across every session on the machine and makes no network calls.

How it went

Over 75 days of use, the biggest burst fell from 365 agents spawned to 27, and requests over 500k tokens of context dropped from 14.5% to 0.6%. Lockouts still rose, since parallel main sessions also eat into the window.

Try it yourself with Claude Code
Write a Claude Code hook that fires before each submission: check whether the prompt cache has expired and the content is too big, and if so suggest compacting first. Also block new sub-agents from spawning once the usage window passes [80]% so you don't burn through your whole limit in minutes.

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.

★ 88 · MIT · TypeScript · Last update Oct 31, 2026

The builder's own repo, as the source says. We haven't audited this code. Read it before you run it.

Keep browsing

All 149 Claude Code use casesAll 309 Engineering use cases
Agents rankedAgents with codeTopicsFounding sponsor spots openAI agent jobsThe numbers

Hire here

Reach people who put AI agents to work.

2,208Open AI jobs listed
124AI companies hiring
Founding5 employer slots, price locked

Post a job

$299 for 30 days in its lane, on the jobs page and in Google's job search. $499 to pin it to the top of its lane and the homepage. Live within minutes of payment.

Post a job ($299) →

Featured employer slot

Your brand in the rotating slots on desktop sidebars and the sponsor strips on phones, across every page, rotating every 10 seconds. Your link carries ?ref=agentsinthewild, so you see every visit we send. $250/month; the first 5 keep that price for 12 months.

Become a founding employer ($250/month) →

Paid through Stripe. Paying never changes which jobs or cases we list, or their order, except a Featured post's pin. See the 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.