Skip to main content

AI memory engine with identity preservation โ€” remember everything, forget nothing

Project description

๐Ÿ‘ evaOS (Electric Sheep)

AI memory that remembers who you are.

Python 3.11+ License: MIT PyPI

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

evaos-0.9.0.tar.gz (375.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evaos-0.9.0-py3-none-any.whl (257.3 kB view details)

Uploaded Python 3

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

Hashes for evaos-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9493edc2ba98182008bf9cd7c728c94e66e7fa4935d6d833bd4304f51e112f0a
MD5 e2dc8361a4681d2babd1581beb4e75bd
BLAKE2b-256 1acd70ddd0818cddbd14f5adfbcb1c52b348aa0dfe34276c1e564f3cc927542f

See more details on using hashes here.

Provenance

The following attestation bundles were made for evaos-0.9.0.tar.gz:

Publisher: publish.yml on 100yenadmin/electric-sheep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for evaos-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7937bc2a01ff40f5e31bfe5163dec761c6fdae561470c506f058ec2e3f06d396
MD5 06c2808503e4928b24b9df729309758e
BLAKE2b-256 4af6c3c39a4d7ed678e0c0662f34f2ccc2dc02535b5676c4d083a55e6314313f

See more details on using hashes here.

Provenance

The following attestation bundles were made for evaos-0.9.0-py3-none-any.whl:

Publisher: publish.yml on 100yenadmin/electric-sheep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page