We don’t trust LLMs to read an email properly. Why are we putting them in charge of entire workflows?
▲ 4 r/AISystemsEngineering+2 crossposts

We don’t trust LLMs to read an email properly. Why are we putting them in charge of entire workflows?

I keep seeing variations of the same complaints about LLMs:

“It didn’t read the whole email thread.” “It stopped halfway through.” “It skipped some of the work.” “It confidently told me something that wasn’t true.”

Fair complaints.

But then we do something I find slightly bizarre.

We ask the same systems to analyse a 40-page contract, modify a production codebase, research a market, operate a browser, handle company data, make decisions and run workflows unattended — then ask the LLM whether it successfully completed the job.

We apparently don’t trust LLMs with the small stuff, while increasingly trusting them with the big stuff.

I’m not convinced the answer is simply “wait for the next model”.

Maybe we have the architecture wrong.

A lot of current systems effectively ask the LLM to understand the task, remember the state, decide what happens next, choose and use tools, recover from errors — and finally determine whether its own work was correct.

That’s a remarkable amount of responsibility to give the least reliable component of the system.

So I’m increasingly interested in the inverse architecture:

Put state, memory, permissions, evidence, verification and workflow control outside the LLM.

Then use the LLM for what it’s actually good at: interpretation, reasoning, synthesis, creation and dealing with ambiguity.

In other words:

Maybe the LLM shouldn’t run the system. Maybe the system should run the LLM.

I’m much more interested in what people are actually doing about this than another discussion about which model currently tops which benchmark.

So, for people building real systems:

What do you actually do when the LLM lies, skips work, stops early, loses state or incorrectly claims success?

What have you moved outside the model?

State machines? Independent verification? Deterministic tests? Evals? Event logs? Evidence/provenance? Permission boundaries? Multiple models? External memory? Something else?

And what infrastructure do you wish existed but currently doesn’t?

One final provocation: if your primary method for determining whether an LLM completed its task correctly is asking the same LLM whether it completed its task correctly, I’m not sure you’re doing LLM engineering.

A better prompt or another edit to CLAUDE.md definitely isn’t the answer.

There is one basic engineering practice in particular that I think separates LLM engineering from LLM theatre.

What do you think it is?

And, more importantly, what are you actually using?

Co-written with my sparring partner, ChatGPT. Given the subject, disclosure seems appropriate. I won’t start crediting my MacBook and Wi-Fi.

u/marksterberlin — 10 days ago
▲ 5 r/BuildWithClaude+1 crossposts

Using Claude Code / Codex to make interim work items - to make quality better and reduce wasted tokens - an example approach & artefact thing

Do you go to the bathroom with your laptop? Or walk the street with your laptop open? All while you are building solutions, inventing things, building the precursors to solutions you might invent? This insight might be for you!

I have quite an extensive harness (LLM OS type of thing - codex and claude code combined, with lots of extra bits), with a database to store lots of things (projects, etc), and a very optimized system in terms of token use (extremely optimized! as in 10x more work that anyone I know, for the same or less.

One use - I have an intelligent runtime context assembler… fancy words for a very clever bit of prompt engineering. I have 'experts' who have skills, memories, access to projects, dreaming, and more (internal slack coming up!). I then point my experts at tasks I come up with, depending on the task.

This is the typical output from a 'landscape research' request. I want to know how I use experts in my system to give me founder or angel-investor type advice. This was because Cat (Catherine Carlton was a little inspiration in name and deed!) tends to be very singularly minded when she gets invoked and starts giving advice. Too focused for my liking.

Rather than tell her to change, I like evidence-based systems. So I research how things currently work INSIDE my system, and then to research for what is outside my system (that brings in Luca :)

This artefact gets used to guide what comes next. A new skill? A knowledge pack? A hook to recommend a next step? A new expert? etc, etc.

How do other people do things like this? I might be overthinking for some… but it works really well for me, due to my obsession with getting higher quality output with few tokens.

supermark-founder-angel-cognition.vercel.app
u/marksterberlin — 1 month ago

Curious about typos in user text - how they are handled, how much they cost in tokens, and if they ever actually break things

Caught myself firing off a prompt full of typos today ("habndle", "currwntly") and Claude cli continued merrily away — then remembered why (with a claude nudge and re-explanation).

It doesn't read your letters, it reads tokens, about 3 characters. Words become fragments ("habndle" → hab+nd+le). Words with typos are also fragments. Reads fine anyway, because the surrounding tokens/words carry the meaning — and it was trained on the internet, which can't spell either.

So token cost is basically nothing: a typo turns one token into maybe three, so a handful of extra tokens across a whole message. Rounding error.

Where it actually bites is the exact stuff — variable names, file paths, API names (and def do not share a key in your chat!), search terms. No context to rescue a typo there. Plus the sneaky one: "form" vs "from", "their" vs "there". Both real words, so the model gets zero signal anything's wrong and just takes you literally.

Quick conclusion is don't bother putting effort into fixing typos for the AI's sake. Do fix them in code and names (or at least make a decent effort).

At the same time, has anyone actually had a typo change the answer they got? Curious where the line really is.

reddit.com
u/marksterberlin — 3 months ago

Do you actually use hooks in Claude Code?

Genuine question, because the answer keeps surprising me. I'll be talking to folk at AI events in Berlin this week who really knows Claude Code — CLI, MCP, subagents, etc — and I'll ask what hooks they run and where. Almost all go quiet, or mumble about things that are not hooks at all. So few have ever set one up, some most have never heard of them (though you might have seen Claude suggesting them at some point in conversation, and ignored it - like me at first).

So if that's you: a hook is a small script the harness runs for you, automatically. On every prompt, on things the model does, when it stops. You write a rule once and it runs whether the model likes it or not. They're right there in the docs, but almost nobody I talk to actually uses them.

(now as a warning, just because they are there, does not mean Claude will listen! that's for another post)./

A concrete example, because "hooks are useful" means nothing on its own.

The first hook I set up — on Claude's own suggestion, while I was tinkering with my setup — catches the model talking about work in calendar time. I absolutely cannot stand Claude quoting me human time for things - "this'll take 3 hours... 2 weeks, blah blah". The only honest unit for AI work, being very direct, is tokens (and how close to your limits you are running), so the hook spots that phrasing and makes it redo the line.

In fact, as I was drafting this in Claude playing with some data, it fired on me while I was writing this post, which amused me.

I've added more since. Some catch obvious mistakes before they happen, some keep an eye on what a session is costing, some just enforce my own habits. Every one took fiddling. None of them worked clean on the first go.

That's really all I've got. Just trying to start a conversation. If you're deep in Claude Code: do you run any hooks? Which ones, and where do they actually earn their keep? And if you don't — never came up, or you tried and bounced off?

reddit.com
u/marksterberlin — 3 months ago
▲ 19 r/SunoAI+1 crossposts

For those interested, there is an AI song competition, AI.LOVE.JAZZ, tied to the Montreux Jazz Festival. It’s the first global AI JAZZ contest, plus panel sessions. My submission “ADD Jazz” just got shortlisted! https://www.instagram.com/reel/DXhKE4ljOCn/?igsh=MXd2dTJiNXE4dDUwMA== > you can stoll submit entries https://ailovejazz.com - best of luck!

[Jazztronica] “ADD Jazz” by [mwizard] > My entry on Suno - https://suno.com/s/DrjIBamwQT4nFRtx

Artist site is https://mwizard.live in case that’s interesting too

reddit.com
u/Double-Ad-4640 — 4 months ago