跳到正文
TakoAPI
返回技能列表

fractal-memory

由 bugmaker2 提供

Coding Agents & IDEs
464下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Automated hierarchical memory compression system that prevents context overflow through daily→weekly→monthly→core.

描述

该技能的功能

Hierarchical memory compression system that automatically rolls up daily agent logs into weekly, monthly, and core memory layers via scheduled cron jobs. Prevents context overflow by keeping only compressed summaries in active context. Includes Python scripts for rollups, integrity verification, and timeless fact extraction into categorized sticky notes.

Cron-driven rollups replace manual memory curation, so token limits stay within bounds across long-running projects without human intervention.

何时使用

  • Preventing context overflow in multi-session agent workflows
  • Automated nightly compression of daily conversation logs
  • Migrating flat daily memory files to a structured hierarchy
  • Recovering project context after session restarts without manual review
  • Extracting recurring facts into categorized sticky notes

示例工作流

输入

User asks: Set up fractal memory for my agent workspace

智能体
  1. 1

    Creates directory structure under memory/diary/ with daily, weekly, monthly, and sticky-notes subfolders

  2. 2

    Copies rollup-state.json and heartbeat-state.json from assets/ to initialize state tracking

  3. 3

    Installs rollup and utility Python scripts to the workspace scripts/ directory with execute permissions

  4. 4

    Configures cron jobs for daily rollup at 23:59, weekly rollup on Sundays, and monthly rollup on the last day of each month

  5. 5

    Adds memory loading instructions to AGENTS.md specifying recency-optimized context order

输出

Automated compression pipeline is active; agent loads today, this week, this month, then core memory each session in attention-optimized order

安装

clawhub install bugmaker2/fractal-memory

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

链接