Skip to content

Awesome list for AI agent harness engineering: tools, patterns, evals, memory, MCP, permissions, observability, and orchestration.

Initial commit: awesome-harness-engineering

noahbenjamin1994ca4c56670fb2
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e43b0f9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..96ed069
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,45 @@
+# AGENTS.md
+
+> Instructions for AI agents contributing to this repository.
+
+## What this repo is
+
+A curated list of resources, patterns, and templates for building reliable AI agent harnesses. The primary artifact is `README.md`.
+
+## Conventions
+
+- All content in `README.md` is in English.
+- Each resource entry follows the format: `- [Title](URL) — 1–2 sentence note explaining why it's worth including.`
+- Notes should be opinionated: explain *why* the resource matters, not just what it is.
+- Do not add resources without a note.
+- Sections in `README.md` are organized by the *problem being solved*, not by vendor or model.
+
+## What belongs
+
+Resources that address a specific harness engineering problem:
+- Context delivery and compaction
+- Tool design and MCP
+- Planning artifacts and task decomposition
+- Permissions and sandboxing
+- Memory and state management
+- Verification and evals
+- Agent loop structure and orchestration
+
+## What doesn't belong
+
+- General AI/ML papers not specific to agent harnesses
+- Model capability benchmarks unrelated to harness design
+- Product marketing without technical substance
+- Tutorials on using a model (vs. building scaffolding around it)
+
+## Templates
+
+Files in `templates/` are reusable starting points. When editing templates, preserve the comment structure — the comments are the value.
+
+## Verification
+
+Before any PR:
+- [ ] All URLs are reachable
+- [ ] All entries have a 1–2 sentence explanatory note
+- [ ] No section has more than ~10 entries without a clear reason
+- [ ] `README.md` renders correctly as Markdown
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 120000
index 0000000..47dc3e3
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1 @@
+AGENTS.md
\ No newline at end of file
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..f1e5da4
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,31 @@
+# Contributing
+
+## Criteria
+
+A resource belongs in this list if it:
+
+1. **Addresses a specific harness problem** — context delivery, tool design, planning artifacts, permissions, memory, verification, sandboxing, or agent loop structure.
+2. **Is worth someone's time** — not just "exists." Include a 1–2 sentence note explaining why.
+3. **Is vendor-agnostic by principle** — resources tied to a specific model or platform are fine if the *pattern* generalizes.
+
+## What doesn't belong
+
+- General AI/ML papers not specific to agent harnesses
+- Model capability benchmarks unrelated to harness design
+- Product marketing or announcement posts without technical substance
+- Tutorials on using a model (vs. building the scaffolding around it)
+
+## How to contribute
+
+1. Fork and create a branch.
+2. Add your resource to the appropriate section in `README.md`.
+3. Format: `- [Title](URL) — 1–2 sentence note explaining why it's worth including.`
+4. Open a pull request with a brief description of what you're adding and why.
+
+## Updating existing entries
+
+If a link is dead or a resource has a better successor, open an issue or PR with the replacement.
+
+## Template contributions
+
+If you have a harness artifact template (AGENTS.md, PLAN.md, etc.) that you've used in production and found valuable, add it to `templates/` with a brief header comment explaining the intended use.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c5a854c
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,11 @@
+CC0 1.0 Universal
+
+The person who associated a work with this deed has dedicated the work to the
+public domain by waiving all of his or her rights to the work worldwide under
+copyright law, including all related and neighboring rights, to the extent
+allowed by law.
+
+You can copy, modify, distribute and perform the work, even for commercial
+purposes, all without asking permission.
+
+https://creativecommons.org/publicdomain/zero/1.0/
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..67904fe
--- /dev/null
+++ b/README.md
@@ -0,0 +1,156 @@
+# Awesome Harness Engineering [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)
+
+> Curated resources, patterns, and templates for building reliable AI agent harnesses.
+
+**Harness engineering** is the discipline of designing the scaffolding — context delivery, tool interfaces, planning artifacts, verification loops, memory systems, and sandboxes — that surrounds an AI agent and determines whether it succeeds or fails on real tasks.
+
+This list focuses on the *harness*, not the model. Every component here exists because the model can't do it alone — and the best harnesses are designed knowing those components will become unnecessary as models improve.
+
+---
+
+## Contents
+
+- [Foundations](#foundations)
+- [Design Primitives](#design-primitives)
+- [Reference Implementations](#reference-implementations)
+- [Security, Sandbox & Permissions](#security-sandbox--permissions)
+- [Evals & Verification](#evals--verification)
+- [Templates](#templates)
+- [Related Awesome Lists](#related-awesome-lists)
+- [Contributing](#contributing)
+
+---
+
+## Foundations
+
+Canonical essays that define what harness engineering is and why it matters.
+
+- [Harness Engineering](https://openai.com/index/harness-engineering/) — OpenAI's framing of harness engineering as a discipline: how to design the scaffolding that lets Codex and similar agents operate reliably in an agent-first world.
+- [Unrolling the Codex Agent Loop](https://openai.com/index/unrolling-the-codex-agent-loop/) — OpenAI's detailed breakdown of the Codex agent loop, exposing each harness component and where it can be improved.
+- [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.
+- [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.anthropic.com/research/what-is-an-agent) — Anthropic's definitional piece, useful for anchoring harness design decisions to a clear model of what an agent actually is.
+
+---
+
+## Design Primitives
+
+Harness components organized by the problem they solve, not by vendor.
+
+### Agent Loop
+
+- [Unrolling the Codex Agent Loop](https://openai.com/index/unrolling-the-codex-agent-loop/) — The canonical decomposition of what happens inside one agent loop iteration: observe, plan, act, verify.
+
+### Planning & Task Decomposition
+
+- [Run Long-Horizon Tasks with Codex](https://developers.openai.com/blog/run-long-horizon-tasks-with-codex/) — Introduces milestone-based planning artifacts (Plan.md, Implement.md) as harness-level state.
+- [Harness Design for Long-Running Application Development](https://www.anthropic.com/engineering/harness-design-long-running-apps) — Multi-session planning, progress tracking, and the role of persistent planning documents.
+
+### Context Delivery & Compaction
+
+- [Harness Engineering](https://openai.com/index/harness-engineering/) — How to structure context windows for agents: what to include, what to exclude, and how context shape affects agent behavior.
+
+### 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.
+
+### Skills & MCP
+
+- [Model Context Protocol](https://modelcontextprotocol.io/introduction) — Anthropic's open protocol for connecting agents to external tools, data sources, and services in a standardized way.
+
+### 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.
+
+### Memory & State
+
+- [Building Effective Agents](https://www.anthropic.com/research/building-effective-agents) — Covers in-context, external, and procedural memory patterns as harness-level concerns.
+
+### Task Runners & Orchestration
+
+- [Harness Engineering](https://openai.com/index/harness-engineering/) — How task runners fit into the harness: queueing, parallelism, and progress reporting.
+
+### Verification & CI Integration
+
+- [Demystifying Evals for AI Agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) — How to build verification into the harness loop, not just as a post-hoc eval.
+
+---
+
+## Reference Implementations
+
+Real repositories worth studying — each with a note on *why* it's worth your time.
+
+### Tutorials & Educational
+
+- [shareAI-lab/learn-claude-code](https://github.com/shareAI-lab/learn-claude-code) — Step-by-step deconstruction of Claude Code as an agent harness (s01–s12). Best resource for understanding how agent loop, tool use, skills, context compaction, and task management compose in practice. ★42k
+- [AutoJunjie/awesome-agent-harness](https://github.com/AutoJunjie/awesome-agent-harness) — Curated list organized into Full Lifecycle Platforms, Task Runners, Agent Runtimes, Coding Agents. Close to this list's scope; good complementary reference. ★189
+
+### Generators & Meta-Harnesses
+
+- [revfactory/harness](https://github.com/revfactory/harness) — A meta-skill that generates domain-specific agent teams and the skills they use. Good example of harness-as-code, where the harness itself is produced by an agent. ★238
+
+### Demo Harnesses
+
+- [coleam00/your-claude-engineer](https://github.com/coleam00/your-claude-engineer) — Agent harness with Slack, GitHub, and Linear integrations. Useful reference for how real-world tool wiring works inside a harness. ★112
+
+### Adjacent Collections
+
+- [jiji262/awesome-harness-engineering](https://github.com/jiji262/awesome-harness-engineering) — Focuses on platform delivery governance, IDP, GitOps, and AI-native engineering. Overlaps with this list on the platform engineering side; more Harness-the-company oriented. ★11
+
+---
+
+## 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.
+- [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.
+
+---
+
+## Evals & Verification
+
+- [Demystifying Evals for AI Agents](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents) — Anthropic's comprehensive guide to agent evaluation: trajectory evals, outcome evals, and how to build eval harnesses that are themselves reliable.
+- [SWE-bench](https://www.swebench.com) — The canonical benchmark for coding agents. Essential reference for understanding what "verified working" means for harness outputs.
+
+---
+
+## Templates
+
+Reusable starting points for harness artifacts. Copy and adapt.
+
+| Template | Purpose |
+|---|---|
+| [`templates/AGENTS.md`](templates/AGENTS.md) | Project-level agent instructions: conventions, constraints, tool permissions |
+| [`templates/PLAN.md`](templates/PLAN.md) | Task planning artifact with milestones and verification gates |
+| [`templates/IMPLEMENT.md`](templates/IMPLEMENT.md) | Implementation log: decisions, deviations, open questions |
+| [`templates/HARNESS_CHECKLIST.md`](templates/HARNESS_CHECKLIST.md) | Review checklist before shipping a harness to production |
+
+---
+
+## Related Awesome Lists
+
+Lists that cover adjacent territory — overlapping but not identical scope.
+
+- [Awesome Context Engineering](https://github.com/Meirtz/Awesome-Context-Engineering) — Comprehensive survey on context engineering: prompt engineering, RAG, context window management, production AI systems.
+- [awesome-claude-code](https://github.com/hesreallyhim/awesome-claude-code) — Curated resources, tools, and workflows specifically for Claude Code users.
+- [Awesome MCP Servers](https://github.com/punkpeye/awesome-mcp-servers) — Comprehensive list of MCP servers for extending agents with external capabilities.
+
+---
+
+## Contributing
+
+See [CONTRIBUTING.md](CONTRIBUTING.md).
+
+**What belongs here:** Resources that address a specific harness engineering problem (context, tools, planning, permissions, memory, verification, sandboxing). Each addition should include a 1–2 sentence note explaining *why* it's worth including — this is an opinionated list, not a directory.
+
+**What doesn't belong here:** General AI/ML papers, model benchmarks unrelated to agent harnesses, tutorials on using specific models, product marketing.
+
+---
+
+## License
+
+[CC0](LICENSE) — public domain dedication.
diff --git a/templates/AGENTS.md b/templates/AGENTS.md
new file mode 100644
index 0000000..e8968e8
--- /dev/null
+++ b/templates/AGENTS.md
@@ -0,0 +1,80 @@
+# AGENTS.md
+
+> Project-level instructions for AI agents working in this repository.
+> Place this file at the repo root. Agents should read it before starting any task.
+
+## Project overview
+
+<!-- One paragraph: what this project does, its tech stack, and its primary goals. -->
+
+## Repository structure
+
+```
+src/ # Application code
+tests/ # Test suite
+docs/ # Documentation
+scripts/ # Build and utility scripts
+```
+
+## Conventions
+
+### Code style
+
+<!-- Language, formatter, linter, and any project-specific conventions. -->
+
+### Naming
+
+<!-- File naming, function naming, variable naming conventions. -->
+
+### Testing
+
+<!-- How to run tests. What constitutes a passing test suite. -->
+
+```bash
+# Run all tests
+<command>
+
+# Run a single test file
+<command>
+```
+
+### Commits
+
+<!-- Commit message format, branching strategy, PR conventions. -->
+
+## Tool permissions
+
+<!-- What tools / file paths / commands the agent is allowed to use.
+ Be explicit: agents perform better with clear boundaries than vague restrictions. -->
+
+Allowed:
+- Read and edit files under `src/`, `tests/`, `docs/`
+- Run `<test command>`
+- Run `<lint/format command>`
+
+Restricted (ask before proceeding):
+- Modifying `<critical config files>`
+- Running destructive commands (`rm -rf`, database drops, etc.)
+- Pushing to `main` or creating releases
+
+Not allowed:
+- Modifying CI/CD pipeline configuration without explicit instruction
+- Installing new dependencies without explicit instruction
+
+## Known constraints
+
+<!-- Anything that would surprise an agent working here for the first time. -->
+<!-- e.g., "The monorepo build tool is X, not Y", "Tests require a running Docker daemon" -->
+
+## Verification gates
+
+Before marking any task complete, the agent must verify:
+
+- [ ] Tests pass (`<command>`)
+- [ ] Linter passes (`<command>`)
+- [ ] No new warnings introduced
+- [ ] Changed files are within the permitted scope above
+
+## Contact / escalation
+
+If the agent cannot proceed without a decision that falls outside its permitted scope, it should stop and describe the blocker clearly rather than making an assumption.
diff --git a/templates/HARNESS_CHECKLIST.md b/templates/HARNESS_CHECKLIST.md
new file mode 100644
index 0000000..7701018
--- /dev/null
+++ b/templates/HARNESS_CHECKLIST.md
@@ -0,0 +1,62 @@
+# Harness Review Checklist
+
+> Run through this before shipping a harness to production or handing it off.
+> A failing item is a blocker; a skipped item needs a written justification.
+
+## Agent instructions (AGENTS.md)
+
+- [ ] Project overview is accurate and up to date
+- [ ] Repository structure reflects the current layout
+- [ ] Tool permissions are explicit — allowed, restricted, and not-allowed are all specified
+- [ ] Verification gates are defined and commands are correct
+- [ ] No ambiguous instructions that could be interpreted multiple ways
+
+## Tool design
+
+- [ ] Each tool has a clear, unambiguous name
+- [ ] Tool schemas are minimal — no optional fields that the agent won't use
+- [ ] Error messages tell the agent what to do next, not just what went wrong
+- [ ] Tool return values are consistent (same shape on success and failure)
+- [ ] No tool does more than one conceptual thing
+
+## Context delivery
+
+- [ ] Context is scoped to what the agent needs for this task — not the entire codebase
+- [ ] Long-lived state (plans, decisions, progress) is in files, not in the prompt
+- [ ] Context compaction strategy is defined for multi-session tasks
+- [ ] No sensitive data (secrets, credentials) in agent-accessible context
+
+## Planning artifacts
+
+- [ ] PLAN.md exists for non-trivial tasks
+- [ ] Milestones have explicit verification commands
+- [ ] Scope boundaries (in-scope / out-of-scope) are written down
+- [ ] IMPLEMENT.md captures decisions and deviations as they happen
+
+## Permissions & sandbox
+
+- [ ] Agent runs with the minimum permissions needed for the task
+- [ ] Destructive operations require explicit confirmation
+- [ ] Network access is scoped if possible
+- [ ] File system access is scoped to project directories
+
+## Verification loop
+
+- [ ] Tests exist for the agent's outputs
+- [ ] The agent can run the verification command itself (not just "human review")
+- [ ] Verification runs automatically on task completion, not just on PR
+- [ ] Eval criteria are written down before the task starts, not after
+
+## When this harness component should be removed
+
+> Every harness component exists because the model can't do something yet.
+> Document what capability improvement would make this component unnecessary.
+
+| Component | Exists because | Can be removed when |
+|---|---|---|
+| | | |
+
+---
+
+*Reviewed: YYYY-MM-DD*
+*Reviewer:*
diff --git a/templates/IMPLEMENT.md b/templates/IMPLEMENT.md
new file mode 100644
index 0000000..a3657c7
--- /dev/null
+++ b/templates/IMPLEMENT.md
@@ -0,0 +1,52 @@
+# IMPLEMENT.md
+
+> Implementation log. Captures decisions, deviations from the plan, and open questions
+> that arose during execution. Append-only — do not edit past entries.
+
+## Task reference
+
+<!-- Link to or copy the task description from PLAN.md -->
+
+---
+
+## Log
+
+### YYYY-MM-DD HH:MM — <brief title>
+
+**What happened:**
+<!-- What was done, found, or decided in this entry. -->
+
+**Decision:**
+<!-- If a choice was made: what was chosen and why. What was rejected and why. -->
+
+**Deviation from plan:**
+<!-- If this deviates from PLAN.md: describe the deviation and update PLAN.md accordingly. -->
+
+**Next:**
+<!-- What comes immediately next. -->
+
+---
+
+<!-- Add new entries above this line. Oldest entries at the bottom. -->
+
+## Deviations summary
+
+<!-- Running list of ways the implementation differed from the original plan.
+ Update as deviations occur. -->
+
+| Deviation | Reason | Plan updated? |
+|---|---|---|
+| | | |
+
+## Open questions (unresolved)
+
+<!-- Questions that came up during implementation and haven't been answered yet.
+ Move to "Resolved" once answered. -->
+
+- [ ]
+
+## Open questions (resolved)
+
+| Question | Answer | Date |
+|---|---|---|
+| | | |
diff --git a/templates/PLAN.md b/templates/PLAN.md
new file mode 100644
index 0000000..f13e689
--- /dev/null
+++ b/templates/PLAN.md
@@ -0,0 +1,50 @@
+# PLAN.md
+
+> Task planning artifact. Created at the start of a task; updated as milestones are reached.
+> The agent should update this file throughout execution, not just at the end.
+
+## Task
+
+<!-- One sentence: what is being built or fixed. -->
+
+## Context
+
+<!-- Why this task exists. What triggered it. What the success state looks like. -->
+
+## Approach
+
+<!-- High-level strategy. What will change and why. Note key trade-offs considered. -->
+
+## Milestones
+
+Mark each milestone `[x]` when complete. Do not mark complete until the verification gate passes.
+
+- [ ] **M1: <name>** — <what done looks like> | verify: `<command or check>`
+- [ ] **M2: <name>** — <what done looks like> | verify: `<command or check>`
+- [ ] **M3: <name>** — <what done looks like> | verify: `<command or check>`
+- [ ] **Final: all tests pass** — verify: `<test command>`
+
+## Scope boundaries
+
+In scope:
+-
+
+Out of scope (explicitly excluded from this task):
+-
+
+## Open questions
+
+<!-- Questions that arose during planning that need resolution before or during implementation. -->
+<!-- Format: - [ ] Question — where/how to resolve it -->
+
+## Risks
+
+<!-- What could go wrong. What assumptions this plan depends on. -->
+
+## Notes
+
+<!-- Running log of significant decisions made during execution.
+ Append entries; do not overwrite. -->
+
+---
+*Created: YYYY-MM-DD*