{"agent":"claude","input":"A Linear issue labeled agent says: \"Profile pages and the users API are slow; every user shows three count queries. Cache the follower, following and post counts and make sure they stay correct when someone follows, unfollows or posts.\" Do the work in this Flask app. Read config.py, app/__init__.py, app/models.py, app/main/routes.py, app/api/users.py, requirements.txt, tests.py and the Dockerfile first. Add Flask-Caching backed by the Redis the app already configures, memoize the three count methods, invalidate them on every write path including the API, keep the test configuration free of Redis, add unittest cases that prove both the caching and the invalidation, run the suite, and open a pull request that links back to the issue.","resources":[{"url":"https://github.com/your-org/your-app"}]}