{"agent":"claude","input":"Add the database indexes this backend is missing and open a pull request. Read backend/app/models.py, every query in backend/app/api/routes and backend/app/crud.py, backend/alembic.ini, backend/app/alembic/env.py, the existing revisions, backend/scripts and .github/workflows/test-backend.yml first. List every filter, join, order and cascade the code relies on, and for each one say which existing index serves it or that none does. For each missing index: declare it on the SQLModel model, generate a revision with alembic revision --autogenerate, then edit it so the index is created with postgresql_concurrently=True inside an autocommit block, is safe to rerun after an interrupted build, and is dropped concurrently in downgrade. Do not add an index no query in the code uses. Install PostgreSQL in the sandbox, set DATABASE_URL, run alembic upgrade head, load enough rows that the planner has a real choice, and capture EXPLAIN (ANALYZE, BUFFERS) for each affected query before and after. Run alembic downgrade -1, alembic upgrade head and alembic check, then the backend tests with scripts/tests-start.sh. In the pull request description give the query list, both plans for each query, the PostgreSQL version used, how many rows were loaded, and what to do if a concurrent build is interrupted in production.","resources":[{"url":"https://github.com/your-org/your-app"}]}