r/PythonProjects2 • u/Kric214 • Mar 05 '26
AetherMem v1.0: Python library for AI Agent memory continuity (AGPL-3.0)
Hey r/Python community! I just released AetherMem v1.0, a Python library for memory continuity in AI Agents.
What it does
AetherMem solves the "memory amnesia" problem where AI Agents forget everything between sessions. It provides persistent memory with weighted indexing based on temporal decay and emotional resonance.
Key Features
Pure Python - No external dependencies beyond standard library
Virtual Write Layer - Works in read-only environments
Resonance Engine - Time-based decay (λ=0.1/day) with emotional keyword detection
Atomic Operations - Thread-safe with configurable consistency
OpenClaw Integration - Seamless integration with OpenClaw runtime
Performance
Local retrieval: <15ms
Throughput: 1000+ ops/sec (single core)
Memory: <50MB base config
Python: 3.8+ (Windows, macOS, Linux)
Installation
pip install git+https://github.com/kric030214-web/AetherMem.gitCode Example
import aethermem
from aethermem import ContinuityProtocol, create_protocol
# Two ways to create protocol
protocol = ContinuityProtocol()
protocol2 = create_protocol()
# Basic operations
context = protocol.restore_context("my_agent")
print(f"Restored context: {context}")
# Persist conversation with importance scoring
result = protocol.persist_state(
state_vector={
"user": "What's the weather?",
"assistant": "Sunny and 72°F!"
},
importance=1,
metadata={"topic": "weather"}
)
# Get protocol statistics
stats = protocol.get_protocol_stats()
print(f"Version: {stats['version']}")
print(f"Components: {stats['components']}")Project Structure
AetherMem/
├── src/aethermem/ # Main package
│ ├── core/ # VWL implementation
│ ├── resonance/ # Temporal decay engine
│ ├── integration/ # Platform adapters
│ └── utils/ # Platform detection
├── tests/ # Comprehensive test suite
├── docs/ # Architecture diagrams
├── examples/ # Usage examples
└── scripts/ # Development toolsWhy I built this
As AI Agents become more sophisticated, they need persistent memory. Existing solutions were either too heavy (full databases) or too simple (plain files). AetherMem strikes a balance with a protocol-focused approach.
License: AGPL-3.0 (open source)
Repo: https://github.com/kric030214-web/AetherMem
Would love feedback from the Python community!