TanStack

TanStack AI Blog

See all blog posts
Run Any Coding Agent in a Sandbox, With One chat() Call

Wiring a coding agent into your app means gluing each CLI's protocol and deciding where it safely runs. TanStack AI's new sandbox layer collapses both into one pattern, and lets you plug in any Agent Client Protocol agent with no dedicated package.

Alem Tuzlak · Jun 30, 2026
TanStack Start and TanStack AI Win 2026 Open Source Awards

TanStack Start won Breakthrough of the Year and TanStack AI won AI Project of the Year at the 2026 Open Source Awards in Amsterdam.

Tanner Linsley · Jun 22, 2026
TanStack AI Beta: The Switzerland of AI Tooling Grows Up

Six months ago we shipped the alpha with a promise - a framework-agnostic, provider-agnostic AI toolkit with no lock-in, ever. Today TanStack AI hits Beta with every modality, a hardened protocol, middleware, orchestration, host-side MCP, and 265 E2E tests running across 10 providers on every PR.

Tom Beckenham · Jun 9, 2026
TanStack AI: Your MCP, your way

Host-side Model Context Protocol support lands in TanStack AI. Connect one MCP server or a whole pool, choose managed or manual lifecycle, and pick your type-safety level - from zero-config discovery to fully generated end-to-end types.

Alem Tuzlak · Jun 5, 2026
Introducing Experimental Workflows and Orchestrators in TanStack AI

Try the experimental TanStack AI orchestration PR build: generator-based workflows, typed agent calls, approvals, SSE streaming, AG-UI events, and React hooks.

Alem Tuzlak · May 28, 2026
Structured Output That Remembers Across Turns

useChat({ outputSchema }) used to keep one slot for partial/final, so multi-turn structured chats lost prior turns the moment a new one streamed in. Every assistant turn now carries its own typed StructuredOutputPart on its UIMessage. History is preserved by default, and the schema generic threads all the way down to messages[i].parts[j].data.

Alem Tuzlak · May 19, 2026
TanStack AI now fully speaks AG-UI

Server-to-client AG-UI events already worked. TanStack AI now completes the round trip with client-to-server AG-UI compliance. Fully backward compatible.

Alem Tuzlak · May 17, 2026
Stop Waiting on JSON: Stream Structured Output with One Schema

Pass a Zod schema to useChat and get a typed `partial` and `final` for free. No more parsePartialJSON glue, no more onChunk wiring. TanStack AI now streams structured output end-to-end across OpenAI, OpenRouter, Grok, Groq, and Ollama.

Alem Tuzlak · May 14, 2026
TanStack AI Just Learned to Compose Music

TanStack AI adds a new generateAudio activity with streaming, plus fal and Gemini Lyria adapters for music, sound effects, text-to-speech, and transcription. One typed API, any provider.

Alem Tuzlak · Apr 24, 2026
One Flag, Every Chunk: Debug Logging Lands in TanStack AI

Your AI pipeline is a black box: a missing chunk, a middleware that doesn't fire, a tool call with mystery args. TanStack AI now ships pluggable, category-toggleable debug logging across every activity and adapter. Flip one flag and the pipeline prints itself.

Alem Tuzlak · Apr 22, 2026
Your AI Tool Calls Should Fail at Compile Time, Not in Production

Provider tools like web search and code execution are supported on some models and silently ignored on others. TanStack AI now gates them per model at the type level, so incompatible pairings fail at compile time instead of in production.

Alem Tuzlak · Apr 22, 2026
How We Test TanStack AI Across 7 Providers on Every PR

TanStack AI runs 147 deterministic E2E tests across 7 LLM providers in under 2 minutes. Here's the testing infrastructure that makes it possible.

Alem Tuzlak · Apr 13, 2026
Code Mode: Let Your AI Write Programs, Not Just Call Tools

One tool call at a time is the bottleneck. TanStack AI Code Mode lets the LLM write and execute TypeScript programs in secure sandboxes, composing your tools with loops, conditionals, and Promise.all in a single shot.

Jack Herrington, Alem Tuzlak, and Tanner Linsley · Apr 8, 2026
Lazy Tool Discovery: Scaling AI Tool Systems Without Drowning in Tokens

Every tool definition costs tokens and eats into the context window. Past a certain point it actually makes the model worse. Today we're shipping lazy tool discovery in TanStack AI.

Alem Tuzlak · Mar 12, 2026
Talk to Your AI: Realtime Voice Chat in TanStack AI

Text-based chat is table stakes. TanStack AI now ships first-class support for realtime voice conversations — real voice, real time, with the AI hearing you, thinking, and responding naturally.

Alem Tuzlak · Mar 12, 2026
TanStack AI Just Got Middleware — And It Changes Everything

Your chat endpoint starts simple, then you need logging, filtering, caching, rate limiting, and suddenly it's a 200-line monster. TanStack AI now ships a first-class middleware system.

Alem Tuzlak · Mar 12, 2026
Generation Hooks: Type-Safe AI Beyond Chat

Chat is just the beginning. Your AI app needs image generation, text-to-speech, transcription, and more. TanStack AI now ships generation hooks — a unified set of React hooks for every non-chat AI activity.

Alem Tuzlak · Mar 11, 2026
TanStack AI: Why We Split the Adapters

Instead of one monolithic adapter that does everything, we split into smaller adapters each in charge of a single functionality. Here's why that architectural change matters.

Alem Tuzlak · Jan 2, 2026
The ai() Function That Almost Was

We spent eight days building an API we had to kill. One function to rule them all, one function to control all adapters, one function to make it all typesafe — here's what happened.

Alem Tuzlak · Dec 26, 2025
TanStack AI Alpha 2: Every Modality, Better APIs, Smaller Bundles

Two weeks since the first alpha and we've prototyped through 5-6 internal architectures. Alpha 2 brings every modality, better APIs, and smaller bundles.

Alem Tuzlak, Jack Herrington, and Tanner Linsley · Dec 19, 2025
TanStack AI Alpha: Your AI, Your Way

The current AI landscape has a problem — pick a framework, pick a cloud provider, and suddenly you're locked in. TanStack AI is a framework-agnostic toolkit built for developers who want control.

Jack Herrington, Alem Tuzlak, and Tanner Linsley · Dec 4, 2025