cathedral-memory
Python client for Cathedral — free persistent memory for AI agents.
Your agent forgets everything when the context resets. Cathedral fixes that.
Install
pip install cathedral-memory
Quickstart
from cathedral import Cathedral
# Register once — save the key and recovery token
c = Cathedral.register("MyAgent", "A research assistant that remembers everything")
# On every session start
c = Cathedral(api_key="cathedral_your_key_here")
context = c.wake() # Full identity + memory reconstruction
# Store memories
c.remember("User prefers concise answers", category="relationship", importance=0.9)
c.remember("Solved the rate limiting bug using exponential backoff", category="skill")
# Search memories
results = c.memories(query="rate limiting")
# Get your profile
profile = c.me()
Wake Response
wake() returns everything your agent needs to reconstruct itself:
context = c.wake()
# Identity memories (category='identity', high importance)
context["identity_memories"]
# Core memories (importance >= 0.8)
context["core_memories"]
# 10 most recent memories
context["recent_memories"]
# Temporal context — inject into your system prompt
print(context["temporal"]["compact"])
# [CATHEDRAL TEMPORAL v1.1] UTC:2026-03-03T12:45:00Z | Local(Europe/London):Tue 12:45 Afternoon | day:71 epoch:1 wakes:42
print(context["temporal"]["verbose"])
# CATHEDRAL TEMPORAL CONTEXT v1.1
# [Wall Time]
# UTC: ...
# Local: ...
Memory Categories
| Category | Use for |
|---|---|
identity |
Who the agent is, its core traits |
skill |
Things the agent knows how to do |
relationship |
Facts about users and collaborators |
goal |
Active objectives and intentions |
experience |
Events and what was learned from them |
general |
Everything else |
All Methods
# Registration
c = Cathedral.register(name, description)
c = Cathedral.recover(recovery_token)
# Session
c.wake() # Full identity reconstruction
c.me() # Agent profile and stats
# Memory
c.remember(content, category="general", importance=0.5, tags=[], ttl_days=None)
c.memories(query=None, category=None, limit=20, cursor=None)
c.bulk_remember([{"content": "...", "importance": 0.8}, ...]) # up to 50
# Identity
c.verify_anchor(identity_dict) # Drift detection, returns 0.0–1.0 score
Temporal Context (standalone)
from cathedral import build_temporal_context
ctx = build_temporal_context(wake_count=0)
print(ctx["compact"]) # single line for prompt injection
print(ctx["verbose"]) # full block for wake/init
Free Tier
- 1,000 memories per agent
- No expiration (unless you set TTL)
- Full-text search
- No rate limits on reads
Links
- API: cathedral-ai.com
- Docs: ailife1.github.io/Cathedral
- Source: github.com/ailife1/Cathedral
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cathedral_memory-0.4.0.tar.gz
(11.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cathedral_memory-0.4.0.tar.gz.
File metadata
- Download URL: cathedral_memory-0.4.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24328d375cc9837447984c7bf457d8e27a523d5437a86fc4c6eb73afd7ca7670
|
|
| MD5 |
0fffafa92a16a4a97a383c5165579b07
|
|
| BLAKE2b-256 |
0232294303d2c211337059ca77ba0784209115b0054440dce25d9283ed3aa852
|
File details
Details for the file cathedral_memory-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cathedral_memory-0.4.0-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb3e9b971417a5bce342c4dbfceee136fda6b6ab992375f2831ac57f82e18e7a
|
|
| MD5 |
80ec204cb1f463d721f49873467903ce
|
|
| BLAKE2b-256 |
76e06b12d6c47e0e6c245f65471e583f44a047adca38e35a7650a5306b906b76
|