← 返回
未分类 中文

OpenClaw Compact Summary

Generates a structured markdown summary of conversation memory flush with key stats, tools, user requests, tasks, files, and timeline details.
生成结构化的 Markdown 摘要,涵盖对话记忆刷新的关键统计、工具、用户请求、任务、文件及时间线详情。
hanxiao-bot
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 429
下载
💾 0
安装
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 07:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Error Recovery

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

Compact Summary

hanxiao-bot
在刷新或压缩时生成结构化、简洁的内存摘要,涵盖会话统计、工具、用户请求、任务、文件、进度和时间等信息。
★ 0 📥 402

OpenClaw Hook Examples

hanxiao-bot
为 OpenClaw 提供示例钩子,用于拦截、修改、阻止工具调用,切换模型,记录操作以及处理子代理事件。
★ 0 📥 429