{"agent":"codex","input":"Find and fix N+1 queries in this Gin API and open a pull request. Read go.mod, hello.go, articles/models.go, articles/serializers.go, articles/routers.go, users/models.go, users/serializers.go, common/unit_test.go, .golangci.yml, scripts/coverage.sh and .github/workflows/ci.yml first. Turn on GORM's query logger and call GET /api/articles, GET /api/articles/feed and GET /api/articles/:slug/comments with seeded data; list every statement that runs once per row. Favorites are already batched; the per-author following check in users.ProfileSerializer is not. Add a BatchGetFollowingStatus function in users/models.go that answers for a list of user ids in one query and returns an empty map for an anonymous caller, add ResponseWithFollowing on ProfileSerializer, and use them from ArticlesSerializer.Response and CommentsSerializer.Response. Do not change the JSON shape of any response or the single-article and single-profile paths. Add a test in articles/unit_test.go that counts queries with a GORM callback and asserts the list and comments routes run the same number of statements for 5 rows as for 20. Run scripts/gofmt.sh, scripts/coverage.sh, golangci-lint run, gosec ./... and scripts/run-api-tests.sh, and paste the before and after query logs for GET /api/articles in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}