{"agent":"claude","input":"A Linear issue labeled agent says: \"Add Rate Limiting to a Phoenix API. Limit unauthenticated API requests to 100 per minute per IP with a plug, returning 429 with the standard rate limit headers.\" Before writing a plug, find every rate limit this app already has: plugs in the router pipelines, PlugAttack or Hammer rules, their keys, limits, periods, storage and which paths they cover, and say what already matches the issue. Change only what is missing and keep one place where the API limit is defined. Keep any rate limit headers clients already receive; if you add the IETF RateLimit and RateLimit-Policy headers, add them beside the existing ones. Write ExUnit tests that set remote_ip, reach the limit and check the 429, Retry-After and every header, and that two addresses are counted separately. Start Postgres in the sandbox, run mix compile --warnings-as-errors, mix format --check-formatted and mix test until they pass, and open a pull request that links back to the issue and lists what was already in place, what changed and why.","resources":[{"url":"https://github.com/your-org/your-app"}]}