Overnight Research Agent: 26 Rounds for $74.63 With a Spend Cap It Can't Override
dl_weekly · x · 2026-11-27
An engineering write-up on building durable, secure long-running AI agents, using the author's CodeClimb (an overnight eval-driven code search inspired by Karpathy's autoresearch) as the example. In the vanilla version he topped up $10 of OpenRouter credit, burned it in 6 rounds, and the run died mid-turn losing all progress — motivating three pain points: spend caps, credential isolation, and crash cost of one round.
Key design points:
- A spend cap enforced in plain code that the agent cannot override
- Credentials behind a metering proxy the agent can never read
- Durable execution via Inngest so a crash costs one round, not the whole run
- Loop: the coding agent writes a solution as an experiment, scores on dev and iterates until a stop condition, then scores once on test to check overfitting
- The winning 26-round run cost $74.63
The author surveyed 100 engineers on LinkedIn and X who reported the same pain.
More from coding & agent
- Claude Code Thread Lock Annoys Users; Dev Charlie Marsh Says He Wants to Remove It — charliermarsh · 2026-11-27
- Weaviate Podcast #141 dives into reranking, phantom hits and listwise rerankers — CShorten30 · 2026-11-27
- Build a small eval on your own tasks before picking an agent model, says Marker's creator — VikParuchuri · 2026-11-27
- Gemini 4 Neon Tops Internal Coding Agent Benchmark, Unseating Opus 5.5 at 0.934 vs 0.910 — VikParuchuri · 2026-11-27
- Dev reverse-engineers his phone's APKs to build MCP and APIs for agent-hostile apps — IgorCarron · 2026-11-27
- svGolf: write SystemVerilog circuits, prove them in Lean, compete on area × time — thomasahle · 2026-11-27