Skip to content
Conduit

skill

agent-memory

Agent Memory — universal memory / learning / evolution infrastructure for AI agents (cross-session memory, auto-sedimentation, hybrid retrieval BM25+vector+Rerank)

fafofafo/agent-memorycommunitylistedunreviewed

Set up

Skills are installed by placing their folder where your agent loads skills.

The download comes from github.com/fafofafo/agent-memory itself, not from our server, so what you get is exactly what its author published.

Install instructions come from the README

Skills do not use an MCP config. Follow the steps in the README below.

README

synced Oct 26, 2026

Agent Memory

Universal memory / learning / evolution infrastructure for AI agents. Cross-session memory · conversation auto-sedimentation · hybrid semantic retrieval · memory graph

License: MIT Python CI Tests Stress

Agent Memory gives any AI agent a human-like memory: remember (storage), learn (auto-sedimentation), recall (hybrid retrieval), and evolve (adaptive importance, pruning, graph). Deploy once — every agent benefits forever.

Formerly Hermes Lite, rebuilt from scratch after reviewing the Hermes v2.1 guide (40-50% stub code, fabricated metrics, plaintext password storage). This is an independent, fully runnable implementation.


✨ Features

LayerCapability
SedimentConversation auto-sedimentation via digest — LLM summarization (DeepSeek) with rule-based fallback; conflict detection
Writeremember pipeline: secret redaction → dedup-merge → conflict warning → unverified-by-default → graph update
Storage5 topic rooms + Obsidian-compatible Markdown + atomic writes + daily auto-backup + optional AES encryption
RetrieveFour-layer hybrid retrieval: BM25 → semantic vectors → RRF fusion → Rerank re-ranking
LifecycleAccess tracking · adaptive importance (+1 per 10 accesses) · pruning/archive · critical memories kept forever
AssociateMemory graph — entity ↔ memory, auto-maintained
SecuritySecrets auto-redacted (never stored in plaintext, incl. standalone tokens) · 0600 key permissions · optional Fernet AES

No fabricated metrics. Every statistic is a real count.

🧰 Zero heavy dependencies

Core capabilities (BM25 retrieval, storage, pruning, redaction, conflict detection) are pure Python standard library. External services (vector embeddings, LLM summarization, Rerank) are pluggable backends with automatic circuit-breaker degradation:

BackendServiceNetworkKey
VectorSiliconFlow BAAI/bge-m3 (1024d)mainland-China directSILICONFLOW_API_KEY
VectorJina jina-embeddings-v3 (1024d)internationalJINA_API_KEY
VectorLocal hash (fallback)offline—
RerankSiliconFlow BAAI/bge-reranker-v2-m3mainland-China directsame SILICONFLOW_API_KEY
LLM digestDeepSeek deepseek-chatmainland-China directDEEPSEEK_API_KEY

Any service failure degrades gracefully — the system never crashes.

🚀 Quick Start

git clone <your-repo-url> && cd agent-memory

# Option 1: run the reference implementation directly
python3 hermes_lite.py --help
export HERMES_LITE_ROOT=./data && mkdir -p $HERMES_LITE_ROOT
cp config.yaml $HERMES_LITE_ROOT/

# write a memory (unverified by default — No Execution, No Memory)
python3 hermes_lite.py remember "Decided to use PostgreSQL as the production database, port 5432" \
    --category decision --importance 8 --verified

# four-layer hybrid retrieval
python3 hermes_lite.py recall "database choice"

# auto-sediment from a conversation (LLM summarization)
python3 auto_sediment.py --apply

# memory graph
python3 hermes_lite.py graph PostgreSQL

# run the test suite
python3 test_hermes_lite.py    # 79 assertions
python3 test_stress.py         # 150-memory stress test

Option 2: use as a Skill (agent self-implements)

The skills/ directory contains complete, self-contained implementation specs:

SkillLanguagePlatform
skills/agent-memory/中文DeepSeek Harness (~/.dsh/skills/)
skills/agent-memory-en/EnglishClaude (~/.claude/skills/) · DSH

A fresh agent loads the spec and reproduces the entire system — no further explanation needed.

🔑 Keys & Configuration

Keys go into data/.env (chmod 600) or environment variables. Full checklist: see docs/AgentMemory-Dependencies.md / docs/AgentMemory-依赖清单.md.

# data/.env (example)
DEEPSEEK_API_KEY=sk-xxxx        # LLM digest (optional; rule-based fallback otherwise)
SILICONFLOW_API_KEY=sk-xxxx     # vector + rerank (optional; local-hash fallback)
JINA_API_KEY=jina_xxxx          # vector, international (optional)

📊 Performance & Token Savings

MetricMeasured
Tests79 assertions, all passing
Stress150 memories: write 6ms/item, retrieve 52ms/query, 10/10 hit rate
Token savings85.6% (measured) ~ 98% (projected) on input tokens
Sedimentation cost~490 tokens per LLM digest run

📚 Documentation

💎 Pro Version — $10

Get the full evaluation pack: 200 synthetic memories, evaluation harness, decay tuning guide, and 1-year updates:

https://gumroad.com/l/agentmemory

FeatureFree (GitHub)Pro ($10)
SKILL.md (EN)✅ Yes✅ Yes
hermes_lite.py core✅ Yes✅ Yes
Evaluation harness❌ No✅ Yes
200 synthetic memories❌ No✅ Yes
Decay tuning guide❌ No✅ Yes
1-year updates❌ No✅ Yes

📄 License

MIT © 2026 Agent Memory Contributors. Free to use, modify, distribute, and sell.

🤝 Contributing

Issues and PRs welcome — see CONTRIBUTING.md. Security issues: see SECURITY.md.


Agent Memory · Give every agent the power to remember, learn, and evolve

↑↓ navigate openesc close