What is Agent harness?
An agent harness is the software wrapped around a language model so it can use tools and work on a task across many steps, a term Anthropic applies to the Claude Agent SDK.
Also written: harness, agent scaffold, agent runtime
Explained
There is no formal specification for an agent harness, and the term is used loosely. The cited page is Anthropic's engineering write-up on long-running agents, and it does not give a strict definition either. It uses the word without defining it, calling the Claude Agent SDK a general-purpose agent harness and describing a harness design for tasks that span many context windows.
The page describes problems a harness has to handle once a task outgrows one context window. A new session starts with no memory of earlier work, agents can try to do too much at once, and they can declare a project finished early or mark a feature done without testing it end to end. Context management, such as compaction, helps the agent keep going without filling its window.
Anthropic's described fix is a harness design in which an initializer agent prepares a feature list, a script to start the app, a progress file and a first git commit. Later coding agents then take one feature per session, test it, and leave notes and commits behind. This is one vendor's example, not a standard pattern.
Primary source
Effective harnesses for long-running agents (anthropic.com), read Oct 26, 2026
This entry paraphrases the page above. Sources change; check it for the current wording.
Listings that use this
The 5 top-ranked listings tagged for Agent harness. Rank weighs adoption, freshness, documentation and publisher identity; how we rank and grade. Money never changes the order.
- 0.867score
Pi Agent Core
Earendil
Minimal TypeScript agent harness with an agent runtime, multi-provider LLM API, terminal UI and coding agent CLI that users extend themselves.
HarnessAFreshness: A★ 117.6K↓ 5.1M/wk - 0.853score
LlamaIndex
LlamaIndex
Open-source Python toolkit for RAG and agents over your own data, with event-driven workflows and 300+ integration packages.
HarnessAFreshness: A★ 52.6K↓ 1.4M/wk - 0.851score
Strands Agents
AWS
Open-source Python and TypeScript SDK for model-driven agents, with tools, MCP, multi-agent patterns and streaming.
HarnessAFreshness: A★ 8.9K↓ 8.9M/wk - 0.841score
GitHub Copilot SDK
GitHub
Multi-language SDKs for embedding the GitHub Copilot agent runtime, with planning, tool calls and file edits, in your apps.
HarnessAFreshness: A★ 10.6K↓ 1.2M/wk - 0.831score
CopilotKit
CopilotKit
Open-source SDK that connects AI agents to app front ends with chat UI, generative UI, shared state and human approvals; creator of the AG-UI protocol.
HarnessAFreshness: A★ 38.2K↓ 286.2K/wk
Related
Cite this page
What is Agent harness?. Agent Mart. https://agentmart.dev/glossary/harness (last updated 2026-10-26)
Written Oct 26, 2026, updated Oct 26, 2026. All glossary terms