How to build a custom AI harness with Claude SDK
Claire Vo shows how to build custom AI harnesses using the Claude SDK, wrapping AI agents in structured code to automate specific, repeatable workflows reliably.
The gist
-
A harness is code around an AI agent that encodes context, limits tool access, and locks in consistent outputs so you stop re-prompting every time.
-
Build a harness for repeatable workflows like bug triage or PR reviews, where a general-purpose tool would need manual setup each run.
-
Expose only the data an agent needs rather than full API access, so the agent stays focused and returns structured results without wandering.
-
Once the logic is solid, wrap it in a CLI, TUI, or web app and feed results automatically into tracking tools, removing any human handoff.
"I picked Sentry debugging — really figuring out the issue using some of our custom internal tools and then doing all the follow-up actions we do when we close bugs — as a good first harness. It has coding in it. It needed custom content and custom context."
▶ Play at 5:14"It's connected to Linear and GitHub in terms of getting tasks done. Every time we fixed a Sentry bug, we wanted it documented in Linear."
▶ Play at 0:3420 creators recommend it, including JD Ross, Chintan Turakhia, and Peter Yang.
See all on the Linear page"I use this library called Ink, which helps you make cute terminal UIs. I don't think they would say cute, but I'm going to say cute."
▶ Play at 8:52What they recommend · 3 picks
“It's connected to Linear and GitHub in terms of getting tasks done. Every time we fixed a Sentry bug, we wanted it documented in Linear.”
“I picked Sentry debugging — really figuring out the issue using some of our custom internal tools and then doing all the follow-up actions we do when we close bugs — as a good first harness. It has coding in it.”
“I use this library called Ink, which helps you make cute terminal UIs. I don't think they would say cute, but I'm going to say cute.”
Also mentioned
Ads in this episode
Bolt.new, Customer.io. They're paid, so we keep them out of the picks above.
See what How I AI recommends without being paid →Related episodes
Episodes covering similar topics