Blog

Field notes on AI, automation, and building software that lasts.

The LLM cost series

Twelve posts, in the order the levers actually work.12 posts · 219 min

  1. A cost pipe narrowing through five LLM optimization levers, from a cost index of 100 down to 21Start here

    LLM Cost Optimization: 5 Levers to Cut Your AI Bill (2026)

    LLM cost optimization: the 5 levers that actually cut an AI bill, in the order that works. Most teams start with caching and save less than they hoped.

    Start the series33 min read
  2. Seif Sgayer of HorizonLux beside a cost curve that climbs steeply after a flat startDiagnose

    Why Is My AI Bill So High? 7 Causes and Fixes (2026)

    Read the shape of the bill first: spike, step, compounding, or always high.

    20 min read
  3. A cheap model needing three attempts costing more per finished task than one strong callMeasure

    Cost Per Task: Everyone Says Measure It, Nobody Says How

    The five fields to log, and why the 95th percentile is the number to read.

    17 min read
  4. Agent step costs rising as a staircase, with carried context taking a larger share of every stepLever 1 · The loop

    AI Agent Costs: Why One Run Costs 25x a Single Call

    Input tokens grow with the square of the step count. Cap the loop before anything else.

    19 min read

The context engineering series

Thirteen posts on the discipline that replaced prompt tweaking.12 posts · 100 min

  1. A 200K token context window drawn to scale as a single bar, with the user's question a one percent sliver at the endStart here

    Context Engineering: Why the Model Is Not the Bottleneck

    Context engineering explained: the attention budget, why long context fails, the levers that manage it, and what each one costs to run. With real numbers.

    Start the series15 min read
  2. A small circle labelled prompt engineering nested inside a much larger circle labelled context engineeringFirst principles

    Context Engineering vs Prompt Engineering: The Actual Line

    The prompt is one input among many. Prompt engineering is a subset, and treating it as the whole job is how context problems stay invisible.

    7 min read
  3. Advertised context window sizes for Claude, GPT, and Gemini next to a smaller usable-accuracy window for eachThe budget · Windows

    Context Window Sizes Compared: Claude, GPT, Gemini

    What a window physically is, what the million-token numbers actually buy, and what it costs to fill one.

    5 min read
  4. An accuracy curve declining as input length grows from 1K to 100K tokens, with model dots sitting on the falling curveThe failure · Rot

    Context Rot: Why More Tokens Make Your LLM Worse

    Recall is U-shaped: strong at the edges, weak in the middle. More tokens make it worse, not better.

    11 min read
10 articles outside the series