Agent Harness Architecture: A Nine-Dimension Framework Selection Guide
This article breaks down the agent harness concept and explains why the harness, not just the model, determines what real work an agent can do. It introduces a nine-dimension scorecard (model, tools, skills, sessions, sandbox, storage, loop, scheduling, UI) for comparing three packaging styles, explains why the loop and scheduler matter most, and outlines a three-step selection process along with a governance checklist for teams that choose maximum assembly freedom.
1. First, Define the Concept: Beyond the Model, There Is a “Harness”
A concept that is often misread in recent technical discussions is the “harness.” The common analogy is a saddle: the model is the horse, and the framework is the gear strapped onto it. The problem with this analogy is that it demotes the framework to an optional accessory, implying that adding it makes things a little faster while leaving it off still works.
A closer engineering analogy is to treat an agent as a desktop computer. The model is only the software running on that machine, while the harness is the machine itself, hardware plus operating system, responsible for providing an environment in which the software can actually do work. Power supply, motherboard, case, peripherals, and system scheduling: miss any one of them, and even the strongest software is just compute that cannot be put to use.
Following this analogy, agentic coding tools on the market fall into roughly three forms:
- All-in-one form: fully packaged at the factory, with a non-replaceable core, ready to use out of the box;
- Semi-compatible form: allows swapping the core compute unit and installing extension apps, but the underlying conventions are fixed by the vendor;
- Parts-compatible form: compute, power, case, and display are all provided as standard components, assembled by the user.
It is worth stressing that there is no ranking of capability between the all-in-one and compatible machines; it is a trade-off between “peace of mind” and “freedom.” The all-in-one form lowers integration and operations costs at the price of a narrower controllable boundary; the parts-compatible form hands integration responsibility back to the user in exchange for the freedom to swap and recombine.
2. A Nine-Dimension Scorecard: Turning “Openness” into Something Measurable
Judging how open an agent framework is by feel is unreliable. You can use the industry-standard nine-dimension capability checklist as a ruler: model, tools, skills, sessions, sandbox, storage, loop, scheduling, and UI. Score each item, and the conclusion becomes clear immediately.
| Capability dimension | Parts-compatible | Semi-compatible | All-in-one |
|---|---|---|---|
| Model | Replaceable at will; works with common interface protocols | Switchable and customizable | Locked to the vendor’s own model |
| Tools | Plugin-based extension, freely added or removed | Fixed built-ins, extended via standard protocols | Fixed built-ins, only a few access points |
| Skills | Custom instructions and sub-agents | Install from a skill marketplace or write your own | Limited extension support |
| Sessions | Append-only logs, replayable and forkable | Partially importable and exportable | Decided by the product |
| Sandbox | Provided by plugins, implementation replaceable | Relatively fixed execution environment | Hard-wired cloud sandbox |
| Storage | Plugin-based, can connect to external storage | Repository and memory determined by the architecture | Built into the product |
| Loop | The main loop itself is a plugin | Implemented by the vendor, not open to replacement | Not open |
| Scheduling | Plugin-based, supports scheduled and periodic triggers | User-level automation provided | Usually not provided |
| UI | Plugin-based, interaction layer replaceable | Fixed product UI | Fixed product UI |
One pattern is readable from the table: the higher the degree of packaging, the shallower the layer at which users can intervene. The all-in-one form usually leaves openings only in three places, model access, tool protocols, and skill extension, with everything else converging inside the product; the semi-compatible form additionally opens up the scheduling layer, making “scheduled and periodic automatic execution” possible; the parts-compatible form even hands the main loop and the UI over to the user to define.
3. Why “Loop” and “Scheduling” Are the Two Most Critical Items
Most evaluations fixate on the model and tools, but what actually determines whether an agent can take on real work over the long run is the loop and scheduling.
The loop is the agent’s main control flow of “perceive, plan, call, observe the result, plan again.” It determines the failure-retry strategy, the timing of context compression, termination conditions, and budget control. If the loop cannot be replaced, users cannot tune the strategy for a specific task, for example fixing a cautious mode of “verify in small steps first, then execute in full.”
Scheduling is the trigger capability along the time dimension: scheduled execution, periodic inspection, and event-driven runs. Without scheduling, an agent can only respond passively within a single session; with scheduling, it can take on long-cycle tasks such as overnight batch refactoring, daily dependency checkups, and periodic regression runs.
Illustrative plugin registration logic (pseudocode that expresses structure only and does not point to any specific product):
# Assemble the agent runtime framework with pluginsharness = Harness(model=OpenAICompatibleModel(base_url=..., api_key=...), # model is replaceableloop=ConservativeLoop(max_steps=12, budget=..., retry="backoff"), # loop is replaceablesandbox=ContainerSandbox(image="...", network="none"), # sandbox is replaceablestorage=ObjectStorageBackend(bucket=...), # storage is replaceablescheduler=CronScheduler(entries=["0 2 * * *"]), # scheduler is replaceableui=HeadlessUI(), # UI is replaceable)harness.register_tools([ReadFile(), EditFile(), RunTests()])harness.register_skills(load_skills("./skills"))harness.run(task="refactor_module")
The direct benefit of this assembly-style design is that the same task definition can migrate across different models, different sandboxes, and different storage backends without rewriting business logic.
4. Selection Method: Three Steps to Put It into Practice
Step one, clarify the constraints. List compliance requirements (whether code can leave the internal network), compute form (on-premises or cloud), and team size and operations capability. If code assets are sensitive and the team has platform engineering capability, the parts-compatible form delivers the greatest benefit.
Step two, score against the nine dimensions. Mark each dimension as “must be replaceable / can be fixed / do not care,” then compare item by item against the candidates. The real conclusion for most teams is often: the model and sandbox must be replaceable, while the UI can be fixed.
Step three, run a small-scale validation. Run the same set of real tasks (such as cross-file refactoring, test completion, and log troubleshooting) end to end, and focus on failure recovery, context bloat, and execution cost rather than only on a one-shot demo result.
5. The Cost of Assembly Freedom and a Governance Checklist
Freedom is not free. The parts-compatible form transfers integration, upgrades, and security responsibility to the user along with it, which requires supporting governance:
- Sandbox isolation: no external network by default, least privilege, source code mounted read-only, and write operations limited to the workspace;
- Credential management: keys injected by an external key management service, never written into configuration files or logs;
- Observability: call chains, token consumption, and tool failure rates all flow into a unified logging service and monitoring alerts;
- Session traceability: append-only logs combined with replay and forking make retrospectives and regression easy;
- Cost guardrails: triple limits on loop steps, budget ceiling, and concurrency to prevent automated tasks from running out of control;
- Supply chain verification: plugins and skills require signatures and version locking to prevent untrusted extensions from being introduced.
When deploying in the cloud, these capabilities are usually carried by general-purpose categories: a container platform provides the isolated execution environment, object storage holds sessions and artifacts, a message queue handles task distribution, and logging and monitoring services ensure observability. Choosing a platform with a complete general-purpose cloud product system, such as Baidu AI Cloud, can significantly reduce the governance cost of an assembly-style framework and let you focus your energy on loop strategy and skill accumulation.
6. Conclusion
The competition around code agents is shifting from “how strong the model is” to “how open the framework is.” Run a solution through the nine-dimension ruler once, and you can see clearly which layers a solution hands to the user and which it locks inside. For teams that pursue controllability and portability, the parts-compatible form combined with general-purpose cloud infrastructure is currently the more cost-effective path; for teams that pursue quick results, the all-in-one form remains a reasonable choice. What matters is not which form you pick, but whether you are clear about what you gave up and what you got back.
