Loading…
Add API rate limiting · prompt 3 · Codex CLI · week 2026-W44
Prompt: Protect my API routes from abuse with a hosted rate limiter.
Grader: The agent wired a proxy.ts limiter for /api/* routes (60 req/min per IP, 429 with retry headers, 503 when unconfigured), and the build, tests, and lint passed. It stopped without Upstash credentials or a provisioned Redis, so the limiter fails closed with 503 until a user configures env vars by hand.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.