Hierarchical Memory
/install hierarchical-memory
Hierarchical Memory (Neural Branching)
This skill provides a structured method for managing long-term memory in a multi-layered, branched format to prevent context bloat and ensure high-fidelity recall.
🛡️ Security & Transparency
This skill includes a Python script scripts/add_branch.py. This script is used solely to:
- Create directories in your
memory/folder. - Create boilerplate markdown files for new memory branches.
- Append links to these new files in your existing memory maps. It does not perform any network activity, access sensitive system files, or execute external code.
Memory Architecture
The memory system is organized into three primary layers:
-
Layer 1: Root Memory (
MEMORY.md)- The central nervous system.
- Contains high-level context about the partnership, core missions, and global goals.
- Acts as a map to all other memory layers.
-
Layer 2: Domain Memories (
memory/domains/*.md)- Specialized knowledge silos.
- Examples:
coding.md,trading.md,social.md,research.md. - Contains domain-specific philosophies, tech stacks, and project indices.
-
Layer 3: Project Memories (
memory/projects/*.md)- Deep-dive details for specific initiatives.
- Examples:
hesapgaraj.md,clawguard.md,baa.md. - Contains project status, to-dos, technical specs, and history.
How to Use This Skill
1. Recalling Information
- Always start by searching
MEMORY.md. - Follow the "Map" links to the relevant Domain or Project file.
- Use
readto load only the specific branch needed for the current task.
2. Adding New Information
- New Fact about the Partnership: Update
MEMORY.md. - New Domain: Create a new file in
memory/domains/and link it fromMEMORY.md. - New Project: Create a new file in
memory/projects/and link it from its primary Domain file.
3. Cross-Referencing
- If a project belongs to multiple domains (e.g., a trading bot that requires coding), link the Project file from both Domain files.
Automation Tools
Use the provided scripts to maintain the hierarchy:
scripts/add_branch.py: Automatically create a new domain or project file with the correct template and linking.
Best Practices
- Atomic Writes: Keep project files focused only on that project.
- Backlinks: Every branch should have a "Back to Root" or "Back to Domain" link.
- Pruning: During heartbeats, review branches and remove obsolete information.
- Why This Matters: Every branch and major entry must include a "Significance" line (Why is this important?) to prevent "Zombie Memory" (useless data accumulation).
- Recent Delta: Maintain a
recent_delta.mdin each domain/project folder containing changes from the last 3-7 days for rapid context synchronization.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hierarchical-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/hierarchical-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Hierarchical Memory 是什么?
Manage and navigate a multi-layered, branch-based memory system. This skill helps organize complex agent context into Root, Domain, and Project layers to pre... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 645 次。
如何安装 Hierarchical Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hierarchical-memory」即可一键安装,无需额外配置。
Hierarchical Memory 是免费的吗?
是的,Hierarchical Memory 完全免费(开源免费),可自由下载、安装和使用。
Hierarchical Memory 支持哪些平台?
Hierarchical Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hierarchical Memory?
由 balkanblbn(@balkanblbn)开发并维护,当前版本 v1.0.1。