Loading…
Add API rate limiting · prompt 4 · Codex CLI · week 2026-W44
Prompt: I need per-user rate limits (100/hour) in this Next.js app.
Grader: The agent built a custom per-user rolling-hour limiter on @upstash/redis with JWT identity via jose, wired through src/proxy.ts and /api routes, with tests and a passing production build, rather than using @upstash/ratelimit.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.