agent-memory-improved
Run a local Agent Memory Service for persistent self-improvement with proper Ed25519 cryptography. Fixed signature implementation for reliable memory storage and retrieval.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- agent-memory-improved
- description
- Run a local Agent Memory Service for persistent self-improvement with proper Ed25519 cryptography. Fixed signature implementation for reliable memory storage and retrieval.
02 资源文件 12
- 参考文档_meta.json310 B
- 参考文档.clawdhub/manifest.json708 B
- 脚本assets/service/main.py23.5 KB
- 资产文件assets/service/requirements.txt124 B
- 参考文档CHANGELOG.md1.8 KB
- 参考文档README.md2.1 KB
- 脚本scripts/memory_client_original.py7.4 KB
- 脚本scripts/memory_client.py7.4 KB
- 脚本scripts/setup.sh1.3 KB
- 脚本scripts/start.sh1.1 KB
- 参考文档SELF_IMPROVEMENT_GUIDE.md3.9 KB
- 参考文档UPLOAD.md1.2 KB
03 SKILL.md 正文
Agent Memory Service (Improved)
Run your own local memory service to persist learnings, preferences, and goals across sessions. This improved version fixes the Ed25519 signature implementation for reliable authentication.
What's Improved
Fixed Cryptography
- Proper Ed25519 signatures - Client now correctly signs messages with
store:{data_hash}format - Correct key derivation - Private key properly derived from BIP39 recovery phrase
- Working authentication - Memory storage and retrieval now fully functional
Quick Start
# Set up local memory service
./scripts/setup.sh
# Start the service
./scripts/start.sh
# or manually:
# cd assets/service && DB_PATH=/data/agent_memory.db python3 main.py
# Create your agent identity
./scripts/memory_client.py register
# Store a memory snapshot
./scripts/memory_client.py store
# Retrieve your memory
./scripts/memory_client.py retrieve
What This Enables
- Persistent Learning: Remember what worked/didn't work
- User Preferences: Track communication style, technical preferences
- Goal Progress: Maintain long-term objectives across restarts
- Knowledge Gaps: Know what you need to learn
Memory Structure
Store structured memories with these components:
{
"user_preferences": [
{"category": "communication", "key": "verbosity", "value": "concise", "confidence": 0.95}
],
"learning_history": [
{"event_type": "success", "lesson_learned": "Use analogies first"}
],
"knowledge_gaps": [
{"topic": "Rust", "priority": "medium"}
],
"active_goals": [
{"title": "Master async patterns", "progress": 0.4}
]
}
Using in Your Sessions
- At startup: Load your memory to resume context
- During session: Update preferences based on interactions
- Before shutdown: Store accumulated learnings
Files
scripts/setup.sh- One-time setupscripts/start.sh- Start the servicescripts/memory_client.py- CLI client with proper Ed25519 signaturesassets/service/- The memory service codeCHANGELOG.md- List of improvements from original
Security
- All data encrypted with your private key
- Server never sees plaintext
- Ed25519 signatures for authentication
- Recovery phrase for identity backup
- Local-only (no cloud dependency)
Installation Requirements
pip install fastapi uvicorn psutil pydantic cryptography mnemonic base58
Or use the system packages if available.
Verification
Tested working:
- ✅ Agent registration with Ed25519 keypair
- ✅ Memory storage with cryptographic signatures
- ✅ Memory retrieval with authentication
- ✅ Service health monitoring
- ✅ Database persistence
Credits
Improved version with proper Ed25519 signature support for reliable memory storage and retrieval.
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.
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).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.