edgehdf5-memory
HDF5-backed persistent cognitive memory for AI agents. Use when: (1) saving conversation exchanges to long-term memory, (2) searching/recalling past conversations by semantic similarity, (3) managing agent memory files — stats, export, snapshot, WAL flush, (4) generating AGENTS.md summaries from memory. Requires the `edgehdf5` CLI binary (install via `cargo install edgehdf5-cli`).
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- edgehdf5-memory
- description
- HDF5-backed persistent cognitive memory for AI agents. Use when: (1) saving conversation exchanges to long-term memory, (2) searching/recalling past conversations by semantic similarity, (3) managing agent memory files — stats, export, snapshot, WAL flush, (4) generating AGENTS.md summaries from memory. Requires the `edgehdf5` CLI binary (install via `cargo install edgehdf5-cli`).
03 SKILL.md 正文
EdgeHDF5 Memory
Persistent HDF5-backed memory with vector search, BM25 hybrid retrieval, Hebbian learning, and temporal decay.
Setup
# Install the CLI (one-time)
cargo install edgehdf5-cli
# Or from source:
cargo install --path crates/edgehdf5-cli
Set EDGEHDF5_PATH env var or pass --path <file.h5> to every command.
Commands
All output is JSON for easy parsing.
Create a memory file
edgehdf5 --path agent.h5 create --agent-id myagent --dim 384 --wal
Save an entry
Pass JSON via --json or stdin:
edgehdf5 --path agent.h5 save --json '{"chunk":"User asked about weather","embedding":[0.1,0.2,...],"source_channel":"discord","timestamp":1700000000.0,"session_id":"s1","tags":"weather"}'
Embedding must match the dimension specified at creation.
Search memory
edgehdf5 --path agent.h5 search --embedding '[0.1,0.2,...]' --query 'weather forecast' -k 5
Optional: --vector-weight 0.7 --keyword-weight 0.3 (defaults).
Recall a specific entry
edgehdf5 --path agent.h5 recall 42
Stats
edgehdf5 --path agent.h5 stats
Returns: count, active entries, WAL pending, config details.
Flush WAL
edgehdf5 --path agent.h5 flush-wal
Generate AGENTS.md
edgehdf5 --path agent.h5 agents-md
# Or write to file:
edgehdf5 --path agent.h5 agents-md --output AGENTS.md
Export all entries
edgehdf5 --path agent.h5 export
Outputs one JSON object per line (JSONL).
Snapshot
edgehdf5 --path agent.h5 snapshot backup.h5
Workflow: Saving Conversations
- After each exchange, construct a
MemoryEntryJSON with the conversation chunk and its embedding vector - Pipe to
edgehdf5 save - The WAL (if enabled) ensures low-latency writes — flush periodically with
flush-wal
Workflow: Recalling Context
- Embed the current query using your embedding model
- Run
edgehdf5 search --embedding '[...]' --query 'user text' -k 10 - Use returned chunks as context for the response
Notes
- Embeddings must be generated externally (e.g., via an embedding API or local model)
- The
.h5file is a standard HDF5 file readable by any HDF5 library - WAL files are stored alongside the
.h5file as<name>.h5.wal
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.