{"agent":"claude","input":"Add rate limiting to this Gin API. Read hello.go, go.mod, users/middlewares.go, users/routers.go, common/utils.go and the existing unit tests first, and keep the layering hello.go uses. Add a middleware keyed by the client address with a token bucket per client, idle entries evicted, limits read from environment variables with sensible defaults, and a clock that tests can replace. Apply a strict limit to the user registration and login routes and a general limit to everything else, answer refused requests with 429, a Retry-After header and an errors body in the same shape as the other error responses, and set Gin's trusted proxies from an environment variable so the client address is right behind a proxy. Add tests with httptest and testify in the style of the existing unit tests: over the limit from one address, a second address unaffected, refill after the window, and the login route through the real handler. Run bash scripts/gofmt.sh, bash scripts/coverage.sh, go vet ./... and golangci-lint run, as the CI workflow does. Do not change go.mod beyond the one new dependency and do not change any workflow. Open a pull request that names the limits, the environment variables and the proxy setting, and quotes the test output.","resources":[{"url":"https://github.com/your-org/your-app"}]}