AI memory engine with identity preservation โ remember everything, forget nothing
Project description
๐ evaOS (Electric Sheep)
AI memory that remembers who you are.
Identity-preserving memory engine for AI agents.
Your agent wakes up tomorrow and still knows who it is.
Why evaOS?
Most AI memory systems are glorified vector stores. They dump embeddings into a database and call it "memory." The result: progressive identity drift (your agent slowly forgets who it is), junk accumulation (10,000 useless coding-session memories), and no lifecycle (no consolidation, no forgetting, no sleep).
evaOS is a cognitive memory engine grounded in memory research. It extracts claims, resolves entities, protects core identity, and runs dream cycles to consolidate and prune โ just like biological memory.
Install
pip install evaos
With vector search (recommended):
pip install "evaos[vec]"
All extras (LLM providers, HTTP API, MCP server):
pip install "evaos[all]"
30-Second Quickstart
# Initialize a new memory store
evaos init
# Teach it something
evaos remember "Andrew is the founder of 100Yen Org. He lives in Bangkok."
# Ask it later
evaos recall "Where does Andrew live?"
# โ Andrew lives in Bangkok. He is the founder of 100Yen Org.
That's it. Memories persist in a local SQLite database, searchable via hybrid BM25 + vector retrieval.
Features
๐ง 5-Layer Memory Model
| Layer | What It Does |
|---|---|
| Extraction | LLM-powered claim extraction with noise filtering (skips "changed line 47 of auth.py") |
| Entity Resolution | Fuzzy deduplication โ "Andrew", "andrew", "@andrew" โ same person |
| Reconciliation | Smart conflict resolution: ADD / UPDATE / SUPERSEDE / NOOP |
| Cornerstones | Immutable identity anchors that resist drift and accidental deletion |
| Token Budget | Assembles memory context within configurable token ceilings |
๐ Dream Cycles
Circadian engine with sleep/wake/dream phases. During idle time, evaOS consolidates memories, runs Ebbinghaus decay on low-signal noise, and calculates identity drift against cornerstone baselines.
๐ธ๏ธ Brain Graph
File-watcher + auto-registration document memory graph. Index your docs, specs, and decisions โ query them alongside conversational memory.
๐ Hybrid Retrieval
BM25 full-text search + vector similarity with Reciprocal Rank Fusion. Optional agentic re-ranking for high-stakes queries.
๐ Three Interfaces
| Interface | Use Case |
|---|---|
| CLI | evaos remember, evaos recall, evaos dream |
| HTTP API | FastAPI REST server โ evaos serve |
| MCP Server | Model Context Protocol for agent frameworks โ evaos mcp |
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ evaOS Engine โ
โโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโค
โ CLI โ HTTP API โ MCP โ Plugin API โ
โโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโดโโโโโโโโโโโโโโโโโค
โ Retrieval Pipeline โ
โ (BM25 + Vector + RRF + Rerank) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Extraction โ Entity Res. โ Reconciliation โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Cornerstones โ Drift Calc โ Feedback Loop โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Circadian Engine (Dream Cycles) โ
โ Deprecation Pipeline (Ebbinghaus) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Token Budget โ Brain Graph โ Validation Layer โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ SQLite + FTS5 + sqlite-vec โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Configuration
evaOS uses a cortex.toml config file:
[cortex]
storage_backend = "sqlite"
[cortex.storage]
db_path = "evaos.db"
[cortex.extraction]
model = "haiku" # or "gpt-4.1-nano"
noise_filter = true
[cortex.cornerstones]
max_count = 7
drift_threshold = 0.15
[cortex.circadian]
dream_interval_hours = 6
decay_curve = "ebbinghaus"
See docs/ for full configuration reference and architecture deep-dives.
CLI Reference
evaos init [--profile companion|coding|enterprise]
evaos remember "text"
evaos recall "query"
evaos cornerstones list
evaos cornerstones seal --label "name" --content "text"
evaos dream
evaos stats
evaos health
evaos export [--format json|sql]
evaos serve [--port 8000]
evaos mcp
evaos backup [--output path]
Project Structure
cortex/
โโโ core/ # Extraction, entity resolution, reconciliation, retrieval
โโโ storage/ # SQLite adapter with FTS5 + vector support
โโโ brain_graph/ # Document memory graph with file watching
โโโ circadian/ # Sleep/wake/dream cycle engine
โโโ deprecation/ # Ebbinghaus decay pipeline
โโโ identity/ # Cornerstone guardian + drift calculator
โโโ config/ # TOML config loading + profiles
โโโ api/ # FastAPI HTTP server
โโโ integrations/ # MCP server + plugin interface
โโโ cli.py # Click-based CLI
โโโ types.py # Shared dataclasses and types
Contributing
See CONTRIBUTING.md for dev setup, testing, and PR guidelines.
License
MIT โ 100Yen Org
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 evaos-0.9.0.tar.gz.
File metadata
- Download URL: evaos-0.9.0.tar.gz
- Upload date:
- Size: 375.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9493edc2ba98182008bf9cd7c728c94e66e7fa4935d6d833bd4304f51e112f0a
|
|
| MD5 |
e2dc8361a4681d2babd1581beb4e75bd
|
|
| BLAKE2b-256 |
1acd70ddd0818cddbd14f5adfbcb1c52b348aa0dfe34276c1e564f3cc927542f
|
Provenance
The following attestation bundles were made for evaos-0.9.0.tar.gz:
Publisher:
publish.yml on 100yenadmin/electric-sheep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evaos-0.9.0.tar.gz -
Subject digest:
9493edc2ba98182008bf9cd7c728c94e66e7fa4935d6d833bd4304f51e112f0a - Sigstore transparency entry: 1051762675
- Sigstore integration time:
-
Permalink:
100yenadmin/electric-sheep@50f0ffc81ceab48b21bc1b7bce8078add817b1b8 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/100yenadmin
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50f0ffc81ceab48b21bc1b7bce8078add817b1b8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file evaos-0.9.0-py3-none-any.whl.
File metadata
- Download URL: evaos-0.9.0-py3-none-any.whl
- Upload date:
- Size: 257.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7937bc2a01ff40f5e31bfe5163dec761c6fdae561470c506f058ec2e3f06d396
|
|
| MD5 |
06c2808503e4928b24b9df729309758e
|
|
| BLAKE2b-256 |
4af6c3c39a4d7ed678e0c0662f34f2ccc2dc02535b5676c4d083a55e6314313f
|
Provenance
The following attestation bundles were made for evaos-0.9.0-py3-none-any.whl:
Publisher:
publish.yml on 100yenadmin/electric-sheep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
evaos-0.9.0-py3-none-any.whl -
Subject digest:
7937bc2a01ff40f5e31bfe5163dec761c6fdae561470c506f058ec2e3f06d396 - Sigstore transparency entry: 1051762677
- Sigstore integration time:
-
Permalink:
100yenadmin/electric-sheep@50f0ffc81ceab48b21bc1b7bce8078add817b1b8 -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/100yenadmin
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@50f0ffc81ceab48b21bc1b7bce8078add817b1b8 -
Trigger Event:
release
-
Statement type: