[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Showcase](/c/showcase/41)

# Library to build Claude Code-style agent harnesses with the AI SDK

50 views · 3 likes · 2 posts


Max Gfeller (@maxgfeller) · 2026-03-25 · ♥ 2

Hey! Wanted to share OpenHarness: a code-first, composable SDK to build agent harnesses like Claude Code in no time, built with the AI SDK.

It provides a set of composable primitives, like an agent, session, and a basic set of tools. The session handles turns, retries, hooks, context management, etc., and the agent class supports AGENTS.md, agent skills, MCP servers, subagents, etc.

There are a few examples in the repo, including a Next.js full-stack application. I believe this is currently the easiest way to build a Claude Code-style app.

Would love to get your feedback on this!

Repo: https://github.com/MaxGfeller/open-harness

Max


BestCodes (@bestcodes) · 2026-03-31 · ♥ 1

Lots of stars!

:eyes:
![image|168x56](upload://aSAvTTkwVXZKLtsjTTvMcu0ZHxv.png)

This is very interesting. I've been messing around with AI agents a lot recently, will have to check this out.