The Sunday Letter

Free, every Sunday

The Sunday Letter

One lesson every Sunday. With the code.

Essays on building AI that works for real people, by Sridhar Mukkandi.

Latest · No. 22 · Models

Every letter.

No. 22 · Models

Choose your agent’s model by the cost of a finished task

A new model tops a leaderboard every week. The number that decides whether you should switch is not on it: what it costs, in money and minutes, to get one of your tasks done right.

2 Dec 2026 · 4 min read
No. 23 · Agents

Give every agent a budget before it runs

Most teams find out what their agent costs from the monthly bill. By then the one task that looped all night has already been paid for. Set the limit per run, in code, before the first call.

2 Dec 2026 · 4 min read
No. 24 · Agents

Your next customer may send an agent

We spend our time building agents that use other people’s websites. Fewer of us have asked what happens when someone else’s agent uses ours: fills in the sign-up form, reaches checkout, asks for a refund.

2 Dec 2026 · 4 min read
No. 21 · Agents

Let risk decide who approves the agent’s work

Making a person approve everything an agent does sounds safe, until the queue grows and the approvals turn into rubber stamps. Route by risk instead: some changes need no one, some need one person, a few need two.

1 Dec 2026 · 4 min read
No. 20 · LLMs

Do you need RAG at all? Work out the cost first

RAG adds a pipeline and a second place for things to go wrong. If your documents fit in one request, sending all of them can be simpler. Here is how to decide with real numbers.

20 Nov 2026 · 5 min read
No. 19 · Agents

Errors multiply: why a 95% agent gets four runs in ten wrong

Each step of an agent can be right 95% of the time and the whole run still fails 40% of the time. One multiplication explains most of how good agents are built.

19 Nov 2026 · 5 min read
No. 18 · LLMs

When nothing answers the question, don’t let the model guess

Search always returns something, even when your documents say nothing. Three defences, one in the prompt, one in the output and one in your code, turn a confident wrong answer into a short wait for a person.

18 Nov 2026 · 5 min read
No. 17 · LLMs

Check the chunks before you fix the prompt

When a RAG answer is wrong, most teams reword the prompt. The fault is often earlier: in how the documents were cut. Here is how to tell the two apart, and what to fix first.

15 Nov 2026 · 5 min read
No. 16 · LLMs

Don’t ask the model to remember

A new benchmark tracked how models follow changing values through long documents. Accuracy fell as low as 13%. If your agent needs the current state, give it a place to look it up.

9 Nov 2026 · 5 min read
No. 15 · Agents

Put the rule in the tool, not the prompt

“Never run a write query” is a request. A tool that rejects write queries is a rule. If breaking it would cost you, enforce it where the model can’t talk its way past.

8 Nov 2026 · 5 min read
No. 14 · Decisions

Check the checker before you trust it

A model that reviews documents can save most of a reviewer’s week. Before it does, run it beside the people it will help and count what it misses.

3 Nov 2026 · 5 min read
No. 13 · Agents

When agents open the pull request

GitHub says agents now start more than 40% of pull requests, and theirs get merged more often. Merged is not the same as right: measure what happens after the merge.

2 Nov 2026 · 5 min read
No. 12 · Agents

Every agent needs an owner

If nobody can say who owns an agent, nobody can say what it is allowed to do. Give each one a name, an owner, a short list of tools and access that runs out.

1 Nov 2026 · 5 min read
No. 11 · Agents

Grade the outcome, not the transcript

An agent can say all the right things and still leave the database wrong. Check the state it leaves behind, and you get a test you can trust and a reward you can train on.

26 Oct 2026 · 5 min read
No. 10 · Agents

Read-only first: how much access should an agent get?

This week banks found customers' AI agents acting inside their accounts. The fix isn't to ban agents. It's to give access in three steps, and earn each one.

24 Oct 2026 · 5 min read
No. 09 · Decisions

Your review queue is a budget

Every threshold quietly decides how much work lands on people. Start from the number of cases your team can really review, and draw the lines to fit it.

19 Oct 2026 · 5 min read
No. 08 · Agents

Log every decision your agent makes

An agent that decides without a record can't be checked, tuned or trusted. Seven fields, written at the moment of each decision, make all three possible.

18 Oct 2026 · 5 min read
No. 07 · Decisions

Two decision models in one day

On 1 October, Cloudflare and AWS both released open models built to decide, not to write. Speed is the headline. The number to check is a different one.

11 Oct 2026 · 5 min read
No. 06 · Decisions

The Jevons paradox of decisions

In 1865 Jevons saw better engines make Britain burn more coal, not less. Cheap AI decisions follow the same pattern, with a twist that lands on the people who review them.

4 Oct 2026 · 6 min read
No. 05 · Agents

Act, review, or escalate: agents that know their limits

A good model isn't a working decision system. The team you have, what's at stake, and what happens on the day the model is down decide whether an agent can safely act on its own.

27 Sep 2026 · 6 min read
No. 04 · Decisions

Six ways to make one decision

Rules, a trained model, a text classifier, an LLM writing JSON, an LLM judge, and a model built to decide. One dataset, one fair contest, and a scorecard with every column that matters.

20 Sep 2026 · 6 min read
No. 03 · LLMs

Your LLM's 0.95 isn't a probability

Ask a language model for JSON with a confidence field and you get a tidy number back. Before you put a threshold on it, look at what that number is made of.

13 Sep 2026 · 6 min read
No. 02 · Calibration

When 0.8 should really mean 80%

A model can rank every alert in the right order and still lie about how sure it is. Here is how to catch it with nothing but grouping and counting, and the fixes that work.

6 Sep 2026 · 8 min read
No. 01 · Decisions

Why 0.5 is almost always the wrong threshold

Every tutorial turns a probability into an action with one line at 0.5. On a real security queue, that line quietly lets thirty-seven threats a day through. Here is where the lines should go.

30 Aug 2026 · 8 min read

Essays on AI agents ›Essays on AI decisions ›Essays on LLMs in production ›RSS feed ›