Agent Self-Evolution: Everything as Plugins and Skill Packages

    This article explains how an AI agent can evolve through its runtime rather than the model alone. It clarifies the difference between evaluation harnesses and agent runtimes, describes a three-layer structure of chat models, agents, and runtimes, and shows how an "everything as plugins" design addresses capability replacement, least privilege, observability, and composability. It also covers skill packages as reusable procedural assets, three onboarding paths, common first-day pitfalls, a recommended isolated directory layout, and three criteria for judging whether this is a viable engineering path.

    1. First, Clarify the Concepts: An Evaluation Harness Is Not a Workstation

    Before discussing an agent’s “self-evolution,” you need to separate two runtime concepts that are easy to confuse.

    One is an evaluation harness. It distributes test papers, collects answers, and assigns scores. It focuses on “whether the model can answer correctly,” with typical tasks including standardized assessments of multiple-choice questions, math problems, and coding problems. The other is an agent runtime, referred to in this article as the “workstation.” It does not assign scores. Instead, it gives the model tools, a file system, command execution, and logging, moving the model from “talking” to “doing.”

    The differences can be aligned in a table:

    Dimension Evaluation Harness Agent Runtime
    Goal Test whether it can answer Enable it to get work done
    Input Questions and reference answers Work orders, directories, tool sets
    Output Scores and reports File changes, command results, execution traces
    Risk Low, usually read-only High, makes real changes to the environment

    The conclusion is clear: if the goal is to move an agent toward self-evolution, the subject of discussion must be the runtime, not the exam room.

    2. Chat, Agent, Runtime: Three Layers That Should Not Be Mixed

    The simplest way to understand these three layers:

    • A chat model is like a consultant. You ask and it answers. It cannot see your directories or run commands, and code has to be copied in and out manually.
    • An agent is like an intern. After receiving a work order such as “the tests are failing, help me fix it,” it browses directories, reads source code, runs tests, changes code, runs them again, and finally reports the results.
    • The runtime is the intern’s workstation. The workstation provides a desk (the working directory), a toolbox (plugins), work standards (skill packages), and surveillance cameras (logs and tracing).

    The key point here is that an agent’s capability ceiling is not determined entirely by the model, but by how complete the workstation is. The same model, on a workstation lacking tools, permissions, and feedback signals, can only produce suggestions; on a workstation with composable tools and clear standards, it can produce verifiable deliverables.

    3. What “Everything as Plugins” Actually Solves

    “Everything as plugins” is not marketing language, but an engineering constraint on extensibility. It solves at least four problems.

    First, capability replacement. File reading and writing, command execution, retrieval, browser access, and test running should all be integrated as plugins. Teams can replace implementations without changing the main flow.

    Second, least privilege. Plugin boundaries naturally form permission boundaries. Separating read-only plugins from writable plugins prevents the model from having the ability to “change” things while it is still in the “looking” stage.

    Third, observability. Every plugin invocation produces a structured record, making it easier to replay problems and locate the failing step.

    Fourth, composability. A new task is often not a new capability, but a re-orchestration of existing plugins.

    An illustrative plugin description can be written in the following structure (a generic example only, not pointing to any specific product):

    1. {
    2. "name": "file_read",
    3. "mode": "read_only",
    4. "inputs": ["path", "pattern"],
    5. "outputs": ["content", "meta"],
    6. "audit": true
    7. }

    4. Skill Packages Are the Vehicle for Solidifying Experience

    If plugins solve “what can be done,” skill packages solve “how it should be done.” A skill package usually contains trigger conditions, preconditions, execution steps, failure rollback, and acceptance criteria. Its value lies in turning one-off experience into reusable assets.

    A minimal skill package example:

    1. skill: fix_failing_test
    2. trigger: "tests are failing and logs are accessible"
    3. preconditions:
    4. - working directory is isolated
    5. - read-only retrieval plugin is available
    6. steps:
    7. - locate the failing test case
    8. - read the relevant source code
    9. - propose a minimal change
    10. - run the targeted test
    11. - run regression tests
    12. rollback: version control revert
    13. acceptance: target test case and regression cases all pass

    When both plugins and skill packages are in place, an agent’s “evolution” takes on real meaning: it is not that the model becomes smarter on its own, but that the workstation improves the success rate and predictability of similar tasks by adding plugins, revising skill packages, and accumulating execution traces.

    5. Three Onboarding Paths and First-Day Pitfalls

    There are usually three ways to get started. First, integration through a Python SDK, suitable for most application-side developers. Second, running in a Node environment, where you should check the minimum version requirement to avoid unnecessary upgrades. Third, studying the repository source code directly, suitable for teams that need to deeply customize plugins.

    The most common first-day pitfalls come down to five points:

    1. Inconsistent default branch names. If a documentation link points to the wrong branch, it will fail directly, so confirm the default branch before cloning.
    2. Missing model access credentials. Without credentials the runtime cannot start, and calls will incur costs, so budget and rate limiting should be planned in advance.
    3. No directory isolation. The runtime makes real file changes and runs commands, so work must be done in a separate directory or container.
    4. Permissions set too broadly. Enabling write access and network access by default amplifies the risk of mistakes.
    5. Locking a preview version into production. Runtime interfaces and behavior in the preview stage may change and are not suitable as production dependencies.

    The recommended isolated directory structure is as follows:

    1. workspace/
    2. sandbox/ # writable area for the runtime
    3. skills/ # skill packages
    4. plugins/ # plugin configuration
    5. logs/ # execution traces

    6. How to Judge Whether This Is a Viable Path

    There are three criteria. First, whether it is verifiable: every change can produce a conclusion through tests or check scripts. Second, whether it is reversible: any change can be undone by version control or a snapshot. Third, whether it is attributable: when a failure occurs, you can locate the specific plugin, the specific parameters, and the specific step.

    When all three are met, “everything as plugins plus skill packages” does form a viable engineering path for agent self-evolution; otherwise, no amount of automation merely amplifies uncertainty. For enterprise users who want to further reduce setup and operations costs, general cloud capabilities such as container platforms, object storage, log services, and monitoring and alerting can be combined to build an isolated, traceable, and alertable execution environment—for example, using the relevant general product categories from Baidu AI Cloud to achieve resource isolation and runtime observability.