Everything Is a Plugin: A New Path for Agent Self-Evolution

    This article explains why agent systems often degrade despite stronger models, tracing the issue to context engineering and how capabilities are exposed. It presents an "everything is a plugin plus skill pack" architecture, covering capability injection timing, reusable skill packs, progressive loading with trajectory anchoring, and three feedback loops that enable practical self-evolution. Readers will find implementation advice and common pitfalls for building agents that improve over time.

    1. The Problem: Why Agents Get “Dumber” Over Time

    Many teams building agent systems run into a counterintuitive pattern: the underlying model keeps getting stronger, yet end-to-end performance stalls or even declines. The cause is usually not the model itself, but context engineering and the way capabilities are exposed.

    When a session starts by loading a large set of tool descriptions (tool schemas) into the context all at once, the model has to choose from a huge action space before it has even begun real work. This leads to three problems:

    1. Trajectory drift: The very first step lands on a low-probability path that diverges from the training distribution, making it hard to correct later.
    2. Context bloat: Tool definitions, workspace instructions, and message history compete for the context window, diluting critical constraints.
    3. Capability coupling: All capabilities are hard-coded into the main flow, so they cannot be loaded on demand, reused, or evolved independently.

    A common industry solution is “minimal mode”: start with only the two most basic capabilities (for example, running commands and editing files), paired with a base system prompt the model is highly familiar with from post-training. This brings the model back to an environment it has “seen before,” keeps the first step stable, and only then restores full capabilities. In practice, this approach noticeably improves evaluation results. A further refinement is “trajectory anchoring”: let the model take the first step with the minimal capability set, confirm it has entered a stable trajectory, and then open up the remaining tools.

    The core proposition of this article is whether consolidating this thinking into an “everything is a plugin + skill pack” architecture provides an engineering-feasible path for agent self-evolution. Our conclusion is yes, but three key pieces must be in place: timing control for capability injection, reusable accumulation of skills, and evaluation feedback for the evolution loop.

    2. Breaking Down the Core Mechanisms: From Piling Up Tools to Orchestrating Capabilities

    2.1 Everything Is a Plugin: Turning Capabilities into Pluggable Units

    The essence of a plugin-based approach is turning “what the model can do” from a static configuration into dynamic orchestration. Each plugin should contain at least four parts: a capability declaration (name, purpose, applicable and non-applicable scenarios), an input/output contract (structured schema and validation rules), permission and resource boundaries (accessible paths, network, and key scopes), and lifecycle hooks (load, ready, unload).

    The direct benefit is that the main flow no longer cares about capability details and only decides “what to assemble and when.” Once plugin contracts are unified, capabilities can be developed, tested, and gradually rolled out independently, and can even come from different teams.

    2.2 Skill Packs: Turning “Doing It Right Once” into “Doing It Right Every Time”

    A skill pack is not a tool, but a reusable encapsulation of methodology: it writes the successful path for a class of tasks into structured steps, checkpoints, and failure fallback strategies for the model to read on demand. A mature skill pack typically includes:

    • Trigger conditions: what task characteristics should cause the skill to load;
    • Standard operating procedure: step-by-step goals and acceptance criteria;
    • Constraints and prohibitions: what cannot be done, and how to make trade-offs when conflicts arise;
    • Validation scripts: automated checks used to confirm results in a closed loop;
    • Change log: the skill’s own version and performance comparison.

    The value of skill packs is making “tacit experience” explicit and versionable, giving the system the material foundation to “get smarter with use.”

    2.3 Progressive Capability Injection: Anchor the Trajectory First, Then Release Capabilities

    This is the key scheduling strategy that ties the two together, and it can be summarized in four stages:

    1. Minimal startup: Assemble only the two basic capabilities of execution and editing, using the base prompt the model is most familiar with.
    2. Trajectory detection: Wait for the first tool call to complete, then judge whether the execution trajectory is stable (whether it falls within the expected set of actions).
    3. Mode switch: After anchoring is confirmed, reconnect full tool capabilities through a unified code execution entry point, avoiding a one-time flood of schemas.
    4. Delayed restoration: Restore workspace-level instructions and the skill directory last, preventing a sudden context change from knocking the trajectory off course again.

    Illustrative scheduling logic (pseudocode):

    1. def on_first_tool_result(ctx, result):
    2. if not ctx.minimal_mode:
    3. return
    4. if is_trajectory_anchored(ctx.trace, result):
    5. ctx.set_mode("code_mode") # reconnect full capabilities via a single entry point
    6. ctx.restore_workspace_later() # restore workspace instructions later
    7. ctx.restore_skills_later() # restore skill directory later

    3. The Self-Evolution Loop: Three Feedback Circuits

    Plugins and skills alone only make the system “configurable,” not “evolving.” Real evolution requires closed loops:

    • Circuit 1: Trajectory-level feedback. Record each task’s initial action distribution, anchoring success rate, and number of corrections, used to optimize the “minimal capability set” and prompt templates.
    • Circuit 2: Skill-level feedback. Track each skill pack’s load rate, task success rate, average number of steps, and fallback rate. Low-value skills are automatically down-weighted or retired, while high-value skills are distilled into default strategies.
    • Circuit 3: Contract-level feedback. When a class of tools is frequently misused or has a high parameter-error rate, it signals a contract design problem, and the schema and validation should be fixed at the plugin layer rather than asking the model to “guess harder.”

    Together, the three circuits form a flywheel of “execute, measure, accumulate, re-execute.” This is the real engineering meaning of self-evolution: not the model changing its own weights, but the system continuously rewriting its own context and capability structure around the model.

    4. Implementation Advice and Common Pitfalls

    1. Expose capabilities “on demand, in batches”: Keep the active tool set as small as possible at any moment, replacing a huge set of parallel tools with a unified entry point.
    2. Layer prompts and skills: Keep the base prompt stable and put task-specific knowledge into skill packs, avoiding unlimited growth of the main prompt.
    3. Contracts first: Define input/output and validation before writing the implementation; error messages should be understandable to the model so it can self-correct.
    4. Observability is a must: Use logging services and monitoring/alerting systems to build dashboards for trajectories, tool calls, and skill hits.
    5. Sandboxing and least privilege: Run plugins in restricted environments and issue credentials on demand to avoid privilege escalation and spreading side effects.
    6. Gradual rollout and rollback: Both skills and plugins need versions and switches so you can roll back with one click when performance degrades.
    7. Beware of “pseudo-evolution”: If the evaluation set is disconnected from the real task distribution, the flywheel will only amplify bias, so the evaluation set must be continuously updated.

    5. Conclusion

    The reason “everything is a plugin + skill pack” can become a path for agent self-evolution is that it breaks evolution into three engineering-tractable things: dynamic orchestration of capabilities, explicit accumulation of experience, and continuous rewriting based on feedback. In practice, if you start with trajectory anchoring, use contracts and evaluation as guardrails, and build the infrastructure on general cloud capabilities such as container platforms, object storage, and logging and monitoring, an agent system can move from a “one-off demo” to “sustainable evolution.”