Definition◆Article
A harness is simply code you write to make an AI agent more effective at a specific job.
Claire demystifies the term 'harness,' defining it as ordinary code wrapped around an AI agent, noting that even complex tools like Cursor and Claude Code are just elaborate harnesses. ✦ AI generated
Claire · Lenny's Newsletter · 2026-07-13 · original ↗
The term has taken on an almost mythical quality in engineering circles, but I strip it down in this episode: a harness is code you write to make an AI agent more effective at a specific job. Cursor is a complex harness. Claude Code is a complex harness. Yours can be eight files and a terminal UI.
Read full article ↗excerpt · fair-use quotation
- ·A harness is just code wrapped around an AI agent
- ·Goal: make the agent effective at one job
- ·The term sounds mythical, but isn't
- ·Cursor: a complex harness
- ·Claude Code: a complex harness
- ·Yours can be eight files and a terminal UI
Around this claim
Extends · 2
You should build a custom harness when a workflow needs the same setup and produces the same outcomes every time, combining deterministic steps with non-deterministic AI judgment.Claire · Lenny's Newsletter · conf 75%The system surrounding an AI model — the harness that manages workflows, context, permissions, evaluation, persistent state and continuous improvement — has become just as important as the agent itself, marking a shift from prompting models to engineering reliable systems around them.Lilian Weng · Latent Space · conf 65%
This moment responds to
provides context → You should build a custom harness when a workflow needs the same setup and produces the same outcomes every time, combining deterministic steps with non-deterministic AI judgment.Claire · Lenny's Newslettergives example → Notion's role is to be the Switzerland for models — taking all the best models, creating high-quality agent implementations, and making a collaborative workspace that is really good for humans and agents to coordinate on.Simon Last · No Priors