Self Improving Agent

Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rul

What Is Self Improving Agent?

Self Improving Agent is a Claude Code skill designed to transform ephemeral auto-memory into durable, actionable project knowledge. While Claude Code’s auto-memory (v2.1.32+) passively logs patterns, debugging hints, and developer preferences in MEMORY.md, Self Improving Agent adds the crucial intelligence layer: it curates, analyzes, and promotes the most useful insights into persistent knowledge artifacts like CLAUDE.md, .claude/rules/, or even reusable skills. The result is a living, evolving knowledge base that reflects the real history and learnings of your engineering team, making your projects more robust and easier to maintain over time.

Why Use Self Improving Agent?

As projects evolve, teams repeatedly encounter similar challenges, solutions, and coding patterns. Relying solely on human memory or scattered notes leads to knowledge silos and repeated mistakes. Claude Code’s auto-memory goes a step further by automatically capturing these insights, but without curation, raw memory logs become unwieldy and stale.

Self Improving Agent bridges this gap by:

  • Promoting Proven Patterns: It identifies which recurring solutions are mature enough to become formal project rules or documentation.
  • Extracting Reusable Skills: When a particular solution to a problem is encountered multiple times, it can be turned into a standalone, reusable skill.
  • Maintaining Memory Health: The tool checks for redundant, outdated, or contradictory memory entries, keeping your knowledge base clean and actionable.
  • Scaling Team Knowledge: New team members can onboard faster with access to distilled, high-quality project wisdom.

Ultimately, Self Improving Agent enables continuous improvement, turning everyday development experience into lasting project assets.

How to Get Started

To integrate Self Improving Agent into your Claude Code workflow:

  1. Installation:
    Clone the repository from the official source and follow the setup instructions.

  2. Ensure Auto-Memory is Active:
    Confirm that you’re running Claude Code v2.1.32 or later, as this version supports the auto-memory feature that tracks project insights in MEMORY.md.

  3. Basic Usage:
    Use the following commands to interact with the skill:

    • /si:review: Scans MEMORY.md for patterns, stale entries, and promotion opportunities.
    • /si:promote: Graduates a well-established pattern into CLAUDE.md or .claude/rules/.
    • /si:extract: Converts a recurring solution into a reusable skill.
    • /si:status: Provides a dashboard summarizing memory health, with recommendations.
    • /si:remember: Manually saves critical knowledge to auto-memory.
  4. Example: Suppose Claude’s auto-memory logs the following debugging pattern in MEMORY.md:

    # MEMORY.md
    If encountering "connection timeout" with Service X, increase RETRY_INTERVAL to 5000ms and check firewall rules.

    You can promote this pattern to a formal rule:

    /si:promote "connection timeout" with Service X

    The rule will then be added to .claude/rules/connection-timeout.md or appended to CLAUDE.md for team-wide visibility and enforcement.

Key Features

  • Automated Memory Curation:
    Continuously analyzes MEMORY.md for patterns, obsolete information, and opportunities to consolidate knowledge.

  • Promotion Engine:
    Graduates proven patterns into project rules or documentation, ensuring best practices are codified and enforced.

  • Skill Extraction:
    Identifies recurring solutions and extracts them as reusable skills, making them available for other projects or scenarios.

  • Memory Health Dashboard:
    The /si:status command provides insights into memory usage, stale topics, and actionable recommendations.

  • Explicit Knowledge Capture:
    Use /si:remember to record crucial insights that might otherwise be lost.

  • Integration with Claude Knowledge Stack:
    Seamlessly connects with existing files (MEMORY.md, CLAUDE.md, .claude/rules/) to maintain a structured, evolving knowledge base.

Best Practices

  • Regularly Review Memory:
    Schedule periodic /si:review sessions—ideally after major sprints or postmortems—to identify patterns worthy of promotion.

  • Promote, Don’t Hoard:
    Move mature learnings out of MEMORY.md promptly. This keeps memory focused on new or uncertain patterns and prevents knowledge rot.

  • Extract General Solutions:
    When a solution is generic and occurs across multiple contexts, use /si:extract to make it a reusable skill. Document its parameters and usage for maximum reusability.

  • Monitor Memory Health:
    Use /si:status to catch redundant or conflicting notes early, reducing cognitive load for the team.

  • Encourage Explicit Remembering:
    When a team member solves a tricky bug or adopts a novel approach, prompt them to use /si:remember so the insight is not lost.

Important Notes

  • Version Compatibility:
    Self Improving Agent requires Claude Code v2.1.32 or newer for full auto-memory support.

  • Manual Oversight Still Matters:
    While automation curates knowledge, human review ensures contextually appropriate promotions and avoids codifying premature or one-off patterns.

  • Sensitive Information:
    Be mindful of what is promoted—avoid including secrets, credentials, or personally identifiable information in project rules or public skills.

  • Customization:
    The tool can be configured to align with your team’s documentation standards, file structures, or naming conventions.

  • Continuous Evolution:
    Your knowledge base should reflect the ongoing evolution of your codebase and team practices. Regular use of Self Improving Agent ensures your project learns and adapts as you do.