
TL;DR
A July 2026 paper from Tencent Hunyuan turns agent harnesses into behavior-level maps. The useful lesson for builders is simple: code search is not enough when one behavior spans prompts, tools, state, permissions, and runtime policy.
| Research notes | |
|---|---|
| Primary paper | arXiv:2607.13285 |
| Hugging Face signal | #1 HF paper of the day on July 16, 2026 |
| Project page | Harness Handbook |
| Code | Ruhan-Wang/Harness_Handbook |
| Google Trends check | Attempted July 16, 2026 for agent harness, AI agent framework, AI coding agent, agent evaluation, and agent memory. Google returned HTTP 429 through pytrends, so no numeric Trends rows are used here. |
Last updated: July 16, 2026
The next bottleneck for coding agents is not only model quality. It is finding the right code to change.
That sounds mundane until you look at a real agent harness. A deletion policy is not one function. It may be shaped by a system prompt, a tool wrapper, a sandbox, a permission cache, a retry path, a UI confirmation state, and a fallback command parser. A coding agent can search for delete, but that does not prove it found the behavior.
That is why Harness Handbook, a July 2026 paper from Tencent Hunyuan that hit Hugging Face Papers, is worth reading. The useful idea is not "make docs for your agent framework." It is "map behavior to code evidence before you ask an agent to edit the system."
This fits the thread we have been tracking across long-running agent harnesses, Flue and the harness layer, agent eval receipts, and SkillHone decision history. The model is only one part of the product. The harness decides what the model sees, remembers, invokes, retries, approves, and reports.
Harness Handbook adds a missing layer: a behavior-level manual that tells humans and agents where a behavior actually lives.
Code search is a weak interface for changing agent behavior.
Search is still useful. Static indexes are useful. Long context is useful. But none of those automatically answer the question a developer actually has:
Where is this behavior implemented?
The Harness Handbook paper calls that problem behavior localization. In plain English, it is the gap between the request and the file tree. A user asks for a behavior change: "make the agent ask before deleting a file," "log every shell command before execution," "stop retrying after three failed tool calls," or "route large edits through review." The repo is organized by modules, not behaviors. The implementation may be scattered across prompts, tool schemas, runtime state, guardrails, command policies, and UI code.
That mismatch is where many coding-agent edits go wrong.
The agent does not only need more context. It needs a better map.
Harness Handbook builds a three-level representation of an agent harness.
The first level gives the system-level flow. The second level breaks the system into behavior units. The third level opens a specific behavior unit and links its triggers, state changes, execution paths, exception paths, and implementation evidence back to source code.
The paper pairs that representation with Behavior-Guided Progressive Disclosure, or BGPD. The workflow is deliberately narrow:
That is a different shape from "stuff the repo into context and hope the planner finds it." It is closer to a map-and-receipts workflow. The handbook helps the agent find the likely behavior chain, but the repository remains the source of truth.
The project page gives a concrete example around confirming before file deletion. That behavior can involve prompt instructions, permission configuration, confirmation state, tool execution, and bypass paths. A keyword search can find fragments. A behavior map is supposed to show the chain.
Newsletter
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools, delivered free every week.
From the archive
Jul 16, 2026 • 6 min read
Jul 16, 2026 • 7 min read
Jul 16, 2026 • 7 min read
Jul 15, 2026 • 7 min read
Most teams adopting coding agents are adding harness features faster than they are documenting them.
You start with a model call. Then you add tools. Then file access. Then a sandbox. Then approvals. Then a memory file. Then subagents. Then CI. Then a browser. Then a Slack trigger. Then a retry loop. Six months later, "how does this behavior work?" is no longer obvious from the folder structure.
That is the same operational lesson behind OpenAI's Harness Engineering writeup, which we covered in the June Codex changelog analysis. The agent harness becomes the engineering system. Once that happens, the harness itself needs architecture, tests, and documentation that agents can use without guessing.
The Harness Handbook paper is especially interesting because it evaluates on two open-source harnesses, including Codex. The authors describe Codex-scale structure as thousands of files, tens of thousands of functions, and a dense code graph. That is exactly the environment where a naive "find the file and patch it" plan starts to break down.
This also explains why agent evals need baseline receipts. If you cannot localize the behavior, you cannot cleanly evaluate the change. The diff may pass tests while still missing a bypass path. The agent may edit the obvious wrapper while the real decision happens in state restoration, retry logic, or a policy fallback.
The obvious pushback is that this is documentation overhead.
That pushback is reasonable. Most teams do not need a generated behavior handbook for a small script, a single-purpose chatbot, or an internal workflow with five files. A good README, good tests, and direct code ownership are enough.
There is also a trust problem. A generated handbook can become stale. It can overstate what the code guarantees. It can turn into another artifact that humans stop checking. If the map is not grounded in source evidence and refreshed alongside code changes, it becomes a fancy hallucination surface.
The paper's answer is important: prose is not the authority. Code evidence is. The handbook is useful only when it narrows search and points back to verifiable implementation sites.
That is the standard builders should copy.
Do not ask an agent to trust generated docs. Ask it to use the docs as a routing layer, then verify against code.
You do not need to reproduce the full paper to use the idea.
For a production agent harness, start with a lightweight behavior map:
| Behavior | Evidence to link |
|---|---|
| Tool approval | Permission config, UI state, command wrapper, denial path |
| File mutation | Write APIs, sandbox boundaries, diff preview, rollback path |
| Retry policy | Tool-call loop, failure classifier, budget counter, stop condition |
| Memory update | Memory files, compaction logic, privacy filter, human-review path |
| Subagent delegation | Task router, context packet, result schema, merge policy |
| Final answer | test evidence, artifact links, source citations, unresolved risks |
Each row should answer three questions:
That simple table is already better than a repo tour. It gives a coding agent a behavior-first entry point and gives reviewers a checklist for whether the change boundary is plausible.
For bigger systems, generate the first draft. Use static analysis, rg, route maps, call graphs, tests, and agent-assisted summaries. But keep the rule strict: every claim must link to code, a test, a trace, or a source document.
Harness Handbook is a research prototype, not a drop-in production standard. The GitHub repo is small today, and the useful question is whether the method survives contact with messy private agent stacks, stale docs, generated code, plugins, and organization-specific security policies.
Still, the direction is right.
The agent ecosystem has spent a year arguing about frameworks, swarms, skills, MCP servers, and model routing. The next serious layer is behavior evidence. If agents are going to maintain agent harnesses, they need a way to reason about what the harness does before they edit how it does it.
That is the durable idea here:
The file tree tells you where code lives. The behavior map tells you how the agent runs.
Harness Handbook is a research system that turns an AI agent harness into a behavior-level manual. It organizes prompts, state, tools, permissions, execution paths, and source evidence around behaviors rather than only around files.
Coding agents often receive behavior-level requests, but repositories are organized by modules. A behavior map helps the agent find the right implementation sites before planning an edit.
It is not a replacement for code search. It is a routing layer above code search. The handbook narrows the behavior path, then the agent still verifies source code directly.
No. Small harnesses can use simpler docs and tests. The idea becomes valuable when one behavior spans prompts, tools, state, permissions, runtime policy, and multiple modules.
The main risk is stale generated documentation. A behavior map should never be treated as authority unless every claim links back to current code evidence and tests.
Read next
A long-running coding agent is only useful if the environment around it can queue tasks, capture logs, checkpoint state, verify behavior, limit cost, and recover from failure.
9 min readFlue is trending because it names the part of agent infrastructure that is becoming product-critical: the programmable harness around the model.
8 min readHex's data-agent lab shows the practical eval pattern AI teams should copy: compare candidates against stable baselines, keep receipts, and judge changes by task behavior.
8 min readTechnical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
OpenAI's coding agent for terminal, cloud, IDE, GitHub, Slack, and Linear workflows. Reads repos, edits files, runs comm...
View ToolOpenAI's flagship. GPT-4o for general use, o3 for reasoning, Codex for coding. 300M+ weekly users. Tasks, agents, web br...
View ToolMac app for running parallel Claude Code, Codex, and Cursor agents in isolated workspaces. Watch every agent work at onc...
View ToolA hosted infinite canvas your headless AI agents drive over MCP. Any MCP-speaking agent - Claude Code, Codex, Cursor, or...
View ToolCompare AI coding agents on reproducible tasks with scored, shareable runs.
View AppSpec out AI agents, run them overnight, wake up to a verified GitHub repo.
View AppEvery coding agent in one window. Stop alt-tabbing between Claude, Codex, and Cursor.
View AppConfigure Claude Code for maximum productivity -- CLAUDE.md, sub-agents, MCP servers, and autonomous workflows.
AI AgentsWhat MCP servers are, how they work, and how to build your own in 5 minutes.
AI AgentsInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting Started
Build Anything with Vercel, the Agentic Infrastructure Stack Check out Vercel: https://vercel.plug.dev/cwBLgfW The video shows a behind-the-scenes walkthrough of how the creator rapidly builds and d

In this episode, we explore the newly released GPT-5 Codex by OpenAI, a specialized version of GPT-5 designed for agentic coding tasks. Codex offers advanced features, including enhanced code...

Check out Trae here! https://tinyurl.com/2f8rw4vm In this video, we dive into @Trae_ai a newly launched AI IDE packed with innovative features. I provide a comprehensive demonstration...

A long-running coding agent is only useful if the environment around it can queue tasks, capture logs, checkpoint state,...

Flue is trending because it names the part of agent infrastructure that is becoming product-critical: the programmable h...

Hex's data-agent lab shows the practical eval pattern AI teams should copy: compare candidates against stable baselines,...

OpenAI's harness engineering post and new token-use research point to the same lesson: agentic coding teams need token b...

SkillHone is a July 2026 paper about evolving agent skills across sessions. The useful takeaway for developers is simple...

The Codex changelog from April through June 2026 covers GPT-5.5, Goal mode going stable, Sites, a Chrome extension, Amaz...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.