← 返回
未分类 中文

Compact Summary

Generates structured, concise memory summaries during flush or compaction, detailing conversation stats, tools, user requests, tasks, files, progress, and ti...
在刷新或压缩时生成结构化、简洁的内存摘要,涵盖会话统计、工具、用户请求、任务、文件、进度和时间等信息。
hanxiao-bot
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 393
下载
💾 1
安装
1
版本
#latest

概述

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

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

FieldDescription
--------------------
Conversation ScopeOriginal message statistics
Tools UsedTools actually invoked
User RequestsMain user needs
Todo ItemsIncomplete tasks
Key FilesFiles involved
Current WorkOngoing tasks
TimelineConversation summary

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 10:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

OpenClaw Compact Summary

hanxiao-bot
生成结构化的 Markdown 摘要,涵盖对话记忆刷新的关键统计、工具、用户请求、任务、文件及时间线详情。
★ 0 📥 439

Auto Skill Trigger

hanxiao-bot
自动技能触发 - 使用关键词评分匹配技能与任务
★ 0 📥 427

Error Recovery

hanxiao-bot
错误恢复 - 优雅处理失败的策略
★ 0 📥 500