Awesome list for AI agent harness engineering: tools, patterns, evals, memory, MCP, permissions, observability, and orchestration.
Python agent-harnessagent-memoryagent-orchestrationai-agent-harnessai-agentsawesome-listcontext-engineeringharness-engineeringmcp
Add 'AI Harness Engineering: A Runtime Substrate' (arXiv 2605.13357) to Foundations — operational H0–H3 harness maturity ladder complementing the constitutive definition; fix five dead URLs found by verify_urls.py (Anthropic posts moved to claude-code-sandboxing/writing-tools-for-agents, MCP auth spec → 2026-07-28, HyperAgents → Wayback snapshot, drop deleted anthropics/ai-harness-scorecard)
ai-boost49fa995f24b7
diff --git a/README.md b/README.mdindex 94acfe9..bb198e3 100644--- a/README.md+++ b/README.md@@ -69,8 +69,8 @@ Canonical essays that define what harness engineering is and why it matters.- [Run Long-Horizon Tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex/) — OpenAI's practice guide for long-horizon task planning: introduces Plan.md, Implement.md, Documentation.md as reusable harness artifacts.- [Building Effective Agents](https://www.anthropic.com/research/building-effective-agents) — Anthropic's foundational guide on agent architecture, covering when to use workflows vs. agents and how to compose primitives.- [Harness Design for Long-Running Application Development](https://www.anthropic.com/engineering/harness-design-long-running-apps) — Anthropic's engineering blog on designing harnesses for sustained, multi-session development tasks. Key insight: every harness component assumes the model can't do something; those assumptions expire.-- [Writing Effective Tools for Agents](https://www.anthropic.com/engineering/writing-effective-tools-for-agents) — Anthropic's guide on tool interface design: naming, schemas, error surfaces, and the principle that tool design is agent UX.-- [Beyond Permission Prompts](https://www.anthropic.com/engineering/beyond-permission-prompts) — Anthropic on building structured permission and authorization systems into agent harnesses instead of relying on natural-language permission text.+- [Writing Effective Tools for Agents](https://www.anthropic.com/engineering/writing-tools-for-agents) — Anthropic's guide on tool interface design: naming, schemas, error surfaces, and the principle that tool design is agent UX.+- [Beyond Permission Prompts](https://www.anthropic.com/engineering/claude-code-sandboxing) — Anthropic on building structured permission and authorization systems into agent harnesses instead of relying on natural-language permission text.- [Demystifying Evals for AI Agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) — Anthropic's framework for evaluating agent behavior: what to measure, how to build eval harnesses, and why unit-test-style evals fail for agents.- [What is an AI Agent?](https://www.ibm.com/think/topics/ai-agents) — IBM's definitional piece, useful for anchoring harness design decisions to a clear model of what an agent actually is.- [Agent Development Kit: Making it easy to build multi-agent applications](https://developers.googleblog.com/en/agent-development-kit-easy-to-build-multi-agent-applications/) — Google's announcement and design rationale for ADK: explains the multi-agent topology, tool registration model, and eval pipeline that shaped their framework. Complements the Anthropic/OpenAI framing with Google's production perspective.@@ -91,6 +91,7 @@ Canonical essays that define what harness engineering is and why it matters.- [Code as Agent Harness](https://arxiv.org/abs/2605.18747) — May 2026 survey framing code as the basis for agent infrastructure rather than merely output: it unifies harness interface, mechanisms, and multi-agent scaling through shared code artifacts, and surfaces open challenges from verification under incomplete feedback to regression-free improvement.- [Harness Engineering: How to Build Reliable AI Agents by Engineering the System, Not the Model](https://www.deepset.ai/blog/harness-engineering) — deepset's May 2026 synthesis of agent reliability as a harness problem: a failure-classification framework (context, constraint, verification, planning failures) that maps each failure mode to the right harness component, and a concrete demonstration that harness-only changes can move agents 20+ ranking positions without swapping the model.- [What makes a harness a harness: necessary and sufficient conditions for an agent harness](https://arxiv.org/abs/2606.10106) — June 2026 constitutive definition of an agent harness as a runtime layer with four necessary and sufficient elements: an agent loop, a tool interface, context management, and control mechanisms. Applied to Claude Code, Codex CLI, Aider, Cline, OpenHands, and SWE-agent, it provides a rigorous inclusion test for distinguishing harnesses from generators, guardrails, or plain tool wrappers.+- [AI Harness Engineering: A Runtime Substrate for Foundation-Model Software Agents](https://arxiv.org/abs/2605.13357) — May 2026 formalization of the harness as the runtime substrate that mediates model–environment interaction: eleven component responsibilities (task specification, verification, failure attribution, and more) operationalized as a four-level ladder (H0–H3) that progressively exposes runtime support to the agent, plus a trace-based protocol that packages runs into auditable episode files. Complements the constitutive definition above with an operational maturity model — higher ladder levels produce reproduction logs, deterministic requirement checks, and structured verification reports instead of bare patches.- [Architectural Design Decisions in AI Agent Harnesses](https://arxiv.org/abs/2604.18071) — April 2026 empirical study of 70 public agent systems across five recurring dimensions (subagent architecture, context management, tool systems, safety mechanisms, orchestration) that synthesizes five architectural patterns. The comparative research package turns harness selection from a framework popularity contest into a reasoned comparison of design trade-offs.- [RUCAIBox/awesome-agent-harness](https://github.com/RUCAIBox/awesome-agent-harness) — RUCAIBox's survey paper and curated reading list on *Agent Systems with Harness Engineering*, mapping harness design across agent workflows, memory systems, skill libraries, and multi-agent orchestration with 500+ references. The clearest academic complement to vendor-specific harness engineering posts. - [Tuning the harness, not the model: a Nemotron 3 Ultra playbook](https://blog.langchain.com/tuning-the-harness-not-the-model-a-nemotron-3-ultra-playbook) — LangChain's July 2026 playbook showing how harness-only tuning brought Nemotron 3 Ultra within one point of Opus 4.8 on Deep Agents at roughly one-tenth the cost ($4.48 vs $43.48). The clearest recent demonstration that evals are the training data for harness work and that fit — not raw model capability — determines how much quality reaches the task.@@ -184,7 +185,7 @@ Harness components organized by the problem they solve, not by vendor.### Tool Design-- [Writing Effective Tools for Agents](https://www.anthropic.com/engineering/writing-effective-tools-for-agents) — Tool naming, schema design, error messages, and return value conventions that make agents more reliable.+- [Writing Effective Tools for Agents](https://www.anthropic.com/engineering/writing-tools-for-agents) — Tool naming, schema design, error messages, and return value conventions that make agents more reliable.- [Tool Use — Claude API Docs](https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview) — Authoritative reference for client vs. server tool execution models, strict schema enforcement, and tool_result error signaling. The distinction between client-side and server-side tool execution is a foundational harness architecture decision.- [Function Calling — OpenAI Docs](https://platform.openai.com/docs/guides/function-calling) — Defines the de facto industry-standard JSON Schema conventions for tool definitions and parallel function calling. Essential reading before designing a tool interface that needs to work across multiple models.- [Tool Annotations as Risk Vocabulary](https://blog.modelcontextprotocol.io/posts/2026-03-16-tool-annotations/) — The MCP team's definitive post on the four tool annotation hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) as inputs to harness permission decisions, not enforced contracts. The "lethal trifecta" — private data access + untrusted content exposure + external communication — is the most actionable framing for why single-tool safety analysis misses the risk that emerges from tool *combinations*.@@ -249,7 +250,7 @@ Harness components organized by the problem they solve, not by vendor.### Permissions & Authorization-- [Beyond Permission Prompts](https://www.anthropic.com/engineering/beyond-permission-prompts) — Structured authorization patterns for agents: how to give agents the right permissions without relying on prompt-level trust.+- [Beyond Permission Prompts](https://www.anthropic.com/engineering/claude-code-sandboxing) — Structured authorization patterns for agents: how to give agents the right permissions without relying on prompt-level trust.- [OWASP LLM06:2025 — Excessive Agency](https://genai.owasp.org/llmrisk/llm062025-excessive-agency/) — OWASP's authoritative definition of the "excessive agency" risk: over-provisioned functions, unnecessary permissions, and missing approval mechanisms. The standard checklist for auditing harness permission scope against principle of least privilege.- [GitHub Enterprise — Governing Agents](https://wellarchitected.github.com/library/governance/recommendations/governing-agents/) — April 2026 GitHub official guide for enterprise agent governance: MCP server registry curation with ruleset-protected configurations, agent environment standardization via `copilot-setup-steps.yml`, ephemeral runner enforcement, and cloud-agent firewall allowlisting. The most concrete published reference for governing agent fleets at scale without creating bottlenecks.- [Claude Code Auto Mode: A Safer Way to Skip Permissions](https://www.anthropic.com/engineering/claude-code-auto-mode) — Anthropic's engineering post on replacing approval fatigue (users approve 93% of prompts, making approvals meaningless) with a two-stage classifier: fast single-token gate first, chain-of-thought reasoning only on flagged actions. The design decisions — stripping assistant messages to prevent the agent from rationalizing dangerous actions, deny-and-continue recovery instead of halt — are the reference design for safe-by-default headless agent permissions.@@ -455,7 +456,7 @@ Real repositories worth studying — each with a note on *why* it's worth your t- [agentic-harness-engineering](https://github.com/china-qijizhifeng/agentic-harness-engineering) — Observability-driven automatic evolution of coding-agent harnesses that decomposes the scaffold into seven orthogonal, git-tracked components and iteratively improves them through trace distillation and evidence-backed edits. Ranked #3 on Terminal-Bench 2.0 (84.7%) with demonstrated cross-model transfer, showing that evolved harness components generalize beyond benchmark-specific tuning. - [Meta-Harness: End-to-End Optimization of Model Harnesses](https://arxiv.org/abs/2603.28052) — Treats the entire harness (system prompt, tool definitions, context management, completion logic) as a joint optimization target rather than hand-tuning each piece. The key insight: give the proposer agent filesystem access to all prior harness candidates, scores, and execution traces — 10M-token diagnostic context vs. the 26K in prior work — so it can trace failures back to specific harness decisions.- [Self-Harness: Harnesses That Improve Themselves](https://arxiv.org/abs/2606.09498) — June 2026 proposal for a self-improving harness loop: the agent mines its own failure traces, proposes minimal harness edits, and validates them through regression testing. Improves Terminal-Bench-2.0 pass rates by 20+ percentage points across MiniMax, Qwen, and GLM without requiring stronger external agents, showing that model-specific harness tuning can be automated rather than hand-engineered.-- [HyperAgents: Self-Improving AI Systems](https://pooya.blog/blog/hyperagents-self-improving-ai-meta-research-2026/) — Meta's framework integrating task-solving and meta-level improvement into a unified, editable program with metacognitive self-modification. Improved paper-review tasks from 0.0 to 0.710, transferred to Olympiad math grading at 0.630 improvement@50 score. Shows how agents can be designed to modify their own harness (prompts, tools, strategy) based on execution history — the ultimate meta-harness where the agent itself evolves the scaffolding.+- [HyperAgents: Self-Improving AI Systems](https://web.archive.org/web/20260408090850/https://pooya.blog/blog/hyperagents-self-improving-ai-meta-research-2026/) — Meta's framework integrating task-solving and meta-level improvement into a unified, editable program with metacognitive self-modification. Improved paper-review tasks from 0.0 to 0.710, transferred to Olympiad math grading at 0.630 improvement@50 score. Shows how agents can be designed to modify their own harness (prompts, tools, strategy) based on execution history — the ultimate meta-harness where the agent itself evolves the scaffolding.- [AutoAgent](https://github.com/kevinrgu/autoagent) — Open-source library (April 2026) that automates the harness engineering loop itself: give it a task and a benchmark, and it iterates overnight on system prompts, tool configurations, agent orchestration, and routing — keeping or discarding each change based on score. In a 24-hour run, hit #1 on SpreadsheetBench (96.5%) and the top GPT-5 score on TerminalBench (55.1%), beating every hand-engineered entry. The `program.md` separation of concerns (human writes the directive, agent engineers the harness) is the most practical meta-harness pattern published so far. - [metaharness](https://github.com/SuperagenticAI/metaharness) — Open-source Python library (April 2026) that implements an outer optimization loop around executable harnesses for coding agents. Inspired by the Meta-Harness paper, it treats `AGENTS.md`, setup scripts, validation logic, and test flows as optimizable artifacts rather than static configs — with filesystem-backed run stores, environment snapshots, and scoped write enforcement. The most practical reference for teams who want to improve harness *code* rather than just prompts. - [meta-agent](https://github.com/canvas-org/meta-agent) — Lightweight continual harness optimizer (April 2026) built on the Claude Agent SDK. Runs an outer loop that reads task traces, rewrites harness configs, and re-evaluates — achieving 67% → 87% on tau-bench with no labeled training data. Demonstrates that even small, focused meta-harness loops can yield large reliability gains when harness configs are treated as learnable parameters.@@ -537,13 +538,12 @@ Real repositories worth studying — each with a note on *why* it's worth your t## Security, Sandbox & Permissions-- [Beyond Permission Prompts](https://www.anthropic.com/engineering/beyond-permission-prompts) — The authoritative resource on moving from prompt-level permission grants to structured authorization in the harness.+- [Beyond Permission Prompts](https://www.anthropic.com/engineering/claude-code-sandboxing) — The authoritative resource on moving from prompt-level permission grants to structured authorization in the harness.- [How we contain Claude across products](https://www.anthropic.com/engineering/how-we-contain-claude) — Anthropic's May 2026 cross-product containment write-up: why environmental isolation must be the primary boundary, how model-layer defenses alone miss ~17% of overeager actions, and concrete sandbox architectures for chat, terminal, and autonomous workspace products. The exfiltration-through-allowlist case study is a stark reminder that the weakest link is often custom harness plumbing, not the sandbox itself.- [Building a safe, effective sandbox to enable Codex on Windows](https://openai.com/index/building-codex-windows-sandbox/) — OpenAI's July 2026 engineering deep-dive into sandboxing Codex on Windows, where no Seatbelt/seccomp-style capability isolation exists: why AppContainer, Windows Sandbox, and Mandatory Integrity Control fell short, and how write-restricted tokens plus network suppression produce an elevated sandbox that keeps file writes and network access inside safe bounds. The clearest first-party reference for porting agent sandbox constraints to an OS without native primitives.- [The Agent Harness Belongs Outside the Sandbox](https://www.mendral.com/blog/agent-harness-belongs-outside-sandbox) — Andrea Luzzardi's April 2026 argument for running the agent loop outside the sandbox: credentials stay out of untrusted containers, sandboxes become suspendable cattle rather than session lifelines, and the architecture cleanly separates orchestration from execution. The clearest published case for why "harness inside" and "harness outside" are different security and reliability models, not implementation details.- [Build zero-trust AI agents with Google's Agent Development Kit](https://developers.googleblog.com/build-zero-trust-ai-agents-with-googles-agent-development-kit/) — Google's August 2026 guide to hardening autonomous ADK agents against prompt injection and production-state mutation, using cryptographic write signatures, gVisor sandboxing, and deterministic semantic gateways that sit outside the LLM context. The accompanying open-source customer-support agent demonstrates the threat model and defenses concretely.-- [Model Context Protocol — Authorization](https://modelcontextprotocol.io/specification/2025-11-05/basic/authorization) — MCP's specification for OAuth-based authorization flows when agents access external services.-- [AI Harness Scorecard](https://github.com/anthropics/ai-harness-scorecard) — Scores repositories on AI harness safeguards. Useful checklist for auditing your own harness's security posture.+- [Model Context Protocol — Authorization](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) — MCP's specification for OAuth-based authorization flows when agents access external services.- [AgentShield](https://github.com/affaan-m/agentshield) — Security scanner for AI agent configurations that detects hardcoded secrets, permission misconfigurations, hook injection, risky MCP servers, and prompt-injection vectors in Claude Code setups. Worth including because it turns harness security from a post-hoc audit into a pre-commit gate, surfacing configuration-level vulnerabilities before the agent runs. - [E2B](https://github.com/e2b-dev/E2B) — Firecracker microVM sandboxes purpose-built for agent tool loops: ~150ms cold start, Python/JS SDKs, open source. The clearest reference implementation of "code execution as a harness primitive" rather than a CI system bolted on. - [tldrsec/prompt-injection-defenses](https://github.com/tldrsec/prompt-injection-defenses) — The most complete catalog of practical prompt injection defenses (input validation, tool output sanitization, canary tokens, etc.). Functions as a design checklist for hardening trust boundaries in any agent harness. 