TanStack Query is 100% ready for AI coding agents.
Claude Opus 5 has fully caught up to TanStack Query v5 — all 13 tasks compile clean, including every v4→v5 trap: object-only useQuery, gcTime, placeholderData: keepPreviousData, the renamed 'pending' status, and useInfiniteQuery's now-required initialPageParam. There's nothing to fix.
100/100
Agent-readiness
13 compile clean0 fail type-check
Model: claude-opus-5Tasks: 13Method: tsc against real installed packageRun: 2026-07-26
Each left-hand line was valid v4 and errors against v5 (TS2769, TS2353, TS2367). The model wrote the v5 form for all five — it even imported keepPreviousData to feed placeholderData. The drift window has fully closed for this library.
13 of 13
What it gets right
Modern TanStack Query is second nature to the model.
Queries, mutations, caching config, conditional fetching, pagination, and infinite scroll all compile clean on the first try — with the current v5 API surface, not the v4 one.
Read the board top to bottom and the pattern is exact: the older the breaking change, the higher the score. Prisma 7 (most recent major) → 87, Next.js 16 → 92. The 2025 majors — the Vercel AI SDK and Zod — are now fully absorbed by Opus 5 → 100. TanStack Query v5 (shipped 2023) → 100 too, absorbed long ago.
A perfect score isn't luck — it's a library that changed long enough ago for the model to have learned it. The gap only shows on recent majors, and it re-opens the day your library ships its next one. That moving number is exactly what SDKProof tracks.
No opinions — just the compiler
How this was measured
13 realistic TanStack Query tasks → generated by claude-opus-5 → each solution written into a project with the real installed @tanstack/react-query v5.101.4 (+ react, @types/react) and type-checked with tsc --noEmit.
A task passes only if it compiles clean. The prompts name the functions but never the option names — so this measures what the model reaches for, not what it's told. Reproducible: pinned package versions, pinned model.
Is your SDK ready for AI agents?
Right after a major release, agents keep shipping your old API. SDKProof scores it, tracks it across model releases, and tells you exactly what to fix.