AI Agent Harnesses - spinningideas/resources GitHub Wiki
"Agentic Harness" Frameworks
Below is a collection of information about "AI Agent" orchestration systems that enable creating and running a "harness" that powers agentic development flows (or any effort that uses an AI Model that requires multi-step reasoning and tool use done in a structured way with some form of verification to get to "done")
TLDR
High Level TLDR:
- https://addyosmani.com/blog/agent-harness-engineering/ + https://ai.gopubby.com/harness-engineering-what-every-ai-engineer-needs-to-know-in-2026-0ab649e5686a
Summary
A coding agent is two things: the model, and the harness wrapped around it. The model reasons. The harness gives it your context, your tools, and your process. One teardown of Claude Code found roughly 98% of it is the harness, not the model. The code analysis showed that the harness huge part of the "magic" of Claude Code and this is your true leverage - the model is becoming a commodity or can be substituted to some degree.
There are two levels to building a harness.
1) AI layer
The first level is a single coding agent session: the wrapper around one instance of Claude Code, Codex, or whatever you use.
The AI layer: your rules, skills, MCP servers, hooks, LSP, and subagents. Think BMAD or GitHub Spec Kit. Sounds a lot like context engineering, but what separates it is the mindset. When the agent does something dumb, you don't just blame the model - you improve the harness! It missed a convention, so that becomes a rule. It ran something destructive, so a hook now blocks it. Every mistake becomes a permanent upgrade to your system. See https://github.com/spinningideas/resources/wiki/AI-Assisted-Product-Development#general-ai-assisted-development-toolkits
2) Orchestration layer
The second level is orchestrating multiple coding agent sessions into one workflow (think Ralph loop - see https://github.com/spinningideas/resources/wiki/AI-Ralph-Technique). Given the context window restrictions of many models you should not hand a massive PRD to a single session and hope it can dissect it all. Instead, break it down into smaller, focused tasks and hand each task to a separate agent so that each agent has a fresh, clear, and focused context window to work with.
The orchestration flow breaks up the work in to multiple agents: One coordinates, one plans, one implements, one validates, and if everything passes the coordinator opens a pull request. Automate those handoffs and you get something like the Ralph loop, where the work is split into tasks and fresh sessions are run until the work is done and validated. That is how you take on larger tasks reliably without babysitting every step.
That second level is the real future of agentic engineering. The models and the tools keep getting better, and the way you scale alongside them is the harness you build around them.
Guides
High level guides and resources
Guides
Articles with general guides and high level overviews
- https://www.anthropic.com/engineering/harness-design-long-running-apps - Anthropic's guide on designing harnesses for long-running applications
- https://www.philschmid.de/agent-harness-2026 - Phil Schmid's guide on agent harness engineering in 2026
- https://medium.com/@bijit211987/agent-harness-b1f6d5a7a1d1 (contains example python code for a basic harness)
- https://www.decodingai.com/p/agentic-harness-engineering
- https://github.com/FareedKhan-dev/all-agentic-architectures + https://www.youtube.com/watch?v=PZsJfBVDZZc
Repositories
Various repositories with harness implementations and examples
- https://github.com/walkinglabs/awesome-harness-engineering - Comprehensive collection of harness engineering resources
- https://github.com/RUCAIBox/awesome-agent-harness - Great high level overview of agentic harness and its history/evolution
- https://github.com/lopopolo/harness-engineering - Ryan Lopopolo’s anthology, field guide, and agent context bundle for harness engineering
- https://github.com/Archive228/loopkit - 33 battle-tested skills + minimal .claude harness for any coding agent (Claude Code, Cursor, Codex, Gemini CLI).
- https://github.com/ray-r-ren/agent-apprenticeship
Video Explainers
- https://www.youtube.com/watch?v=nBH07G-zayk - video explaining highlevel usage of "Agentic Harness" frameworks
- https://www.youtube.com/watch?v=ulNsa0sD8N0 - Cole Medin explaining highlevel usage of "Agentic Harness" frameworks
What is an Agent Harness?
An Agent Harness is the infrastructure that wraps around an AI model to manage long-running tasks. It is not the agent itself. It is the software system that governs how the agent operates, ensuring it remains reliable, efficient, and steerable.
It operates at a higher level than agent frameworks. While a framework provides the building blocks for tools or implements the agentic loop. The harness provides prompt presets, opinionated handling for tool calls, lifecycle hooks or ready-to-use capabilities like planning, filesystem access or sub-agent management. It is more than a framework, it comes with batteries included.
Agent Harness Architecture
We can visualize this by comparing it to a computer:
- The Model is the CPU: It provides the raw processing power.
- The Context Window is the RAM: It is the "limited", volatile working memory (eg the 256k token limit).
- The Agent Harness is the Operating System: It curates the context, handles the "boot" sequence (prompts, hooks), and provides standard drivers (tool handling).
- The Agent is the Application: It is the specific user logic running on top of the OS.
Agentic Harness Examples
The Agent harness implements "Context Engineering" strategies like reducing context via compaction, offloading state to storage, or isolating tasks into sub-agents.
Claude Code is a prime example of this emerging category, but there are a number of other frameworks and efforts emerging, and one could argue that all coding CLIs are, in a way, specialized agent harnesses given proper setup and a process calling them in a loop in a structured way.
Agent Harness Examples
Toolkits
Specific toolkits and libraries to help build harnesses
- https://github.com/kdlbs/kandev
- https://www.onorca.dev/ - Run Claude Code, Codex, OpenCode, and more side by side in isolated worktrees.
- https://www.glean.com/ - Work AI that understands your company
- Claude Code - https://github.com/claude-dev/ + claude-code CLI - this CLI tool can be used as a harness given correct setup of tools and permissions
- pi.dev - https://pi.dev - this "minimal agent harness" can be used as a harness given correct setup of tools and permissions
- https://github.com/earendil-works/pi - (AI agent toolkit: unified LLM API, agent loop, TUI, coding agent CLI that leverages pi agent framework)
- https://github.com/yzddp/harnesscode - ( code toolkit that leverages OpenCode or Claude Code)
- https://gist.github.com/amazingvince/52158d00fb8b3ba1b8476bc62bb562e3 - contains full recipe with example code
- LangChain DeepAgents - https://github.com/langchain-ai/langchain/tree/master/libs/langchain/langchain/deepagents
Additional Agentic "Frameworks"
There are a number of efforts that could also be considered some form of an "Agentic Harness" framework:
- Superpowers - https://github.com/obra/superpowers
- https://github.com/gastownhall/gastown
- GSD - https://github.com/gsd-build/get-shit-done
- SpecKit - https://github.com/github/spec-kit
- BMad - https://docs.bmad-method.org/ + https://github.com/bmad-code-org/BMAD-METHOD
- https://github.com/coleam00/ai-transformation-workshop
- https://github.com/mattpocock/skills
- https://github.com/openai/symphony
- https://github.com/enmanuelmag/agent-harness-kit
- https://www.builder-os.dev/
- https://github.com/garrytan/gstack