Fetching from the wire…
Public story · 2026-08-03 · high
The TypeScript SDK lets developers cap tool calls per turn and per session instead of writing their own counters.
Why now: The tool-call caps shipped in a TanStack/ai release, dated as of August 3.
TanStack shipped bounded tool-call limits in TanStack/ai, its provider-agnostic TypeScript SDK for OpenAI, Anthropic, Gemini, and Ollama, per the project's GitHub release.
The library has 2,953 stars and adapters for React, Vue, Svelte, and Solid. That reaches a wide slice of teams wiring tool calls into production agents. Before this, stopping a runaway loop meant writing a counter yourself and hoping you didn't miss an edge case.
AgentLoopState exposes toolCallCount and lastTurnToolCallCount so a running agent can report its own usage. The method maxToolCalls(n) caps the cumulative number of tool calls across a whole session. Separately, chat({ maxToolCallsPerTurn }) caps how many calls can run in parallel within a single turn.
That state sits inside the agent loop, not bolted onto the API client as a separate wrapper. A developer can inspect toolCallCount mid-run and choose to bail, warn, or throttle the remaining budget instead of hitting a wall with no warning.
The release notes don't say what happens when a call hits the cap mid-task. Does the loop return a partial result, throw, or truncate the last turn silently? That's worth checking before shipping this in anything user-facing, since a silent truncation on a multi-step task is worse than no cap at all.
Whether Vercel's AI SDK or LangChain.js add an equivalent cap next is worth watching. A runaway tool loop burning through a budget is a support ticket every team running tool-calling in production has probably already filed.
Each link below shares sources, entities, or timing with this story.
Kits like TanStack/ai (type-safe, provider-agnostic streaming, tools, and agents across OpenAI/Anthropic/Gemini) and manifest let you swap providers, and increasingly the harness itself, without rewriting (TanStack). With the model market churning weekly and June releases slip...
Cherry Studio ships unified access to OpenAI, Anthropic, Gemini, DeepSeek, Qwen, Ollama, and dozens more providers in a single Electron app. Autonomous agent mode, built-in knowledge base, MCP support. It's basically a free, local-first alternative to switching between web int...
vomit rewrites display text through a local OpenAI-compatible model via a hook, claudish-to-english appends an Ollama-generated plain-English rewrite under each reply, and Claudette routes the rewrite through Gemini via the Antigravity CLI. All three appeared inside about two...
The project positions against Cluely, Otter, Granola, and Fireflies with a Rust system-audio layer that works across Zoom, Teams, Meet, Slack, and Discord without per-app integrations. Transcripts, embeddings, and keys stay on the machine by default, with local RAG over past m...
GitHub | Go, React/TypeScript, Neo4j Surging today with 875 new stars — fastest-growing security repo on GitHub trending. Provides fully autonomous AI penetration testing with multi-agent delegation, Neo4j knowledge graph for persistent context, 20+ built-in security tools, an...
Posted to Show HN August 26 by Trigger Labs: run npx openspender connect or add the MCP server, and the agent mints its own card with per-request, daily and total caps, settling in self-custodial USDC on Base with an itemized ledger. Coverage spans 15,171 x402 endpoints and 14...
MindPattern daily
One email a day at 7 AM. Sources and a take on every story. Unsubscribe anytime.