← 返回
未分类 中文

Context Memoize

Caches and manages frequently used context fragments to avoid redundant processing by saving, listing, and clearing cached data.
缓存和管理频繁使用的上下文片段,通过保存、列出和清除缓存数据来避免冗余处理。
shaoxiang616 shaoxiang616 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 343
下载
💾 1
安装
1
版本
#cache#context#latest

概述

Context Memoize Skill

Caches frequently used context fragments to reduce redundant processing.

Trigger

When user says "缓存这个上下文" or "memoize this context" - save the current context for reuse.

Implementation

Use a simple file-based cache:

# Save context fragment
echo "$CONTENT" >> ~/.openclaw/context-cache/fragments.md

# List cached fragments  
ls ~/.openclaw/context-cache/

# Clear cache
rm -rf ~/.openclaw/context-cache/

Integration

This skill can be called from AGENTS.md Session Startup to pre-load cached context:

if [ -f ~/.openclaw/context-cache/fragments.md ]; then
  cat ~/.openclaw/context-cache/fragments.md
fi

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-07 06:14 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

CLAUDE.md Auto Discovery

shaoxiang616
自动发现并加载项目根目录中的 CLAUDE.md 文件,支持 @include 指令以及最多 40,000 字符的逆向加载。
★ 0 📥 455

CLAUDE.md Auto Discovery

shaoxiang616
自动发现并加载项目根目录中的 CLAUDE.md 文件,支持 @include 指令和反向顺序加载,最多 40,000 个字符。
★ 0 📥 375

Context Memoize Cache

shaoxiang616
将用户指定的上下文片段缓存到文件中,以避免重复处理并在多个会话中复用。
★ 0 📥 351