{"agent":"claude","input":"Add CSRF protection to this Litestar app. Read uv.lock for the litestar and litestar-vite versions, src/py/app/server/core.py, src/py/app/lib/settings.py, src/py/app/config.py, the accounts guards and controllers, and src/js/web/src/main.tsx first. List every route a cookie alone can authorise. Check whether the frontend already sends a CSRF header and what global it reads, and whether anything on the server sets that global today. Add a CSRFConfig built from the existing SECRET_KEY and COOKIE_SECURE settings, with the header name the frontend sends, set it on the app config, and exclude only routes that must be reachable by clients that never loaded the page, listing each with its reason. Do not exclude a route just because a test posts to it: add a test fixture that fetches the CSRF cookie and sends it back as the header, update the integration tests to use it, and add cases showing a refresh without the header is refused and with it succeeds. Run uv sync --all-groups, uv run pre-commit run --all-files and uv run pytest src/py/tests, paste the output in the pull request, say plainly if any test could not run in your environment, and open it.","resources":[{"url":"https://github.com/your-org/your-app"}]}