← 返回
未分类 中文

Memory Tree Pipeline

Three-scope structured memory for AI agents. Automatically organize, summarize, and index agent memory with sealing workers and topic extraction.
三层作用域结构化记忆,AI 代理专用。自动组织、汇总并索引记忆,采用密封工作线程与主题抽取。
larios613-hub
未分类 clawhub v1.0.0 1 版本 99545.5 Key: 无需
★ 0
Stars
📥 219
下载
💾 0
安装
1
版本
#latest

概述

Memory Tree — Three-Scope Structured Memory

A structured memory system with three scopes (source, topic, global) that automatically organizes, summarizes, and indexes agent memory. Never lose context again.

Architecture

Source (raw) → Topic (summarized) → Global (cross-topic knowledge)
   134 files         13 files              6 files

Quick Start

from memory_tools import MemoryTools

tools = MemoryTools(workspace="/path/to/workspace")

# Store a memory
tools.store("User prefers dark mode for all UI", topic_hint="preferences")

# Recall memories
results = tools.recall("dark mode", scope="global")

# Seal source → topic summaries
tools.seal()

# Check status
status = tools.status()
# → {"source_files": 134, "topic_files": 13, "global_files": 6}

Features

  • Three-scope hierarchy: Source → Topic → Global
  • Automatic sealing: Raw memories compressed into topic summaries
  • Topic extraction: Automatic categorization by content
  • Index management: Full-text search across all scopes
  • Budget enforcement: Topic files < 2000 tokens, Global < 5000 tokens
  • Idempotent sealing: Safe to run multiple times

Testing

python -m pytest test_memory_tree.py -v
# 15 tests passing

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-23 23:44 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Photo Editor Pro

larios613-hub
Photo Editor Pro 提供AI增强编辑、背景移除、色彩调校、批量处理和格式转换,专为专业图像工作流程设计。
★ 0 📥 416

Security Audit Pro

larios613-hub
针对 OpenClaw 部署的完整 OWASP、Nmap、Nikto 漏洞评估。扫描基础设施、强化配置并生成合规报告。
★ 0 📥 254

Youtube Learning

larios613-hub
概述YouTube视频,提炼关键点,制作笔记、测验和学习路径,实现高效知识获取。
★ 0 📥 427