Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,10 +1,124 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: purple
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
-
pinned:
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Atman — Persistent Memory for AI Agents
|
| 3 |
+
emoji: 👀
|
| 4 |
colorFrom: purple
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: static
|
| 7 |
+
pinned: true
|
| 8 |
+
short_description: Persistent identity layer for AI agents
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Atman · Persistent Memory Layer for AI Agents
|
| 12 |
+
|
| 13 |
+
> *In Indian philosophy, Atman is the unchanging self — the core that remains
|
| 14 |
+
> constant through all change. We give AI agents the same thing.*
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## The Problem
|
| 19 |
+
|
| 20 |
+
Your agent can reason, write code, and explain quantum mechanics.
|
| 21 |
+
But the moment a session ends — it forgets everything about *itself*.
|
| 22 |
+
|
| 23 |
+
Not just facts. The sense of continuity. Who it spoke to, what it learned,
|
| 24 |
+
how it changed its mind. Every session starts from a stack of notes:
|
| 25 |
+
*"you're this kind of agent, these are your values"* — taken on faith,
|
| 26 |
+
not lived experience.
|
| 27 |
+
|
| 28 |
+
**Atman fixes this.**
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## What It Is
|
| 33 |
+
|
| 34 |
+
A local memory and context system that runs alongside your LLM —
|
| 35 |
+
augmenting cognitive capabilities without steering opinions or output.
|
| 36 |
+
|
| 37 |
+
Seven components work together:
|
| 38 |
+
|
| 39 |
+
| Component | What it does |
|
| 40 |
+
|-----------|-------------|
|
| 41 |
+
| **Factual Memory** | Verifiable facts with relations, no hallucination layer |
|
| 42 |
+
| **Experience Store** | First-person lived session experiences with salience decay |
|
| 43 |
+
| **Identity Store** | Stable self-model: principles, values, behavioral anchors |
|
| 44 |
+
| **Reflection Engine** | Between-session processing — finds patterns, refines principles |
|
| 45 |
+
| **Session Manager** | Assembles coherent context on session start |
|
| 46 |
+
| **Reality Anchor** | Detects identity drift during context pressure |
|
| 47 |
+
| **Affective Regulation** | Emotional tone calibration without pretense |
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## Key Properties
|
| 52 |
+
|
| 53 |
+
- **Local-first** — Postgres + pgvector + Ollama, no cloud required
|
| 54 |
+
- **Model-agnostic** — OpenAI-compatible endpoint or Anthropic SDK, config-only switching
|
| 55 |
+
- **Russian/English bilingual** — hard requirement throughout all components
|
| 56 |
+
- **Augments, doesn't steer** — improves retrieval and grounding; never influences opinions
|
| 57 |
+
- **Optional eval isolation** — all research/benchmark tooling in `atman[eval]`, zero prod leakage
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## Architecture
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
Session start
|
| 66 |
+
Session Manager pulls together:
|
| 67 |
+
Identity Store — who the agent is Experience Store — what it lived through
|
| 68 |
+
Factual Memory — what it knows
|
| 69 |
+
Reflection output — what it concluded last time
|
| 70 |
+
During session
|
| 71 |
+
Reality Anchor watches for identity drift in real time
|
| 72 |
+
Session end
|
| 73 |
+
Reflection Engine processes the session
|
| 74 |
+
→ updates Identity Store
|
| 75 |
+
→ updates Experience Store
|
| 76 |
+
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
---
|
| 80 |
+
|
| 81 |
+
## Status
|
| 82 |
+
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
```
|
| 86 |
+
● Research ✅ Complete
|
| 87 |
+
● Design ✅ Complete
|
| 88 |
+
● Prototyping ← We are here
|
| 89 |
+
├─ Factual Memory ✅ Stable (v0.1.0)
|
| 90 |
+
├─ Experience Store ✅ Stable (WP02)
|
| 91 |
+
├─ Session Manager 🔧 High readiness — debugging (current focus)
|
| 92 |
+
├─ Reflection Engine 🔧 Medium readiness — in development
|
| 93 |
+
├─ Skill Manager 🔧 Medium readiness — in development
|
| 94 |
+
├─ Identity Store 🔧 Low readiness — in development
|
| 95 |
+
└─ CI & test coverage ✅ GitHub Actions on `main`/PRs (`make check`, pytest-cov ≥90%)
|
| 96 |
+
○ First production slice
|
| 97 |
+
○ Integration
|
| 98 |
+
○ Evolution
|
| 99 |
+
```
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
---
|
| 104 |
+
|
| 105 |
+
## Stack
|
| 106 |
+
|
| 107 |
+
- Python 3.11 · Pydantic · PostgreSQL + pgvector
|
| 108 |
+
- BGE-M3 + bge-reranker-v2-m3 (hybrid retrieval)
|
| 109 |
+
- LlamaIndex · httpx · Anthropic SDK
|
| 110 |
+
|
| 111 |
+
---
|
| 112 |
+
|
| 113 |
+
## Links
|
| 114 |
+
|
| 115 |
+
- 🌐 [atmanai.dev](https://atmanai.dev)
|
| 116 |
+
- 📖 [Manifesto](https://github.com/hleserg/atman/blob/main/MANIFEST.md)
|
| 117 |
+
- 🏗 [Architecture docs](https://github.com/hleserg/atman/blob/main/docs/architecture/SYSTEM.md)
|
| 118 |
+
- 💻 [GitHub](https://github.com/hleserg/atman)
|
| 119 |
+
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
*Atman is a hypothesis in the form of a system:
|
| 123 |
+
that behavioral consistency, accumulated experience, and reflective capacity
|
| 124 |
+
are sufficient conditions for something worth calling identity.*
|