← BlogTopic10 posts
#llm
10 posts filed under #llm.
Zod-Validated LLM Output: The Repair Loop That Makes It Safe to Ship
Most tutorials still teach the deprecated generateObject path. Here is the Zod 4 + AI SDK 7 repair loop I run, with measured failures and the provider matrix.
16 min readHow to Control the Cost of an AI Agent: Budgets, Limits and Approvals
Why agent cost grows faster than turns, where the tokens go, and the controls that bound it: turn limits, hard budgets, caching, approvals and routing.
10 min readDo You Need an AI Agent Framework? LangChain.js vs Plain TypeScript
A framework is a purchase, not a default. How to decide between LangChain.js-style frameworks and a plain TypeScript loop, and how to migrate later.
11 min readGemini Omni 1.2 Flash in Next.js: The Setup and the Real Cost Per Clip
Omni 1.2 Flash generates 15-second clips with native audio at about $0.07 a second. The Next.js setup, the SDK gotcha, and the real per-clip cost.
12 min readYour AI Agent Needs No Framework: A 200-Line TypeScript Harness
I built my agent loop in plain TypeScript instead of adopting a framework. Here is the loop, the tool registry, the limits, and when a framework still wins.
10 min readGPT-4o and GPT-4.1 Retire Jan 14: The 10-Point Migration Checklist
GPT-4o and GPT-4.1, plus the minis and their fine-tunes, leave the OpenAI API on Jan 14, 2027. My 10-point checklist: audit, dodge the Luna trap, switch safely.
10 min readGemini 4 Argon Pricing: Build-and-Measure Checklist Before the 2x Hike
Gemini 4 Argon's $2/$10 launch pricing doubles to $4/$20 on December 1, 2026. My build-and-measure checklist to learn your real per-task cost in time.
14 min readGoogle Developer Knowledge API: Stop Your AI Agent Hallucinating Docs
Google's Developer Knowledge API gives AI agents grounded access to official docs: the 4 methods, MCP and gcloud setup, and when to use it over web search.
9 min readClaude Haiku 5.5 in Claude Code: Cut AI Coding Costs 20x
Claude Haiku 5.5 costs $0.10 per million input tokens - 20x cheaper than Sonnet. Verified 2026 pricing, the 100K-token cliff, and my routing rules.
10 min readZod as a Contract, Not a Comment
One Zod schema is your TypeScript type and your runtime validator. How I use Zod as the contract for forms, APIs and LLM output - and the bugs it deletes.
5 min read