Mhonn YbañezSRE, DevOps, AI Engineer
 Today I Learned
Read the full page

Do AI agent frameworks build the harness for me?

Posted
Tags
ai, llm, agents

Agent frameworks are harness kits, not the harness itself. LangGraph is the most explicit one, but even a thin SDK leaves the real harness work to me: tools, context, permissions, and checks. The frameworks differ in how much of the harness I write myself and how much I inherit.

After learning LangGraph and running my context experiment, I wanted the bigger picture. LangGraph is one framework out of many. What are the others, and how do they connect to harness engineering?

The question I had

What are the main AI agent frameworks, and how do they relate to harness engineering?

What I found

The short version

An agent is a model plus a harness. The harness is everything around the model: the loop, the tools, the context it sees, the memory, the permissions, and the checks on its work. A framework is a kit of ready-made harness parts. It is not the harness itself.

A rough map of the frameworks

This is my working map. These tools change fast, so the details may drift.

Graph and workflow orchestration

  • LangChain: building blocks like model wrappers, tools, prompts, and integrations.
  • LangGraph: the agent as a graph with shared state, nodes, edges, and loops. It supports saved state and pausing for a human.
  • LlamaIndex: strongest at data and retrieval, with workflows for agents on top.

Multi-agent frameworks

  • CrewAI: a crew of agents with roles and tasks. Quick to prototype.
  • AutoGen: agents that talk to each other to solve a problem. Microsoft has been folding it into a newer agent framework.
  • OpenAI Agents SDK: small and minimal, built around handoffs, guardrails, and tracing.
  • Google ADK: Google's toolkit for multi-agent setups.

Provider SDKs and lighter options

  • Claude Agent SDK: the loop behind Claude Code, with built-in tools, subagents, and hooks.
  • Pydantic AI: type-safe agents for Python.
  • Smolagents: tiny, with agents that write code as their actions.
  • Mastra and Vercel AI SDK: TypeScript options.

How I'd choose

What I needWhat I'd look at
Fine control, long-running, resumable flowsLangGraph
A quick multi-role prototypeCrewAI
A retrieval-heavy appLlamaIndex
A simple tool-using agent with little abstractionOpenAI Agents SDK, Claude Agent SDK, or Pydantic AI
A TypeScript stackMastra or Vercel AI SDK

What the harness covers, whatever I pick

  • The loop: when to call the model, when to stop, how to recover from errors.
  • Tools: which ones exist, how they are described, and how their results are shaped.
  • Context: what goes into the window and what stays out (see my post on the context window).
  • State and memory: checkpoints, notes, and resuming long tasks.
  • Guardrails: sandboxing, approval gates, and permission rules (see AI guardrails).
  • Verification: tests, evals, and tracing so I can see what went wrong.

Where my epiphany came in

My first reaction was: LangGraph is the only framework that really gives me freedom on the harness side, and the rest are just products with little engineering in them.

That turned out to be only half right. LangGraph is the most explicit, because I write the state, the steps, and the routing as code. CrewAI sits at the other end: I describe roles and tasks, and the framework decides much of the orchestration, so there is less to engineer.

But control is not the same as engineering:

  • A thin SDK leaves more work to me, not less. With the OpenAI Agents SDK or Pydantic AI I still design the tools, the context strategy, the permissions, and the checks. They just don't force a graph on me.
  • A pre-built harness is still shaped by me. Claude Code is a ready-made harness, and I still tune it with custom tools, hooks, subagents, and permission rules.
  • The hardest parts live outside any framework. Tool design, context hygiene, and evals are the same job whichever tool I pick. My detective project proved it: the framework wasn't what decided the result, the choices about what went into the prompt were.

So the frameworks sit on a spectrum, from low level (LangGraph, or raw API calls) to opinionated (CrewAI, Claude Code). The real question is how much of the harness I want to own and how much I'm happy to inherit.

Takeaway

A framework gives me harness parts, and the engineering is still mine. I'll start with something opinionated and drop down a level only where it gets in my way. As models improve, some scaffolding I add today may turn into dead weight, so I'd rather add structure when I see a failure than up front.