Claude Code agent test shows $0.0007 wake-up cost and inbox batching fixes errors
A technical blog post from the Claude Code Research Lab details a hands-on test of building an "always-on" AI agent using Claude Code v2.1.336 and Sonnet 5.5. The author implemented the five-component architecture described in an Anthropic article from November 13, using a fictional accounting firm as the test case.
Key points
- Minimal config wake-up cost was $0.0007, while usual config cost $0.07 to $0.09 due to cache misses.
- Inbox batching prevented duplicate replies and reduced costs to one-third compared to immediate event processing.
- Pre-send approval stopped all unauthorized sends, but simultaneous sends only flagged one message as pending.
The study focused on three key areas: cost efficiency, handling duplicate or conflicting requests, and pre-send approval mechanisms.
The results highlighted significant cost differences based on configuration. A minimal setup with effective caching cost approximately $0.0007 per wake-up event, whereas a standard configuration with uncached tokens cost between $0.07 and $0.09. Regarding reliability, processing events individually led to multiple incorrect replies when duplicates or corrections arrived within seconds. In contrast, batching events in an inbox resulted in a single correct response in all three test attempts, reducing costs to about one-third of the immediate processing method.
The approval system, using hook defers, successfully prevented unauthorized sends in all seven single-message sessions. However, a discrepancy emerged when sending two messages simultaneously: the system only flagged one as pending, requiring the model to manually check logs to ensure the first message was sent. The author notes these are small-scale tests (1-6 trials) and recommends using inbox batching and single-message sending instructions for safer deployment.
The story so far
4 episodes →- Claude Code agent test shows $0.0007 wake-up cost and inbox batching fixes errorsthis story

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Artificial Analysis launches Tokedex, an open‑source router for AI model selection · 2 src
- OpenCode beats Claude Code and Codex in one-month test · 1 src
- OpenAI Dot autonomously improves constant-weight code bound · 1 src
- Simon Willison discusses Python versions and Datasette Agent on Talk Python podcast · 1 src
- User pairs Gemini 4 Neon with Claude Code for coding workflows · 1 src
Comments
via GitHub Discussions