Agent Self-Evolution: Accumulating Experience in Task Closed-Loops

Introduction

When using an Agent for coding or workflow automation, a common issue is that the same pitfalls encountered in one session are repeated in the next, and user-corrected formatting preferences are not remembered. Simply extending the system prompt or manually maintaining a MEMORY.md file often lacks the discipline of “must-review-at-end, must-retrieve-at-start” for every task.

Below is an introduction to Agent Self-Evolution (@kunlungrowth/self-improving-agent-cn) on SkillHub. It is a set of Chinese self-improvement instructions based on a generic SKILL.md, published by Kunlun Growth. It embeds the “Review → Store → Retrieve → Apply” workflow as a mandatory process for the Agent, rather than running as a separate service.

What is This

Agent Self-Evolution is positioned on SkillHub as a Chinese Self-Improving Engine for AI Agents by Kunlun Growth, with the tagline “Continuously upgrade from real-world feedback.”

  • Identifier: @kunlungrowth/self-improving-agent-cn
  • Version: 1.0.0
  • Category: ai-agent
  • Source: enterprise (SkillHub Enterprise Source)
  • Publisher: Kunlun Growth
  • License: MIT (See SKILL.md frontmatter inside the package)
  • API Key: requires_api_key=false, no separate key configuration needed

The SkillHub page does not currently display a long description; however, the SKILL.md inside the package explains its goal: to accumulate successful paths, failure reasons, corrections, and user preferences after every task, and to retrieve historical experience before starting a task. It supports both explicit memory (directly told by the user) and implicit memory (derived from interactions).

Core Features

The following capabilities are derived from the SKILL.md within the installed package. There are no independent executable scripts; it relies on the Agent following the documentation.

Continuous Improvement Loop

After a task is completed, the Agent reviews and refines the experience into a knowledge base; before the next similar task begins, it retrieves and applies this knowledge, forming a closed loop of “Task Complete → Review → Store → Retrieve → Apply.”

Four-Level Experience Base Structure

Experience is organized by directory (maintained by the Agent as Markdown files in agreed paths):

  • Success Paths: Reusable effective practices
  • Failure Lessons: Reasons for failure and avoidance methods
  • User Preferences: Formatting, tone, taboos, etc.
  • Domain Knowledge: Reusable knowledge accumulated during tasks

A single experience entry should ideally include: Scene, Practice/Lesson, Result, and Trigger words.

Task Rhythm

  1. Task End (Mandatory every time): If successful, record the success path; if pitfalls were hit, record failure lessons; if new preferences are discovered, update user preferences.
  2. Task Start (Mandatory every time): Retrieve from the experience base; if a match is found, state “Based on historical experience” before executing; if no match, proceed normally and accumulate experience at the end.

Memory Priority

Source Priority
Explicit instructions from user Highest
Behavioral corrections by user High
Successful task patterns High
Task failure lessons Medium
Environmental knowledge Low

Anti-Obsession Mechanism

  • Experience must be labeled with the applicable scene to avoid being written as absolute rules.
  • When new evidence conflicts with old experience, prioritize new evidence and update records.
  • Sporadic failures must be reproduced at least twice before being stored.
  • Only record preferences; do not record user privacy content.

Trigger Words

Self-improvement, summarize experience, remember this, pay attention next time, avoid repeating, learning and growth, review, accumulate methodology, improve, self-improving, etc. (See Section 7 of SKILL.md for the full list).

Installation and Activation

Installation must follow the SkillHub Installation Instructions: The skill must be installed to the current Agent’s skills directory using the --dir parameter. Otherwise, it defaults to ./skills/ and may not be loaded by the client.

1. Install SkillHub CLI (if not already installed)

command -v skillhub && skillhub --version

If not installed, run the following (Full install or CLI only, depending on official documentation):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# CLI Only:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

2. Install this Skill

The official page suggests: Install @kunlungrowth/self-improving-agent-cn according to https://skillhub.cn/install/skillhub.md.

In an environment with the SkillHub CLI configured, you can use the namespace-based installation method (tested to successfully pull the v1.0.0 package):

skillhub install self-improving-agent-cn --namespace kunlungrowth --dir <your Agent skills directory>

Common skills directories (excerpt from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Restart or reload the Agent after installation to activate the new Skill. You can also send the installation prompt from the official page directly to the AI, allowing it to complete the installation via skillhub.md.

Typical Usage

The interaction example provided in the package (weekly report length preference) can be reproduced with the following logic:

  1. User says: “The last weekly report you wrote was too long.”
  2. Agent retrieves from the experience base, hitting a record like “User Preference / Weekly reports should be concise.”
  3. Agent replies and commits: Future weekly reports will be kept within the agreed number of key points.
  4. Apply this preference when writing the report this time; after the task ends, confirm the experience is still valid and retain it.

You can also actively accumulate experience using trigger words in daily use. For example, when the user says “Remember this,” “Pay attention next time,” or “Review this deployment,” the Agent writes to the corresponding category according to Section 3 of SKILL.md.

Use Cases and Notes

Who is it for

  • Long-term Agent users in the same repository or team scenario who want errors and preferences to persist across sessions.
  • Those willing to let the Agent perform fixed retrieval and review at the beginning and end of tasks, rather than relying solely on single-conversation context.
  • Users of clients supporting Skills / SKILL.md, such as Cursor, Claude Code, or Codex.

Limitations and Notes

  • This package is a pure instruction-based Skill; it does not include helper scripts like log_error.py. The experience base path and storage method need to be agreed upon within the team and the Agent.
  • If the SkillHub list page description is empty, use the SKILL.md inside the package as the source of truth.
  • If installation fails using the slug kunlungrowth/self-improving-agent-cn (without namespace), try using --namespace kunlungrowth instead (this relates to how SkillHub index parsing works).
  • According to SkillHub scraped data: Rating 100000, ~19871 downloads, install count 0; actual popularity should refer to real-time SkillHub page data.

Conclusion

Agent Self-Evolution converges self-improvement into an executable Agent workflow: accumulating at task end, retrieving at task start, and using priority and anti-obsession rules to prevent memory ossification. If you are using an Agent within the domestic Skill distribution ecosystem, you can install this package from SkillHub and enable it according to SKILL.md.

  • SkillHub Page: https://www.skillhub.cn/skills/kunlungrowth/self-improving-agent-cn
  • Official Identifier Page: https://api.skillhub.cn/kunlungrowth/self-improving-agent-cn
  • Installation Instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye