← 返回
AI智能 Key 中文

pensieve-algorand

Long-term episodic memory for OpenClaw with append-only hash-chained local layers, daily dream-cycle consolidation, AES-GCM encrypted Algorand anchoring, and...
Long-term episodic memory for OpenClaw with append-only hash-chained local layers, daily dream-cycle consolidation, AES-GCM encrypted Algorand anchoring, and...
pitertxus
AI智能 clawhub v3.0.0 3 版本 99890.1 Key: 需要
★ 2
Stars
📥 869
下载
💾 12
安装
3
版本
#latest

概述

OpenClaw Memory Pensieve v3.0.0

MCP server

All functionality is in one file: server.py.

Register it in Claude Code settings:

{
  "mcpServers": {
    "pensieve": {
      "command": "python3",
      "args": ["/path/to/server.py"],
      "env": {
        "OPENCLAW_WORKSPACE": "/path/to/workspace",
        "ALGORAND_WALLET_ADDRESS": "<address>",
        "ALGORAND_WALLET_MNEMONIC": "<25-word mnemonic>",
        "ALGORAND_NOTE_KEY_HEX": "<64 hex chars = 32 bytes>",
        "ALGORAND_ALGOD_URL": "https://mainnet-api.algonode.cloud",
        "ALGORAND_INDEXER_URL": "https://mainnet-idx.algonode.cloud"
      }
    }
  }
}

Install dependencies (one-time):

pip install mcp algosdk cryptography

Tools

ToolPurpose
---------------
pensieve_captureAppend an event to the hash-chained ledger (deduplicates by content)
pensieve_dream_cyclePromote 24 h recurring patterns into semantic / procedural / self_model
pensieve_anchorEncrypt + anchor today's memory to Algorand (idempotent, auto-chunks)
pensieve_validateRun v2.1 hardening: chain integrity, decrypt, parity, chunk hashes
pensieve_recoverReconstruct memory from blockchain for a given date
pensieve_statusLayer counts, chain tip, last anchor date, today's cost estimate

Daily workflow

  1. Capture events throughout the day with pensieve_capture.
  2. At end-of-day, run pensieve_dream_cycle to consolidate patterns.
  3. Run pensieve_anchor to encrypt and commit to Algorand.
  4. Run pensieve_validate — only trust recovery claims when ok=true.

Mandatory operational rules

  • All *.jsonl files are append-only. Never rewrite or delete lines.
  • Secrets stay in env vars (or .secrets/). Never print them in chat.
  • Anchor encrypted payloads only — never plaintext memory.
  • Treat pensieve_validate failures as blocking for disaster-recovery claims.

Security

Sensitive values are read from environment variables at runtime:

  • ALGORAND_WALLET_MNEMONIC — never logged, never written to disk by the server.
  • ALGORAND_NOTE_KEY_HEX — 64 hex chars (32-byte AES key).

Fallback to .secrets/algorand-wallet-nox.json and .secrets/algorand-note-key.bin

is supported for local development only. Prefer env vars in all deployments.

Use a dedicated low-balance anchoring wallet. Fund it with enough ALGO for

your expected daily TX volume (see cost model in server.py module docstring).

Never reuse the main OpenClaw operations wallet for anchoring.

Recovery

# Recover and inspect
pensieve_recover(date="2026-03-14")

# Recover and write files to memory/recovered/
pensieve_recover(date="2026-03-14", restore=True)

Architecture reference

See references/architecture.md for memory layer model and integrity guarantees.

See references/hardening-v21.md for the v2.1 pass/fail contract.

版本历史

共 3 个版本

  • v2.1.1
    2026-03-29 18:52
  • v3.0.0 当前
    2026-03-27 21:26 安全 安全
  • v2.0.0
    2026-03-07 01:59

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,060 📥 798,785
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 838 📥 213,366
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 714 📥 244,054