compact-memory-implementation

Community

Enable compact memory for persistent agents.

Authorsimbajigege
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers need a reliable workflow to compress long agent memories while preserving essential state across sessions, so Claude-based agents can continue work without memory bloat.

Core Features & Use Cases

  • Forked compactor pattern: offload summarization to a dedicated sub-agent to produce structured memory.
  • Memory schema and restoration: define a consistent memory object that can be injected into the system prompt for subsequent sessions.
  • Trigger strategies: implement token/threshold, phase boundaries, or turn-based triggers to decide when to compact.
  • Cross-session persistence: ensure memory survives restarts and resumes with context intact.

Quick Start

Clone or install this skill and integrate its compaction workflow into your agent loop to enable persistent memory.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compact-memory-implementation
Download link: https://github.com/simbajigege/book2skills/archive/main.zip#compact-memory-implementation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.