AI agent framework
An AI agent framework is a code library developers use to build their own AI agents. It supplies the parts most agents need, such as the loop that calls the model and runs tools, a way to define those tools, memory between steps and handoffs between agents, so a team writes the logic for its own job instead of the plumbing. LangGraph, CrewAI, the OpenAI Agents SDK and the Claude Agent SDK are examples.
Why it matters
Most teams that build their own agents start with a framework, because writing the loop, retries, tool definitions and tracing from scratch is slow and easy to get wrong. The framework you pick shapes how the agent is structured, how you test it and how hard it is to switch models later.
Framework vs agent harness
An agent harness is a finished program that runs a model as an agent and is ready to use. Claude Code and Codex are harnesses. A framework is what you would use to build one. If the job is writing code or working across files and business apps, a harness usually gets you there faster. A framework makes sense when the agent is part of your own product or a specific internal process and you need control over every step.
What to look for
- Model choice. Whether it works with several model providers, including open-weight models, or ties you to one.
- Tools over MCP. Whether it can call tools through the Model Context Protocol, so the agent reaches systems you already connect elsewhere.
- Multi-agent support. Handoffs, subagents and orchestration, if the job needs more than one agent.
- Tracing and evals. A record of each step, and a way to test changes with AI evals before they reach users.
- Human checkpoints. A clean way to pause and ask a person before a risky action.
Where it goes wrong
A framework makes the first demo easy. The harder work comes later: permissions, audit logs, cost limits and the company context the agent needs to be useful. Those are rarely in the framework, and teams often find they have rebuilt a harness by hand.
How elvex relates
elvex Enterprise is a company-wide agent harness. Teams that need agents for everyday work across their tools can start there, with company context, routing to lower-cost models and admin controls already in place, and keep frameworks for agents built into their own products. See elvex Enterprise.