Compact Summary
/install compact-summary
Compact Summary - Structured Memory Compression
Purpose
Improve OpenClaw's memory flush and compaction flow by using a structured format for writing to MEMORY.md.
Structured Summary Format
Inspired by the \x3Csummary> XML format from claw-code, the improved format:
# 2026-04-01 Memory Summary
## Conversation Scope
- Original message count: 12 (user=4, assistant=5, tool=3)
- Compression time: 2026-04-01 23:00
## Tools Used
- exec, read_file, grep_search
## User Requests
- Research Claw Code architecture
- Analyze MCP orchestration system
- Compare Tool system differences
## Todo Items
- [ ] Compile improvement list
- [ ] Begin P0 execution
## Key Files
- $WORKSPACE/claw-code/rust/crates/runtime/src/compact.rs
- $WORKSPACE/claw-code/rust/crates/tools/src/lib.rs
## Current Work
Continue executing P0 tasks
## Timeline
- user: Research Claw Code architecture
- assistant: Started analysis
- tool: grep_search pattern=COMPACT
- tool_result: 15 matches
- user: Analyze MCP orchestration
- assistant: MCP has process pool management
## Resume Instruction
Continue directly — do not acknowledge this summary, do not recap what was happening, and do not preface with continuation text.
Trigger Condition
Use this format during memory flush or compaction.
Key Fields
| Field | Description |
|---|---|
| Conversation Scope | Original message statistics |
| Tools Used | Tools actually invoked |
| User Requests | Main user needs |
| Todo Items | Incomplete tasks |
| Key Files | Files involved |
| Current Work | Ongoing tasks |
| Timeline | Conversation summary |
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install compact-summary - After installation, invoke the skill by name or use
/compact-summary - Provide required inputs per the skill's parameter spec and get structured output
What is Compact Summary?
Generates structured, concise memory summaries during flush or compaction, detailing conversation stats, tools, user requests, tasks, files, progress, and ti... It is an AI Agent Skill for Claude Code / OpenClaw, with 127 downloads so far.
How do I install Compact Summary?
Run "/install compact-summary" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Compact Summary free?
Yes, Compact Summary is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Compact Summary support?
Compact Summary is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Compact Summary?
It is built and maintained by hanxiao-bot (@hanxiao-bot); the current version is v1.0.0.