Three Years of AI Agent Architecture: From Open Tools Back to Simplicity

    Over the past three years, the way large language model products extend themselves and call external capabilities has followed a winding path: first openness and generality, then a contraction toward focus and simplicity. This article traces that evolution — from specification-driven plugins, through custom instructions and packaged assistants, to automatic memory — explains the three structural reasons complexity lost out to simplicity, and then lays out five practical engineering patterns: streamlined tool descriptions, project rule files under version control, layered memory, sandboxed execution, and per-request context budgets. It closes with three principles for taking an agent from "works" to "maintainable."

    Over the past three years, the way large language model products are extended and the way they call out to external capabilities has taken a winding path: first openness and generality, then a contraction toward focus and simplicity.

    Today, a developer only has to connect an agent to a code repository or a browser, and it can inspect the code, run commands, and issue requests on its own. The extension mechanisms available to users have also grown richer: project rule files, custom instructions, memory, and hosted agents. These forms do not really replace one another so much as mark clear stages of an evolution.

    1. The main line: from open tools, to focused assistants, to automatic personalization

    1.1 Plugins (early 2023): specification-driven, open tool calling

    About four months after general-purpose chat assistants launched, a model vendor shipped a plugin mechanism. The default form of an agent at the time was conversation: the model could write code and reason, but it had no awareness of real-time information and could not perform actions. Plugins were the first time “connecting external capability” became a product-level feature — users could give the model search, booking, calculation, and other abilities without writing any code. The idea was well ahead of its time. The pitch was simple: provide an OpenAPI specification describing a REST interface, and the model could freely call the corresponding endpoints. Conceptually it belonged to the same lineage as the artificial general intelligence (AGI) vision: generic tool use achieved through standardized interface descriptions, without adapting to each one by hand.

    The technical conditions did not keep up. The models of the day were early general-purpose LLMs, and when faced with an API specification running to thousands or even tens of thousands of tokens, they often could neither read it all nor read it accurately:

    • Key parameters buried in long descriptions were easy to miss, and tool definitions introduced early would gradually fade as context grew.
    • When a parameter’s meaning was misunderstood, the model would guess a value from semantics, and would even invent endpoint paths.
    • When a plugin result failed, the model usually could not determine why, and would keep retrying along the same broken path.

    The friction in the experience was just as visible. Every new conversation required manually enabling plugins, so the same user had inconsistent capabilities across sessions and behavior was hard to reproduce; when several plugins were enabled at once, their descriptions competed with one another, and the odds of the model getting lost among the tools rose sharply. Third-party plugins also meant handing requests to an unknown service provider, with interface changes, permission boundaries, and data flows lacking any unified governance.

    The mechanism did leave two legacies, though:

    • First, it made the industry think systematically, for the first time, about how to describe capability to a model. Today’s function calling, tool registration, and API gateway rate limiting all bear its fingerprints.
    • Second, the built-in code-execution plugin — later spun out into a standalone data analysis capability — validated another path: rather than making the model adapt to thousands of external interfaces, give it a sandbox where it can write code, run code, and see results. That line of thinking directly foreshadowed today’s sandboxed execution environments.

    1.2 Custom instructions (mid-2023): turning repeated context into a reusable asset

    Custom instructions were a dimensional-reduction response to plugin complexity. The mechanism was almost embarrassingly plain: the user writes a prompt describing their role, preferences, and output requirements, and the platform automatically appends it to every subsequent conversation. What really mattered was the problem it solved — repeatedly setting up context. Before this, a user who wanted the assistant to work in a particular style had to paste the same background note at the top of every new conversation. Custom instructions drove that cost down to nearly zero, and gave personalization a reusable form for the first time.

    The deeper significance is that it seeded the idea behind today’s project-level rule files. Whatever class of tool is used, developers now commonly place a rules file in the project root, specifying the tech stack, directory structure, commit conventions, style requirements, and what not to do and what to do first. Tools read these files automatically at the start of each task, and the essence is identical to custom instructions: converting a one-off verbal agreement into persistent, maintainable, version-controlled context.

    1.3 Custom assistants (late 2023): productizing instructions and tools together

    Model vendors then bundled instructions and tools into custom assistants. A user could combine a role definition, uploaded knowledge files, and a handful of operational capabilities into a single shareable, publishable, single-purpose “app.” This marked the product’s center of gravity shifting from the plugin era’s general-purpose platform to carefully curated special-purpose tools.

    The logic was direct: plugins promised unlimited possibility, but handed the hard problem of how to combine capabilities into a solution back to the user. A packaged assistant instead presupposed a clearly bounded scenario — writing a weekly report, tutoring math, reviewing a contract — kept only the instructions and tools relevant to that scenario, and required almost no configuration. This is an important principle in agent design: while model capability is not yet fully reliable, constraint yields a more stable experience more easily than openness. Today’s various agent marketplaces and agent stores can all be traced back to this model.

    1.4 Memory (early 2024): from manual configuration to automatic personalization

    Before this, extending model capability relied mostly on manual input — plugins, instructions, and knowledge files were all explicitly configured by the user. Memory marked the shift of personalization from manual to automatic: the system records information worth keeping long term from the conversation and quietly injects it into later ones. You can think of it as a system prompt that writes itself: when a user mentions “I’m vegetarian,” the assistant still remembers weeks later and proactively avoids meat options when recommending restaurants.

    From an engineering standpoint, memory is essentially automatically accumulated context. It needs a write policy — which information is worth keeping long term. It needs retrieval and injection — fetching the relevant fact at the right moment. And it needs conflict resolution and forgetting — when a user changes a preference, the old memory must be updated rather than left to coexist. Memory turned the assistant from a one-off tool into a long-term partner, but it also brought governance challenges around privacy, consistency, and explainability that all require engineering backstops.

    2. Four threads running through the evolution

    Stage Typical capability Core idea Architectural focus
    Open tool calling Plugins, third-party API access Specification-driven generic tool use Capability onboarding and protocol standardization
    Externalized rules Custom instructions, project rule files Writing agreements down as reusable text Organizing and reusing context
    Scenario focus Packaged assistants Preset instructions, knowledge, and tools Productization and ease of use
    Automatic personalization Memory Automatically accumulate and re-inject information Context governance and lifecycle management

    3. Why complexity was discarded before simplicity

    This evolution was not accidental. Three structural reasons drove it.

    First, context budget is a scarce resource. The model’s context window is finite, and “fitting in” is not the same as “working well.” A single plugin specification can consume thousands of tokens; stack several together and the effective information actually serving the current task — in the system prompt and conversation history alike — keeps getting squeezed. The rule of thumb from practice is that the number of effective tools should match task complexity, not grow without limit. The more tools there are, the larger the ambiguity space the model must choose within, and the higher the probability of picking the wrong tool or assembling the wrong parameters.

    Second, usage friction suppresses adoption. Any step that requires manual action from the user (enabling plugins at the start of every conversation) lowers real usage of the feature, and low usage means insufficient feedback data and slower iteration. Custom instructions, by contrast, are set once; rule files ship with the repository; memory requires no configuration at all. All three push user cost down to near zero.

    Third, engineering complexity is not product complexity. A plugin ecosystem has to deal with third-party interface changes, permission boundaries, billing policies, and data compliance — an entire set of problems that itself demands heavy investment from the platform side. By comparison, converging capability onto a few verifiable built-in features (code execution, web retrieval) reduces flexibility but makes quality, security, and observability far more controllable.

    4. Five engineering practices for returning to simplicity

    4.1 Streamline tool descriptions: say one thing per tool

    In an internal agent, the most easily overlooked optimization is the tool description. A common anti-pattern is to cram several capabilities into one tool and then rely on the description to explain the boundaries. The more robust approach is one tool, one responsibility, one clearly defined set of parameters.

    1. {
    2. "name": "search_project_files",
    3. "description": "Search source files in the project workspace by keyword and return matching file paths with short excerpts. Does not read file contents.",
    4. "parameters": {
    5. "type": "object",
    6. "properties": {
    7. "query": {
    8. "type": "string",
    9. "description": "Search keyword; natural-language phrasing is supported"
    10. },
    11. "root": {
    12. "type": "string",
    13. "description": "Root directory to search; defaults to the current workspace"
    14. },
    15. "max_results": {
    16. "type": "integer",
    17. "description": "Maximum number of results, 1-20; default 5"
    18. }
    19. },
    20. "required": ["query"]
    21. }
    22. }

    A few supporting recommendations:

    • State explicitly in the description what the tool does not do — boundaries reduce misuse more effectively than capability lists.
    • Give parameters sensible defaults and value ranges to shrink the space in which the model can fabricate arguments.
    • Keep the number of tools within a manageable range; past a threshold, switch to on-demand retrieval instead of injecting everything.
    • Keep return values structured and short, and avoid pushing large blocks of raw content back into the context.

    4.2 Rule files: put project conventions under version control

    Writing rules into a file rather than repeating them verbally is the plainest and most effective form of context governance. A typical rules file looks like this:

    1. # Project Conventions
    2. - Tech stack: Python 3.11, dependencies managed with pinned versions
    3. - Code style: PEP 8; public functions need type hints and docstrings
    4. - Testing: new logic must include unit tests, placed under tests/
    5. - Commits: follow Conventional Commits; one commit does one thing
    6. - Forbidden: do not modify auto-generated files under generated/
    7. # Workflow
    8. 1. Read the relevant modules and existing tests before changing code
    9. 2. Run the local test suite once the change is complete
    10. 3. If a database migration is involved, provide a rollback script as well

    The recommended practice is layered organization: global conventions in the repository root, local conventions in subdirectories, and tools loading them level by level according to the task context. Rules files should go into version control and go through code review — treat them the way you treat code.

    4.3 Layer memory: distinguish facts, preferences, and session summaries

    Memory should not be one large catch-all list. Manage it in layers:

    Layer Content Lifecycle Update mechanism
    Session memory Current task context, intermediate results Single session Appended as the conversation proceeds
    Preference memory Long-term preferences, habits, avoidances Long term Explicit confirmation or automatic write
    Fact memory Project structure, key configuration, decision outcomes Medium term Updated when the project changes
    Retrieval memory Historical documents, logs, tickets Long term Retrieved on demand, never permanently in context

    Three engineering points matter here:

    • Writing needs a threshold. Not every sentence is worth keeping long term. Make trade-offs based on information density and reuse value, or memory gets drowned in noise.
    • Conflicts must be resolvable. When the user says “actually I don’t eat seafood anymore,” the old memory must be overwritten rather than left to coexist. Attach a timestamp and a confidence score to each memory, and take the most recent on conflict.
    • Injection must be restrained. Long-term memory kept permanently in context should be capped at a limited number of items; everything else is recalled by relevance through retrieval.

    4.4 Sandboxed execution: give the agent a verifiable place to trial and error

    From the code interpreter of the plugin era to today’s AI coding tools, the execution environment has always been the most valuable piece of the foundation. The reason is simple: making the model write code is essentially having it generate candidate answers, while making the model run code is what puts those answers to an objective test. A usable sandbox should provide the following:

    • Isolated execution: run in a separate container or temporary workspace, so failures can be rolled back.
    • Resource constraints: cap CPU, memory, execution time, and disk quota.
    • Tiered permissions: read-only by default; writes, network access, and dependency installation require explicit authorization.
    • Observable results: expose logs, exit codes, and artifacts so the model can correct itself and humans can audit.
    1. def run_in_sandbox(code: str, timeout: int = 60):
    2. """Execute code in an isolated container and return structured results."""
    3. result = container.exec(
    4. files={"main.py": code},
    5. timeout=timeout,
    6. network=False, # network disabled by default
    7. workdir="/workspace"
    8. )
    9. return {
    10. "exit_code": result.exit_code,
    11. "stdout": result.stdout[-4000:], # truncate long output to protect context
    12. "stderr": result.stderr[-2000:],
    13. "artifacts": result.output_files # paths of generated files
    14. }

    4.5 Budget governance: give every request a context budget

    Finally, the question of degree. A mature agent should have an explicit budget for the context it consumes and should degrade gracefully when the budget is exceeded:

    1. CONTEXT_BUDGET = {
    2. "system_prompt": 1500,
    3. "project_rules": 2000,
    4. "tool_schemas": 3000,
    5. "long_term_memory": 500,
    6. "conversation": 8000,
    7. "retrieval": 5000,
    8. }

    The usual trimming order when over budget is: tool descriptions, then long-term memory, then retrieved snippets — while keeping the system prompt and the current conversation. The budget is not a hard metric so much as a reminder to the team: context is not free, and every additional block of content dilutes the model’s attention on the information that matters.

    5. Practical advice: from “works” to “maintainable”

    Putting these practices into a real project comes down to three principles.

    First, converge before opening up. Early versions should focus on a single scenario and keep only the necessary instructions, tools, and rules. Only when usage data proves that some capability is genuinely high-frequency should it be abstracted into a pluggable component.

    Second, treat configuration as code. Whether it is a rules file, a tool definition, or a memory write policy, it should go into version control, go through review, and be validated by automated tests that confirm it does not break existing behavior.

    Third, build an observability loop. Log the tool selection, parameters, latency, and result of every call, and analyze failure samples regularly. Many “the model won’t do what I asked” problems turn out to have root causes in vague tool descriptions or self-contradictory constraints inside a rules file.

    6. Conclusion

    Looking back over these three years — from open-ended plugins to sandboxed execution, from manual configuration to automatic memory — the product forms have converged noticeably. The later it gets, the fewer concepts users are exposed to, and the heavier the engineering responsibility carried behind the scenes. That is precisely what shows that an agent’s complexity has not disappeared; it has moved from things users have to understand to problems the platform has to solve.

    For developers, the lesson of this trajectory is a plain one: capability is addition, architecture is subtraction. Rather than piling on more plugins, more tools, and more rules, first work out which conventions must live permanently in context for your scenario, which information can be retrieved on demand, and which parts need a verifiable execution environment as a backstop. Doing the simple things solidly is usually closer to reliability than doing the complex things completely.