跳到正文
TakoAPI
返回技能列表

hierarchical-memory

由 balkanblbn 提供

Web & Frontend Development
384下载量由 clawskills.sh 提供
2星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage and navigate a multi-layered, branch-based memory system.

描述

该技能的功能

Organizes agent memory into three layers: Root, Domain, and Project. Each layer is a local markdown file, linked into a navigable hierarchy. A Python script automates creating new branches and inserting the correct links.

Branching memory into focused files means an agent reads only what is needed, avoiding the cost of scanning a single flat memory document on every task.

何时使用

  • Keeping trading strategy notes separate from coding project details
  • Loading only the relevant memory branch for a focused task
  • Tracking multiple active projects without losing context between sessions
  • Syncing an agent to recent changes via per-domain delta files
  • Pruning obsolete context during periodic memory reviews

示例工作流

输入

User asks: Set up a new project memory for my trading bot

智能体
  1. 1

    Reads MEMORY.md to locate the relevant domain file

  2. 2

    Runs scripts/add_branch.py to generate memory/projects/trading-bot.md from the boilerplate template

  3. 3

    Populates the file with project status, tech stack, and open to-dos

  4. 4

    Adds a backlink in the trading domain file pointing to the new project file

  5. 5

    Updates MEMORY.md with a link to the new branch

输出

A structured project memory file linked from both the domain and root layers, ready for future recall

安装

clawhub install balkanblbn/hierarchical-memory

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接