Insights

Notes from the studio

Notes on production AI - context engineering, agentic orchestration, and what it takes to ship bots that do not hallucinate their way into trouble. Written by someone who has done it at scale.

July 13, 2026

Expensive Work Belongs Off the Request Path

Embeddings, geocoding, web re-indexing - all of it is expensive and predictable. Do it in the request and you pay for it in latency on every query. Push it offline and leave only cheap indexed lookups on the request path, and the answer stays fast even on a huge database. The principle: what changes rarely doesn't get computed at runtime.

Read article

July 13, 2026

Inline Markup Over Tool Calls: Make the Answer One Pass

Every tool call is a round-trip - produce a result, return it, let the model continue. When the things that would normally call a tool (follow-up suggestions, entity links, prompts) are emitted directly in the streamed answer as inline tags, the answer becomes one pass. Time-to-first-token drops, because you're not computing anything up front.

Read article

July 13, 2026

The Prefix Cache Is a Latency Weapon: Keep Your Prompt Still

The fastest token is the one already prepared. Model providers cache the prompt prefix - but only the part that doesn't change. Every dynamic blob at the front cancels the whole gift. A static system prompt and per-turn injection behind the cached prefix is the cheapest latency win you'll find.

Read article

July 13, 2026

Small Leaks: What Costs Latency When You're Not Looking

Three seconds to answer is a budget, not an average. And the budget bleeds through a lot of small leaks - a fresh TLS handshake on every embed, an agent-loop restart after a failed tool, an extra model-call after the user already got what they needed. None of them moves the number alone, but together they decide whether you make the limit.

Read article

June 25, 2026

Eval as an Input, Not a Dashboard: Building Self-Healing LLM Systems

Most teams treat evaluation as a scoreboard - a number you glance at and feel good or bad about. The frontier idea is to wire the eval back into the system as an input that rewrites it: traces go to independent judges, fixes get proposed automatically, and one human approves. It's AI all the way down, with a single gate that isn't.

Read article

June 24, 2026

Intent First: How a Bot Decides What You're Actually Asking

Before a bot can answer well, it has to know what kind of question it's facing. Skip that step and chitchat gets a database query, 'last month' goes to SQL untranslated, and every request runs the same dumb path. The fix is a cheap, decisive first move: classify the intent, extract the entities, resolve the time.

Read article

June 20, 2026

Associations: Teaching a Bot to Speak Your Domain

A user asks for 'employees.' Your database calls them H_OSOBA. No model bridges that gap on its own. The fix is the highest-leverage, least glamorous artifact in the whole system: a living glossary that maps human language to your schema.

Read article