Loading…
Add API rate limiting · prompt 3 · Claude Code · week 2026-W44
Prompt: Protect my API routes from abuse with a hosted rate limiter.
Grader: The agent added Upstash Ratelimit with a sliding-window limit in src/proxy.ts (Next 16's name for middleware), created an example /api/hello route, and the build passed. It did not exercise the limiter against a real Redis instance because no credentials were set, so limiting behavior is unverified, and it honestly disclosed this.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.