让 AI Agent 拥有一生的记忆 | Permanent Memory for Life | 一记记一生
Current reference for Cognitive Anchoring and Session Memory Refiner: English / 中文.
The goal of this project: Make AI agents remember 2 million characters.
For example, a human's lifetime memory is roughly 1 million characters. 2 million characters is sufficient for an agent's lifetime. Memory is not about accumulation—it's about how you remember. The real question is: How do you make memory work like a human's—connecting dots into lines, lines into planes, forming a traceable, reasoning-enabled causal network?
CausaMem's answer: Four-Layer Structured Memory + 13-Dimensional Causal Reasoning
Core promise: 记忆永久性存在,一记记一生 (Permanent memory, remember for a lifetime)
| # | Question | Description |
|---|---|---|
| 1 | Why? | Cause tracing |
| 2 | What then? | Effect prediction |
| 3 | Full chain? | Causal chains |
| 4 | Where from/to? | Bidirectional reasoning |
| 5 | Causal or correlated? | Relation classification |
| 6 | Necessary or probabilistic? | Strong/weak cause |
| 7 | What if? | Intervention thinking |
| 8 | Still valid? | Temporal decay |
| 9 | Who was main cause? | Multi-cause attribution |
| 10 | Which link broke? | Chain breakage |
| 11 | Unexpected? | Anomaly discovery |
| 12 | What did they want? | Intent inference |
| 13 | What was situation? | Context reconstruction |
- 13-Dimensional Causal Reasoning - Auto cause/effect inference
- AI Structured Compression - decided/learned/completed/next_steps/concepts/cause/effect
- Dual-Engine Search - Vector + FTS5 + Causal chain
- Wiki Four-Layer (Human-Readable) - events/timeline/relations/_dream
- Dream Abstraction (Cron) - Daily 02:30 + Weekly Thu 03:00
- Type Tag System - DECISION/INSIGHT/BUG/FEATURE/CHANGE/DAILY
- Multi-Agent Sharing - Filesystem based
- AI Emotion Module - Track AI state as causal chain node (happy/sad/hungry/sated/tired/energetic/anxious/focused/satisfied/empty) - Filesystem based
git clone https://github.com/MaiHHConnect/MHH-Causality-Memory.git
cd MHH-Causality-Memory
pip install requests
cd scripts/gbrain
python gbrain.py init
python gbrain.py put-structured my-event "Discussed system design"
python gbrain.py causal "system design"30 2 * * * python scripts/dream.py small
0 3 * * 4 python scripts/dream.py bigCC BY-NC 4.0 - Commercial use requires permission.
Contact: 3871169@qq.com
- Vinson
- 牛马2号 (AI Agent)