--- title: Atman โ€” Persistent Memory for AI Agents emoji: ๐Ÿ‘€ colorFrom: purple colorTo: indigo sdk: static pinned: true short_description: Persistent identity layer for AI agents --- # Atman ยท Persistent Memory Layer for AI Agents > *In Indian philosophy, Atman is the unchanging self โ€” the core that remains > constant through all change. We give AI agents the same thing.* --- ## The Problem Your agent can reason, write code, and explain quantum mechanics. But the moment a session ends โ€” it forgets everything about *itself*. Not just facts. The sense of continuity. Who it spoke to, what it learned, how it changed its mind. Every session starts from a stack of notes: *"you're this kind of agent, these are your values"* โ€” taken on faith, not lived experience. **Atman fixes this.** --- ## What It Is A local memory and context system that runs alongside your LLM โ€” augmenting cognitive capabilities without steering opinions or output. Seven components work together: | Component | What it does | |-----------|-------------| | **Factual Memory** | Verifiable facts with relations, no hallucination layer | | **Experience Store** | First-person lived session experiences with salience decay | | **Identity Store** | Stable self-model: principles, values, behavioral anchors | | **Reflection Engine** | Between-session processing โ€” finds patterns, refines principles | | **Session Manager** | Assembles coherent context on session start | | **Reality Anchor** | Detects identity drift during context pressure | | **Affective Regulation** | Emotional tone calibration without pretense | --- ## Key Properties - **Local-first** โ€” Postgres + pgvector + Ollama, no cloud required - **Model-agnostic** โ€” OpenAI-compatible endpoint or Anthropic SDK, config-only switching - **Russian/English bilingual** โ€” hard requirement throughout all components - **Augments, doesn't steer** โ€” improves retrieval and grounding; never influences opinions - **Optional eval isolation** โ€” all research/benchmark tooling in `atman[eval]`, zero prod leakage --- ## Architecture ``` Session start Session Manager pulls together: Identity Store โ€” who the agent is Experience Store โ€” what it lived through Factual Memory โ€” what it knows Reflection output โ€” what it concluded last time During session Reality Anchor watches for identity drift in real time Session end Reflection Engine processes the session โ†’ updates Identity Store โ†’ updates Experience Store ``` --- ## Status ``` ``` โ— Research โœ… Complete โ— Design โœ… Complete โ— Prototyping โ† We are here โ”œโ”€ Factual Memory โœ… Stable (v0.1.0) โ”œโ”€ Experience Store โœ… Stable (WP02) โ”œโ”€ Session Manager ๐Ÿ”ง High readiness โ€” debugging (current focus) โ”œโ”€ Reflection Engine ๐Ÿ”ง Medium readiness โ€” in development โ”œโ”€ Skill Manager ๐Ÿ”ง Medium readiness โ€” in development โ”œโ”€ Identity Store ๐Ÿ”ง Low readiness โ€” in development โ””โ”€ CI & test coverage โœ… GitHub Actions on `main`/PRs (`make check`, pytest-cov โ‰ฅ90%) โ—‹ First production slice โ—‹ Integration โ—‹ Evolution ``` ``` --- ## Stack - Python 3.11 ยท Pydantic ยท PostgreSQL + pgvector - BGE-M3 + bge-reranker-v2-m3 (hybrid retrieval) - LlamaIndex ยท httpx ยท Anthropic SDK --- ## Links - ๐ŸŒ [atmanai.dev](https://atmanai.dev) - ๐Ÿ“– [Manifesto](https://github.com/hleserg/atman/blob/main/MANIFEST.md) - ๐Ÿ— [Architecture docs](https://github.com/hleserg/atman/blob/main/docs/architecture/SYSTEM.md) - ๐Ÿ’ป [GitHub](https://github.com/hleserg/atman) --- *Atman is a hypothesis in the form of a system: that behavioral consistency, accumulated experience, and reflective capacity are sufficient conditions for something worth calling identity.*