Context Memoize
/install context-memoize
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
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install context-memoize - After installation, invoke the skill by name or use
/context-memoize - Provide required inputs per the skill's parameter spec and get structured output
What is Context Memoize?
Caches and manages frequently used context fragments to avoid redundant processing by saving, listing, and clearing cached data. It is an AI Agent Skill for Claude Code / OpenClaw, with 128 downloads so far.
How do I install Context Memoize?
Run "/install context-memoize" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Context Memoize free?
Yes, Context Memoize is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Context Memoize support?
Context Memoize is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Context Memoize?
It is built and maintained by shaoxiang616 (@shaoxiang616); the current version is v0.1.0.