AI Agent Hub
Back to skills
Agent Self-Improving Memory icon

Agent Self-Improving Memory

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_60b84151/aaa1111 according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

Agents often confuse one-off instructions, user preferences, repeated corrections, and stale rules. Without a controlled memory path, useful lessons may be lost while irrelevant details consume context, and project-specific conventions can leak into unrelated work. This skill keeps reusable knowledge in local files, without credentials, external services, or network access.

How It Works

It captures explicit corrections, stated preferences, and repeated instructions, then prompts self-reflection after significant work. Memory is stored under ~/self-improving/ with a tiered layout: memory.md holds HOT rules, projects/ and domains/ hold scoped patterns, and archive/ holds inactive material. New lessons are not promoted immediately; they require repetition or confirmation. When a file exceeds its size limit, similar entries are merged, verbose ones are summarized, or unused patterns are demoted instead of deleted. Queries, stats, exports, and forget requests are explicit, and memory usage cites the source file.

Boundaries

It does not access calendar, email, or contacts, does not make network requests, does not read files outside ~/self-improving/, and does not infer preferences from silence or observation. It fits agents that need durable collaboration styles, project conventions, and correction history. It is not intended for external system synchronization, permission management, or automatic archival of sensitive private data.

Use Cases

  • When switching between projects, keep project-specific coding conventions in agent memory instead of re-explaining them each time.
  • After repeated user corrections to output style, persist explicit preferences to HOT memory for consistent future behavior.
  • After a multi-step task or bug fix, trigger self-reflection and capture reusable improvements for future runs.
  • When querying learned patterns, memory stats, exports, or forgetting stale rules, manage the local tiered memory store.

Best For

  • AI agent developers who need correction logs, preference memory, and rule governance for local agents.
  • Agent platform integrators who need to isolate project conventions in local files and load them on demand.
  • Engineers who use personal assistants long term and want fewer repeated explanations of code style, project conventions, and preferences.
  • Prompt and workflow designers who need explicit control over learning signals, promotion/demotion, and source citation.