Four Core Directions for Going Further with Self-Evolving Agents

    After a first look at self-evolving agents, the next step is not swapping in a stronger model. This article explains why “getting better with use” lives in external state files, then covers four study areas: splitting memory, skills, and knowledge; closing the loop from a task to a skill; treating skills as auditable documents; and decoupling the runtime from the model layer.

    Start by Clarifying What Actually Gets Stronger

    A common first impression of a self-evolving agent is that longer use quietly fine-tunes the model and writes your habits into its weights.

    The opposite is true of most mainstream designs. They deliberately avoid any change to model weights. The base model stays frozen. What changes sits around the model: a few external state files. “Getting stronger with use” is a systems-engineering property, not a training property.

    Once that is clear, the study path is also clear. The focus is not “how do I swap in a stronger model,” but “how do I design, maintain, and audit the state system outside the model.”

    Direction 1: Externalize State—Memory, Skills, and a Knowledge Base

    A well-designed agent usually splits internal state into three kinds of human-readable files:

    1. Memory. Personal and task context: preferences such as answer style and preferred stacks, intermediate conclusions from work in progress, and unfinished items. A typical layout is one file about the user and one about the current task or session, so long-term preferences do not mix with temporary context.

    2. Skills. Reusable methods. These are not compiled plugins. They are operating notes, usually in Markdown—for example, “run a config check before deploy” or “generate API docs from a given template.” The model reads and follows them when needed.

    3. Knowledge base (wiki/notes). Domain knowledge: project background, term definitions, decision records, and postmortems.

    All three should be inspectable, editable by hand, and suitable for Git. At this stage you should be able to answer:

    • Should a fact go into memory or the knowledge base? The usual test is whether it is about “me / the current task” or about “the domain.”
    • How do you index and compress files once they grow? A common pattern is a directory-style entry file, with detail split into child files and loaded on demand.
    • How do you manage this state with Git? Put the state directory under version control so every automatic edit can be diffed and rolled back. That is the main safeguard against the system learning the wrong lesson.

    Direction 2: Design a Closed Learning Loop—From One Task to One Skill

    The core mechanism is a loop: do the task, review the result, capture the lesson, reuse it next time. Beginners only complete the first half. Further practice is making the second half solid.

    A reference loop:

    1. 1. Execute: the agent uses tools to do the work
    2. 2. Check: record both success and failure
    3. 3. Distill: on failure, note the pitfall and how to avoid it;
    4. on success, note which steps can become a fixed procedure
    5. 4. Generate a skill: write the reusable part as a new skill document
    6. 5. Iterate: if later use shows the document is wrong, edit the document

    A few points worth revisiting in practice:

    • What deserves to become a skill? Reusability and determinism. One-off task detail can stay in session history. Repeated operating patterns and stable “avoid this” rules are worth promoting to skills.
    • Turn errors into assets. A conventional agent forgets a mistake when the session ends. A self-evolving agent should turn a lesson such as “the last deploy failed because config was applied in the wrong order” into an operating note and follow it next time. You can explicitly ask it, in the prompt, to review failed tasks.
    • Keep the skill library from rotting. As skills accumulate they go stale, conflict, or duplicate. Periodically review the catalog by hand: delete what no longer applies and merge duplicates. This is the same idea as removing dead code.

    Direction 3: Push “A Skill Is a Document” as Far as It Will Go

    “A skill is a natural-language document” looks plain, but it is the part of the system most worth going deep on. It pays off directly in engineering:

    1. Auditable. You can open the file and see the rule the model will follow next. There is no black-box plugin.
    2. Writable by hand. You can author a skill yourself instead of waiting for the agent to “learn” it. A rule file that says “tests must pass before code is submitted” takes effect immediately.
    3. Loaded on demand. Skills are not all stuffed into context. They are matched to the current task, which saves context window and stays specific. Open skill-description conventions already exist (Markdown-based skill formats). When you go further, read their structure: typically a name, trigger conditions, steps, and cautions.

    Tips for writing a skill document:

    • Say how to do it, and also when not to do it. Boundary conditions reduce misuse more than the happy path.
    • Keep steps atomic and checkable so the model can verify each one.
    • Include counterexamples: “Do not delete the old config before writing the new one; that once took the service down.” A concrete failure beats an abstract warning.

    Direction 4: Decouple the Runtime from the Model Layer

    A mature agent system is layered: an interaction layer (terminal, multiline editing, history search, streaming output), a capability layer (file I/O, command execution, tool calls), a state layer (memory, skills, knowledge base), and a model layer (a swappable large-model interface).

    Focus on:

    • Model replaceability. A good design lets you attach different models through an OpenAI-compatible interface or a provider gateway, while state and skills stay with you. The model is a replaceable execution engine. Memory and skill files remain valid if you change models later—that is the architecture’s main long-term value.
    • Choice of entry point. The terminal is the most common entry, not the only one. Knowing which entry fits which situation—terminal for day-to-day development, a background session for long jobs, a mobile client for light interaction—improves how efficiently you use the system.
    • Safety boundaries. The agent can run commands and edit files. Learn to set permission limits: restrict accessible directories, require confirmation for sensitive actions, and regularly review its automatic edits to state files.

    A Suggested Learning Path

    1. Week 1: Open each of the three state file types and read them. Manually edit one memory entry and hand-write one skill so you have a feel for the system.
    2. Week 2: Put the state directory in Git. Let the agent make one controlled mistake, watch how it captures the lesson, then review and improve the generated skill document.
    3. Week 3: Practice skill-library hygiene—build a directory index and deduplicate or merge skills once.
    4. Ongoing: Get used to co-authoring. You write rules and boundaries; it writes procedures and detail; you review together on a regular cadence.

    Closing

    What is worth learning after the basics is not more commands. It is the idea of taking learning out of the weights and putting it into files you can manage. Models will keep being replaced. The memory, skills, and knowledge base you build around them are the assets that appreciate. Once that is clear, you stop being only a tool user and start designing the agent system.