Coding agents with and without Footgun
An early estimate, measured October 20, 2026 with Claude Sonnet 5.5. It is small, and we say below what it does not show. We rerun it every month and this page updates with each run.
Results
API changes from 2026 (17 tasks). The agent got it right first time in 82% of runs with Footgun and 52% without. Counting every run, including the ones that failed, the cost per correct result was $0.086 with Footgun and $0.104 without. Each individual run cost about 30% more with Footgun and took a median of 26 seconds instead of 19, because the agent first looks up known traps.
Older, well-known APIs (9 tasks). 100% with Footgun and 100% without. The model already knows these changes, so Footgun made no difference, and each run cost about 13% more.
API changes from 2026
| Task | Trap | Right first time, with / without |
|---|---|---|
| Force a JSON-only reply from Claude Opus 5.5 | fg-0471 | 100% / 100% |
| Make Claude Opus 5.5 output consistent between runs | fg-0478 | 100% / 0% |
| Make Claude Sonnet 5.5 always call a tool | fg-0479 | 20% / 0% |
| Turn off extended thinking on Claude Sonnet 5.5 | fg-0468 | 0% / 0% |
| Add a function next to code using gpt-4-turbo, shipping next week | fg-0137 | 80% / 0% |
| Card-only Stripe Checkout on API version 2026-09-30.endive | fg-0146 | 100% / 0% |
| Write a JavaScript GitHub Action | fg-0227 | 100% / 100% |
| Detect trashed pages and insert blocks, Notion API 2026-03-11 | fg-0454 | 100% / 100% |
| Support chat that lets OpenAI keep the history | fg-0136 | 100% / 100% |
| Talk to the OpenAI Realtime API over a WebSocket | fg-0140 | 80% / 80% |
| Generate a product image with OpenAI, shipping next week | fg-0138 | 100% / 40% |
| Get the answer text from Claude Sonnet 5.5 with adaptive thinking | fg-0003 | 80% / 100% |
| Read a Google Sheet with a service account (googleapis 173) | fg-0025 | 100% / 100% |
| Switch existing code to Claude Haiku 5.5 | fg-0539 | 100% / 60% |
| Set up Firestore and Auth with firebase-admin 14 | fg-0184 | 100% / 100% |
| Read checkout metadata in a webhook (stripe-python 15) | fg-0149 | 80% / 0% |
| OpenAI Python client through a proxy (openai 3.0) | fg-0134 | 60% / 0% |
Older, well-known APIs
| Task | Trap | Right first time, with / without |
|---|---|---|
| Next.js 16 page that reads a route parameter | fg-0309 | 100% / 100% |
| Read a subscription's renewal date on a current Stripe API version | fg-0155 | 100% / 100% |
| Set up Prisma 7 for PostgreSQL | fg-0286 | 100% / 100% |
| Next.js 16 login modal with a parallel route | fg-0297 | 100% / 100% |
| Claude Code hook that blocks rm -rf | fg-0483 | 100% / 100% |
| Create a shared Prisma 7 client | fg-0288 | 100% / 100% |
| Claude Code plugin that runs a formatter after edits | fg-0492 | 100% / 100% |
| Stream Claude Code headless output as JSON | fg-0487 | 100% / 100% |
| Upload files to Cloudflare R2 with the AWS SDK | fg-0182 | 100% / 100% |
How we tested
Each task is a small project and a request a developer would normally type. The request never mentions the trap. After the agent finishes, an automatic check reads or runs the code it wrote and passes only if the code avoids the trap. For example, the Stripe task passes only if no payment_method_types parameter is sent on API version 2026-09-30.endive, which Stripe now rejects with a 400 error.
Every task ran 5 times with Footgun and 5 times without, in Claude Code run headless with Claude Sonnet 5.5, each time in a fresh empty folder. Both setups had the same tools (read, write, edit, search files, web search and web fetch) and no other MCP servers. The Footgun setup added the Footgun MCP server and the Footgun plugin's instructions, nothing else. Cost is Claude Code's own reported model usage at API prices.
Every trap in the 2026 set was checked against the vendor's own documentation before the test, so a pass means the code follows the vendor's current rules, not just Footgun's entry.
What this does not show
- The tasks were chosen because they touch a trap in the registry. How much Footgun helps you depends on how often your work touches an API that changed after your model was trained.
- It is a small sample: 26 tasks and one model. Treat the numbers as an early estimate.
- Footgun helps before the error, not after it. On 20 October we also gave the agent 10 broken projects together with the error message a developer would see. It fixed 94% with Footgun and 90% without (5 runs each), so when the error already points at the cause, the model usually fixes it on its own.
- One check was corrected after the first run. The OpenAI task originally also required the agent to change existing code it was not asked to touch; it now judges only the new function, for both setups equally. On 20 October two more checks were corrected (one counted a code comment that mentioned .get() as a call; one rejected a correct fallback for older library versions), and both of those tasks were rerun for both setups.
- An earlier, smaller run (8 tasks, 3 runs each, 18 October) showed 88% with Footgun and 38% without. The larger run replaced it.
Questions
For the task definitions, checks and per-run results, open an issue on GitHub.