Three Architectural Paths for AI Agent Applications: Vertical Co-Design, Horizontal Model Swapping, and Plugin-Based Harnesses

    As large language models advance, the engineering challenge shifts from model capability to how systems organize models. This article examines three architectural routes for AI Agent applications: deep vertical co-design between model and harness, horizontal model replaceability through unified adapters, and a fully plugin-based harness where models, prompts, tools, logging, and even the agent loop are swappable. It explains the trade-offs of each approach and why incumbent tech giants struggle to build truly open agent ecosystems, arguing that architecture choice is ultimately a strategic decision about system boundaries and long-term evolution.

    1. Why Agent Applications Grow into Different Shapes

    As large model capabilities have advanced rapidly, the application forms built around them have evolved as well—from chat-centric apps to agent applications that can plan autonomously, invoke tools, and execute multi-step tasks. The core engineering tension has gradually shifted from “is the model capable enough?” to “is the way the model is organized good enough?”

    Against this backdrop, two typical architectural routes have emerged. Understanding where these routes diverge is key to understanding the current agent engineering landscape.

    2. Route One: Vertical Co-Design of Model and Harness

    The first route pursues deep integration between the model and its harness—the scheduling, tool invocation, and context management layers surrounding the model. In this design, the harness is not a generic container but is tailored to the specific capabilities of a particular model: prompt wording is polished for that model’s instruction-following preferences, tool-calling formats are aligned with its training distribution, and retry and error-correction strategies are designed around its typical failure modes in long-horizon tasks.

    The benefits of this vertical co-design are clear:

    • High performance ceiling. When the model and harness “know each other well,” the harness can amplify the model’s strengths—for example, through context management strategies and task decomposition granularities optimized for a specific model.
    • Predictable behavior. Within a closed loop, stability over long tasks is much easier to test and tune.

    But the cost is equally clear: the entire harness is tightly coupled to a single model; switching models essentially means starting over. When the underlying model iterates or a comparable alternative appears, migration costs are extremely high, and the know-how accumulated in the harness is hard to reuse.

    3. Route Two: Horizontal Model Replaceability

    The second route takes the opposite approach, pursuing horizontal replaceability across models. Its core idea: the model is merely a pluggable “reasoning engine,” and the framework should use a unified adaptation layer to mask differences in interfaces, context formats, and tool-calling protocols, decoupling business logic from any specific model.

    The value of this design lies in:

    • Reduced supply risk. When model prices, capabilities, or availability change, you only need to switch adapter configuration.
    • Task-based model selection. Lightweight models for simple tasks, stronger models for complex ones—routing becomes part of the framework’s capability.

    However, horizontal replaceability typically means working only at the level of the “greatest common divisor” abstraction. The distinctive capabilities of individual models are flattened, making deep co-optimization difficult. The adapter layer itself also introduces overhead—model-specific structured output capabilities or special tool-calling protocols often have to be compromised in the generic abstraction.

    4. Route Three: Making the Harness Itself a Plugin-Based System

    Compared with the two routes above, there is a more radical architectural idea: not only the model is replaceable—every component of the harness is replaceable. This can be viewed as a pure middleware-layer harness design. Its typical building blocks include:

    1. Pluginized model adapters

    Model integration is abstracted into an adapter interface; any implementation conforming to the interface can be registered. Adapters do more than protocol conversion—they can carry their own prompt templates and tool format definitions.

    2. Pluginized system prompts

    System prompts are not constants hardcoded in the codebase but first-class resources: loaded per scenario, version-managed, and generated in variants according to model differences. This turns prompt engineering from “changing code” into “changing configuration.”

    3. Pluginized tool registries

    Tools (function-calling targets) are mounted dynamically through a registration mechanism. Tool schemas, permissions, and execution sandbox policies can each be configured independently. Toolsets can thus be flexibly assembled per business scenario.

    4. Pluginized conversation logs and state

    Conversation history, task state, and execution traces have their storage and formats abstracted into replaceable components. They can connect to different persistence solutions (such as object storage, databases, or logging services), and support replay, auditing, and evaluation.

    5. Pluginized agent loops

    The most radical point: the agent’s main loop—the orchestration logic of perception, planning, execution, and reflection—is itself made a replaceable plugin. Different task types can adopt different loop strategies: single-turn direct answering, ReAct-style interleaved reasoning and acting, or plan-first-then-batch-execute can all be implementations of the loop.

    The following pseudocode sketches this architecture:

    1. class Harness:
    2. def __init__(self, adapters, prompts, registry, logger, loop):
    3. self.adapters = adapters # Model adapter set
    4. self.prompts = prompts # Prompt manager
    5. self.registry = registry # Tool registry
    6. self.logger = logger # Conversation logger
    7. self.loop = loop # Agent main loop
    8. def run(self, task):
    9. model = self.adapters.select(task)
    10. return self.loop.execute(
    11. model=model,
    12. prompts=self.prompts.load(model, task),
    13. tools=self.registry.for_task(task),
    14. history=self.logger.load_context(task),
    15. )

    The effect of this design: a single framework can simultaneously support multiple model strategies and multiple agent paradigms, providing enormous freedom for experimentation, evaluation, and evolution. The cost is increased abstraction layers and higher initial engineering complexity, making it suitable for platform-oriented projects with long lifecycles.

    5. Why Big Tech Struggles to Build True Agent Ecosystems

    A further industry-level observation: leading internet and software giants are often capable of building excellent AI applications, yet struggle to build truly open, robust AI ecosystems. The reasons can be understood at both the architectural and business levels:

    First, the gravity of existing ecosystems. Mature office suites, search engines, and social platforms represent enormous entrenched interests, and new AI capabilities are naturally expected to “serve the existing ecosystem first.” General-purpose assistants get repackaged as parts of suites, agent capabilities get shrunk into paid features within walled gardens, and openness yields to lock-in. Incumbents across both Western and Chinese tech markets behave with striking consistency here.

    Second, the implicit bias in the route debate. Organizations leaning toward vertical co-design naturally resist replaceability—replaceability undermines the lock-in of their own models and ecosystems. A product idea like “make the framework a pure harness where any model plugs and plays” struggles to survive the project approval stage inside a large organization oriented around closed business loops.

    By contrast, companies without historical baggage are free. They don’t need to protect an old ecosystem, so they can choose approaches that would be “eliminated before even sitting down at the table” inside incumbents—for example, minimal agent tools with a command-line-first interaction model aimed at developers rather than consumers. The value of such products lies precisely in their freedom from ecosystem baggage.

    6. Conclusion: Architecture Choice Is Strategy Choice

    Vertical co-design, horizontal replaceability, and full pluginization—these three routes ultimately answer the same question: where do you draw the boundary of your system? Vertical co-design draws it around the model, trading for depth of optimization; horizontal replaceability draws it around the reasoning engine, trading for freedom of choice; a plugin-based harness draws it around the entire runtime, trading for maximum room for evolution.

    The lesson for engineering teams: do not treat this as a purely technical decision. It determines whom you can be compatible with in the future, how quickly you can respond to model-layer change, and whether your system ends up as an application or the seed of an ecosystem. In an era when model capabilities iterate on a monthly cadence, keeping boundaries open and components replaceable often delivers greater long-term returns than polishing any single point to perfection.