Agent Harness Framework Release: Highlights and Capability Extension
This article explains why an agent harness is the critical layer around a model, covering permission policy, model access, plugins, four preset modes, controlled self-evolution, and the Tools–MCP–Skill stack for production-ready agents.
Why Harness Is the Critical Layer Around Agents
Industry consensus over the past two years is that agent quality often depends less on the model itself than on the surrounding “support structure,” commonly called a harness. It turns natural-language intent from the model into actions that are executable, constrained, and reversible. If the model is the engine, the harness is the transmission, brakes, and safety cage: it decides how power is delivered, when it is cut off, and how to fail out.
A mature harness typically addresses four problems: permission boundaries (what can run automatically vs. what needs human confirmation); model access (abstraction and switching across providers and deployment modes); capability extension (external tools and services without changing the core); and behavior presets (default strategy mixes for coding, retrieval, minimal Q&A, and similar tasks). The release discussed here covers the first three and answers the fourth via presets.
Shared Configuration: Intent of Three Modules
1. Permission policy: take “allowed or not” out of the prompt
Early agents often put safety rules in the system prompt—asking the model to police itself, with limited reliability. A more robust approach is to externalize permissions as configuration: file read/write scope, command allowlists, network policy, change-confirmation level, and so on. The harness intercepts before an action lands. The immediate benefit is auditability: every denied action is recorded for review and compliance.
A practical pattern is default-deny plus scenario-based allow, with grants by directory, command family, and environment (dev / staging / production). Write and release actions in production should generally keep a human confirmation step.
2. Model access: abstract the interface, do not bind an implementation
The access layer’s value is decoupling. With a unified abstraction, agent logic does not care whether the backend is a general LLM, a code-specialized model, or a locally deployed model; switching is a config change, not a code change. A competent layer typically supports streaming and interrupt, a unified tool-calling protocol, and consistent handling of context length and retries.
3. Plugin system: keep the kernel small and stable
Plugins resolve the tension between a stable core and diverging needs. The kernel keeps a minimal loop—session management, context assembly, permission checks—and other capabilities mount as plugins. A good plugin design declares the permissions and resources it needs so policy can govern it, rather than bypassing constraints to reach the system directly.
Agent Presets: Four Modes Compared
A preset is a packaged set of default parameters and prompting strategies that lowers the barrier to use. The four modes can be placed on this spectrum:
- Standard: Balanced capability and constraint; a general default for day-to-day engineering.
- Minimal: Smaller context and tool surface; faster, more predictable; suited to Q&A, formatting, and single-point rewrites.
- PTC: Plan-then-execute; splits complex work into planning and execution; useful for multi-file, multi-step refactors and reduces mid-run drift.
- Creative: Looser defaults; the agent may define its own flow and tool mix; an entry point for prototyping new capabilities.
Selection is straightforward: narrower tasks, simpler presets; longer tasks, stronger planning; enter creative mode only when new capability is required, with tighter permissions and review.
Self-Evolution: From Using Tools to Making Tools
The notable part of creative mode is self-evolution: the agent can distill reusable flows and tools at runtime, turning a one-off solution into an asset for later calls. In this mode, editor-style debugging was reconstructed—technically, formalizing the human loop of observe → hypothesize → insert probes → collect logs → locate and fix into a repeatable agent procedure.
Self-evolution must be gated. A practical three-gate path is static checks (valid structure), sandbox validation (isolated trial run), and human review (version control). Without those gates, self-evolution degrades into an unmaintainable pile of scripts.
Three Extension Paths: Tools, MCP, and Skills
An agent’s capability boundary is set by how it extends. Three widely used layers:
1. Tools: atomic actions
A tool is the smallest callable unit: one call does one definite thing (read a file, search, run tests). Keep interfaces narrow, semantics clear, returns structured, with timeouts and error codes. Tool count should stay bounded; too many cause selection noise and context bloat.
2. MCP services: standard access
MCP (Model Context Protocol) is an open protocol for exposing data sources and system capabilities in a standard way, avoiding per-agent adapters for every system. The value is integrate once, reuse many times, with auth and rate limits governed on the server.
3. Skills: process orchestration
A skill is not a new action; it packages multi-tool flows and operational knowledge: when to apply, step order, and failure fallback. It carries “how to do it” domain knowledge and is the layer closest to business meaning.
Together: tools provide capability, MCP provides connectivity, skills provide method. Conceptual stack (not a concrete API):
Skill (flow and policy)└── MCP services (standard access to external systems)└── Tools (atomic: read/write/search/execute)└── Unified permission checks + logs and tracing
Rollout Guidance and Observability
First, extend in layers: prefer existing MCP services for systems you already have, keep custom tools atomic, and capture complex flows as skills instead of stuffing business logic into prompts.
Second, tighten permissions as you extend: every new tool or service must declare required permissions and join unified audit.
Third, build observability: record a summary of each tool call’s input, latency, result, and failure reason, with logging, alerting, and tracing so you can tell whether the model, the tool, or a permission intercept was wrong.
Fourth, connect to general cloud primitives: artifacts can land in object storage, work can be decoupled with queues, long jobs can scale on containers, and runtime data can feed the same logs and monitors. If you use general product categories on Baidu AI Cloud, the same layering and least-privilege principles apply; you do not need a separate governance stack just for agents.
Closing
The release’s core highlight is not a long feature list, but making three easy-to-miss engineering points explicit: permissions as configuration, access as a replaceable abstraction, and capabilities as pluggable assets. When those hold, agents move from demo-viable to production-maintainable.
