ClaimArticle
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 explains the trigger for building a harness: a job that's partly fixed process and partly AI judgment, using her Sentry bug-triage harness as the qualifying example. ✦ AI generated
Claire · Lenny's Newsletter · 2026-07-13 · original ↗
The trigger is recognizing a job that is partly deterministic (defined steps, defined tools) and partly non-deterministic (the AI figures out root causes and writes the report). Sentry bug triage qualified because every investigation follows the same evidence-gathering process and ends with the same artifact bundle.
Read full article ↗excerpt · fair-use quotation
Around this claim
This moment responds to
extends → A harness is simply code you write to make an AI agent more effective at a specific job.Claire · Lenny's Newsletterextends → 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