Comparing AI Agent Framework Architectures: A Breakdown of Four Harness Design Patterns

    This article breaks down why the same LLM can produce very different agents depending on the surrounding agent harness, then compares four common harness design routes: minimal-core, shared-service multi-client, skill-and-memory write-back, and multi-channel connector. It provides a unified set of evaluation dimensions, a simplified tool-loop example, a scenario-driven selection methodology, and practical engineering guidance for choosing and testing agent frameworks.

    1. Why the Same Model Produces Four Different Agents

    An LLM is fundamentally a machine that takes text in and produces text out: it reads tokens and generates tokens. It is stateless by itself. It does not remember what happened in the previous turn, and it does not proactively read files, query databases, or call external APIs. To make it complete real tasks, you need to add a layer of capability outside the model that translates the tokens it emits into actual actions in the external world.

    As a result, an agent can be split into two major parts:

    • Model weights: the LLM itself, responsible for reasoning and generation.
    • Agent harness: everything around the model, responsible for assembling prompts, executing tools, maintaining session state, setting safety guardrails, and managing the context window.

    The word “harness” originally refers to the gear fitted onto a horse. A horse needs a harness to pull a cart, and a model needs a harness to do useful work. In this article, “harness” and “framework” refer to the same category of thing.

    The key takeaway is this: the harness has an impact on final results that is comparable to the model, and sometimes even greater. A smaller model will inevitably lose to a frontier model, but with the same model, the capability boundaries of agents built on different harnesses can differ dramatically. This is also why “which framework should I choose” is a high-leverage decision.

    2. Four Abstract Design Routes for Agent Harnesses

    Setting aside specific project names, the agent frameworks commonly seen in the industry can be grouped into four broad routes.

    Route 1: Minimal-Core Design

    This keeps only the minimal loop of “prompt assembly + tool-calling cycle” and leaves everything else for users to extend themselves. The code footprint is small, dependencies are few, and behavior is predictable. It is well suited for research baselines, teaching demos, and foundations for secondary development. The tradeoff is that memory, permissions, and multi-client access all have to be added by you.

    Route 2: Shared-Service Multi-Client Design

    This introduces a long-running service process as the “brain,” centralizing sessions, tool registration, and permission policies on the server side. Multiple clients (CLI, desktop, mobile, automation scripts) connect to the same context through a unified protocol. The advantages are centralized state and consistency across clients; the challenges are concurrency control, session isolation, and the operational cost of running the service.

    Route 3: Skill-and-Memory Write-Back Design

    On top of the standard tool loop, this adds a channel for “accumulating experience”: it abstracts the solution to a successful task into a reusable skill, writes it back to long-term memory, and prioritizes retrieval and reuse when a similar task appears later. What it improves is cumulative capability across sessions, but it needs to solve problems such as skill deduplication, conflict resolution, contamination from bad experience, and retrieval recall quality.

    Route 4: Multi-Channel Connector Design

    The focus here is not the reasoning core but the “reach”: it ships with a large set of messaging-channel adapters and attaches the agent to the communication tools users already use. Its engineering emphasis is connector abstraction, message-format normalization, authentication, and rate limiting. It is suitable for assistant-style applications aimed at business users.

    These four routes are not mutually exclusive. Mature systems are often a combination of “minimal core + memory write-back + several connectors.”

    3. A Horizontal Breakdown Using Unified Dimensions

    Rather than looking only at a feature checklist, it is better to evaluate any harness along the following dimensions:

    1. Context management: how history is trimmed, compressed, and reordered; whether external retrieval can supplement it.
    2. Tool-layer design: how tool descriptions are generated, which layer validates parameters, and how failures are returned to the model.
    3. State and sessions: whether state lives in memory, on files, or in external storage; whether it can be recovered after a restart.
    4. Permissions and guardrails: tool allowlists, confirmation for dangerous operations, output filtering, and audit logs.
    5. Extension mechanisms: whether the plugin contract is stable and how costly it is to integrate third-party capabilities.
    6. Observability: whether the full call chain, token consumption, and tool latency are recorded.
    7. Deployment shape: local process, long-running service, or containerized replicas.

    A typical tool loop can be abstracted as:

    1. while not done:
    2. ctx = memory.build(system_prompt, history, retrieved)
    3. resp = model.generate(ctx, tools=registry.specs())
    4. if resp.tool_calls:
    5. for call in resp.tool_calls:
    6. if not policy.allow(call): # guardrail layer
    7. result = "permission denied"
    8. else:
    9. result = registry.invoke(call) # tool layer
    10. history.append(call, result)
    11. else:
    12. done = True
    13. memory.maybe_distill(history) # skill/memory write-back

    In this pseudocode, differences in the implementations of the three modules policy, registry, and memory almost entirely determine where two harnesses diverge in capability.

    4. Selection Methodology: Work Backward from the Scenario

    • Research or a platform foundation: prioritize a minimal core, which offers the highest controllability and adaptability.
    • A shared internal assistant for a team: prioritize a shared-service design, with centralized state and multi-client consistency, making unified auditing easier.
    • Long-running, repetitive operational tasks: prioritize a design with memory write-back, and pay attention to the quality governance of the experience store.
    • An entry-point product aimed at end users: prioritize a design with rich connectors, but isolate the channel-adapter layer so business logic is not locked to channel protocols.

    When evaluating, do not look only at demo results. It is recommended to build a regression set of 20–30 real tasks, fix the model and temperature parameters, and compare task success rate, average number of tool-calling rounds, token cost, and number of human interventions. Only when the model variable is held fixed will the differences between harnesses become visible.

    5. Common Misconceptions and Engineering Recommendations

    • Misconception 1: Switching frameworks will switch results. Model capability is still the ceiling; the harness determines how close you get to that ceiling.
    • Misconception 2: More tools means a stronger agent. A growing number of tools dilutes the model’s selection accuracy; fewer and clearer is better.
    • Misconception 3: More memory is always better. Memory without governance keeps injecting noise and needs eviction and confidence mechanisms.
    • Misconception 4: Guardrails hurt the experience, so turn them off first. In production, confirmation for dangerous operations and auditing should be enabled by default.

    For implementation, you can split the harness into replaceable components and connect them to common cloud capabilities such as model services, object storage, message queues, logging services, and monitoring/alerting through a unified protocol. This lets you quickly switch between different architecture routes for A/B comparison without being tied to a specific implementation. This kind of “swappable core, pluggable capabilities” structure is the reliable way to cope with the rapid iteration of frameworks.