Limitcast 0.20.10 is now available on GitHub and npm. The question behind this test was simple. With a per-session cap of one, how many subagent starts get through when six requests arrive together?
What happened at the guard
The old race was between checking the count and reserving a slot. Several processes could read the same count before any of them reserved it. In 0.20.10, the guard checks and reserves a slot together. It counts requests as it admits them, without waiting for usage receipts.
We sent six synthetic requests of the same subagent type into one session, repeating the test with each host’s event format. Here are the decisions from the guard in the published npm package.
Claude Code 1 admitted, 5 held
Codex 1 admitted, 5 held
Grok 1 admitted, 5 held
This exercised the guard directly. A live session needs the host’s guard hook installed and active.
Set a per-session cap
Use Node.js 22 or later. This example caps new Explore subagents at one per session.
npm install -g limitcast@0.20.10
limitcast install --guard
limitcast budget type explore 1
Restart your host to load the hook. In Codex, approve the hook when prompted. Run limitcast budget type explore to read back the saved setting.
When a start is held, would you rather see which earlier starts used your slots in the hold message, or look them up with a command afterward?
Read the Limitcast weekly update
This article was drafted with AI using verified release and test results.
Top comments (0)