AI Engineering

Long-Running AI Agents Can Undo Each Other's Work

Long-Running AI Agents Can Undo Each Other's Work

How fencing tokens prevent an agent from overwriting a newer decision

Nov 30, 2026

How Video Changes the Inference Pipeline

How Video Changes the Inference Pipeline

Does the inference model still work when requests contain images or video?

Nov 23, 2026

Inference Engineering: Part 7/8: How MoE Creates Uneven GPU Work

Inference Engineering: Part 7/8: How MoE Creates Uneven GPU Work

What happens when different tokens need different model components on different GPUs?

Nov 16, 2026

Inference Engineering: Part 6/8: Should Prefill And Decode Run On Different GPUs?

Inference Engineering: Part 6/8: Should Prefill And Decode Run On Different GPUs?

When does separating two phases improve the service, and what new costs does it create?

Nov 9, 2026

Inference Engineering: Part 5/8: When Speculative Decoding Backfires

Inference Engineering: Part 5/8: When Speculative Decoding Backfires

Can spending extra work on a draft reduce the number of slow generation steps?

Nov 2, 2026

Inference Engineering: Part 4/8: Measuring LLM Serving Under Load: Throughput and Latency

Inference Engineering: Part 4/8: Measuring LLM Serving Under Load: Throughput and Latency

How can a system generate more tokens overall while giving users a worse experience?

Oct 26, 2026

Inference Engineering: Part 3/8: GPU Memory, Token By Token

Inference Engineering: Part 3/8: GPU Memory, Token By Token

Why can a model that fits on the GPU still run out of memory?

Oct 19, 2026

Inference Engineering: Part 2/8: One Long Prompt Delays Everyone Else's Tokens

Inference Engineering: Part 2/8: One Long Prompt Delays Everyone Else's Tokens

Why can one request with a long input disrupt users whose answers are already streaming?

Oct 12, 2026

Inference Engineering: Part 1/8: One Request, Many Turns on the GPU

Inference Engineering: Part 1/8: One Request, Many Turns on the GPU

An LLM answer needs repeated computation and growing memory. Follow what happens when many users need both at once.

Oct 5, 2026

5 Engineering Lessons From 52 Weeks of Writing

5 Engineering Lessons From 52 Weeks of Writing

A one-year special edition on distributed systems, databases, and production AI.

Sep 21, 2026

Prompt Engineering Patterns for Production

Prompt Engineering Patterns for Production

Six prompt patterns with evidence behind them, the mechanisms that make them work, and the checks that keep them working as models change.

Aug 31, 2026

When to Fine-Tune vs Prompt vs RAG: A Decision Framework

When to Fine-Tune vs Prompt vs RAG: A Decision Framework

Three tools, one decision. Here's how to choose, and why it's usually not the one you think.

Aug 10, 2026

Guardrails and Safety Layers for LLM Applications

Guardrails and Safety Layers for LLM Applications

Your LLM will try to do things it shouldn't. Here's how to stop it.

Jul 20, 2026

Observability for LLM Applications: Seeing Inside the Black Box

Observability for LLM Applications: Seeing Inside the Black Box

LLMs break traditional observability. Log tokens, trace multi-step chains, attribute costs, monitor quality with evals, and handle privacy deliberately.

Jun 22, 2026

Latency Optimization for LLM Applications

Latency Optimization for LLM Applications

Three seconds will still feel like forever to your users. Make sure they never have to wait that long staring at a spinner.

Jun 1, 2026

The True Cost of LLM Applications

The True Cost of LLM Applications

Your LLM costs more than you think - here's the full picture

May 18, 2026

Building Reliable AI Agents

Building Reliable AI Agents

Unserstanding deeply what actually breaks in production

May 4, 2026

Context Window Management: The Hidden Engineering Problem

Context Window Management: The Hidden Engineering Problem

128K tokens doesn’t mean you should use 128K tokens

Mar 9, 2026

The Main Thread

AboutEssaysXGitHubRSS
© 2026 The Main Thread.
beehiivPowered by beehiiv