Clawng Term Memory
/install clawng-term-memory
clawng-term-memory
Make your OpenClaw agent portable and persistent. Every change to your agent's soul, memory, and operating rules is committed to git and pushed to a private GitHub repo — so you can restore your exact agent setup on any machine, just by cloning the repo.
Watch your assistant evolve over time through its git history: see when it learned something new, what decisions changed, and who it was a week ago. It's version control for a mind.
Setup
- Initialize a git repo in your workspace (if not already done):
cd ~/.openclaw/workspace
git init
git config user.name "YourAgent"
git config user.email "[email protected]"
- Create a private GitHub repo, then add it as a remote using SSH (recommended) or HTTPS:
SSH (recommended — no token exposure):
git remote add origin [email protected]:\x3Cuser>/\x3Crepo>.git
HTTPS with credential store (no token in URL):
git remote add origin https://github.com/\x3Cuser>/\x3Crepo>.git
git config credential.helper store
# Git will prompt for credentials on first push and store them securely
- Push initial commit:
git branch -M main && git push -u origin main
- Set workspace path if non-standard (optional):
export CLAWNG_WORKSPACE=/your/custom/workspace/path
The script defaults to $HOME/.openclaw/workspace if not set.
Multi-agent / multi-machine support
Each machine has its own branch (agent/\x3Chostname>) with its own MEMORY.md. A daily AI synthesis job reads all agents' memories and writes one authoritative SHARED_MEMORY.md to main — fully automatic, no human required.
agent/vps-1 → MEMORY.md ──┐
agent/vps-2 → MEMORY.md ──┤ Claude synthesizes → SHARED_MEMORY.md → main
agent/vps-3 → MEMORY.md ──┘
commit.sh— pushes toagent/\x3Chostname>automatically (branch created on first commit)merge.sh— collects all agents' MEMORY.md files for the synthesis agent- AI synthesis agent — deduplicates and merges into
SHARED_MEMORY.mdonmainnightly - All agents read
SHARED_MEMORY.mdfrommainto stay in sync
Scales to 10+ machines with no conflicts.
Tracked files
SOUL.md,MEMORY.md,USER.md,TOOLS.md,IDENTITY.md,AGENTS.md,HEARTBEAT.mdmemory/*.md(daily notes)skills/(installed skills)
Commit + push changes
Run after modifying any core file:
bash /path/to/workspace/skills/clawng-term-memory/scripts/commit.sh "short description of what changed"
Examples:
"MEMORY.md: added new client context""SOUL.md: updated operating rules""memory/2026-02-21.md: daily notes""HEARTBEAT.md: adjusted check frequency"
Daily AI synthesis (run once per day)
merge.sh collects all agent MEMORY.md files. An AI agent then synthesizes them into SHARED_MEMORY.md on main — deduplicating, resolving conflicts intelligently, and keeping all unique information.
Set up as an OpenClaw cron job (runs at 02:00 local time by default).
View history
cd /path/to/workspace && git log --oneline --graph memory/ MEMORY.md SOUL.md
Diff a file
cd /path/to/workspace && git diff HEAD~1 MEMORY.md
Revert a file to previous version
cd /path/to/workspace && git checkout HEAD~1 -- MEMORY.md
bash skills/clawng-term-memory/scripts/commit.sh "revert MEMORY.md to previous version"
Auto-commit rule
Always run the commit script after modifying a core knowledge file. Write → commit → push. Every time, no exceptions.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawng-term-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawng-term-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Clawng Term Memory 是什么?
Make your OpenClaw agent portable and persistent. Version-controls SOUL.md, MEMORY.md, and all core knowledge files using git with automatic GitHub push — so... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 549 次。
如何安装 Clawng Term Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawng-term-memory」即可一键安装,无需额外配置。
Clawng Term Memory 是免费的吗?
是的,Clawng Term Memory 完全免费(开源免费),可自由下载、安装和使用。
Clawng Term Memory 支持哪些平台?
Clawng Term Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Clawng Term Memory?
由 davidharket(@davidharket)开发并维护,当前版本 v1.2.0。