# Evolving Profile – Local-First AI Memory OS for Claude Code and Codex

> Source: <https://github.com/ccygod/evolving-profile>
> Published: 2026-11-29 05:11:13+00:00

**Key takeaway:** Evolving Profile 6.2 adds tiered Recall (164.5 ms median) and Research retrieval plus bi-temporal entity facts to cut vector top-k misses, reporting 94.6% (35/37) on PersonaMem-32K and 52.7% smaller HNSW indexes at 75,000 memories.

### **Say Goodbye to Toy Memory That Only Stores Summaries — Give Every AI You Use a Real Local Brain, Built for Hard Battles**

**94.6% PersonaMem-32K · 164ms Recall · 75K-Scale Governance · Zero Bytes Uploaded to the Cloud**

*Put your agents into a real high-pressure workflow and flat summaries / vector RAG / endless `MEMORY.md` files hit four walls: **incomplete recall**, **imprecise writing**, **token blowouts**, and **no lessons learned**. Evolving Profile 6.2 breaks all four with **7 engineered combos** — shared across Claude Code, Claude Desktop, OpenAI Codex, Antigravity, Trae, WorkBuddy & Doubao Work.*

**Why power users switch to EP on day one:** **94.6% (35/37)** strictly blind on PersonaMem-32K (**100%** across 4 core categories) · **91.7% (11/12)** on LongMemEval-S · **164.5 ms** median recall · **100% original-source attribution (`read_source`)** · battle-tested on **75,000+ real production memories** with **-52.7%** smaller HNSW indexes and **18.3% → 0%** low-value noise. ([Reproduce every number →](https://github.com/ccygod/evolving-profile/blob/main/benchmarks/README.md))

[🌐 Official Site](https://ccygod.github.io/evolving-profile/) · [▶ YouTube (EN)](https://youtu.be/f6iqlIRkDe0) · [📺 Bilibili (中文)](https://www.bilibili.com/video/BV1ya15z2EYG) · [简体中文](https://github.com/ccygod/evolving-profile/blob/main/README-%E4%B8%AD%E6%96%87.md) · [Quick Start](#ep-quick-start) · [7 Combos](#five-dimensional-preferences) · [75K Benchmarks](#production-proven-at-75k-units)

## ep-promo-v9-en-web.mp4

## **🇨🇳 中文官方发布片（5 分钟完整版 · 点击展开在线播放）** · Full 1080p HD downloads in [v6.2.2 Release](https://github.com/ccygod/evolving-profile/releases/tag/v6.2.2)

## ep-promo-v9-zh-web.mp4

Most cross-agent memory tools squeeze conversations into flat summaries, dump keywords into a vector database, or keep growing one endless `MEMORY.md`. That works for simple Q&A—until real high-pressure work hits **four shared dead ends**:

1. **Incomplete recall** — Ask*"List every client project I built in the last 3 months"* and vector top-k misses half of them.
2. **Imprecise, AI-sounding writing** — A flat`"user likes concise"` tag can't combine your nuanced writing habits with the tangled web of you, your company, clients, and the current project.
3. **Token blowouts** — Traditional memory only has two settings: a thin summary or 10,000 words of raw transcript.
4. **No lessons learned** — When an agent spends two hours climbing out of a pit, the next session or next tool falls right back in.

**Evolving Profile (EP 6.2)** breaks all four walls with **7 engineered combos** running 100% locally on your machine:

| The 7 Combos of EP 6.2 | What It Replaces | What Changes in Practice | 
|---|---|---|
| **01. Master Router + Layered Maps** | Blindly dumping memories into context | Scans topic map, preference map & task state first — **fewest tokens, most complete & cleanest memory** | 
| **02. 5D Conditional Preferences** | Flat `"user likes concise"` note | Real-time extraction across **5 dimensions** with explicit conditions,**`hard_guardrail`** & exceptions | 
| **03. 3-Layer Scenario Summaries** | Binary thin summary vs raw transcript | **Compact → Standard → Full** on-demand expansion +`read_source` on the exact key line | 
| **04. Entity Graph + Bi-Temporal Facts** | Flat vector chunks that contradict | Weaves people, company, clients & projects with `valid_from` /`superseded_by` — old facts stamped obsolete | 
| **05. Tiered Retrieval (`Recall` + `Research`)** | Vector top-k only | **164 ms `Recall`** for single-point lookups;**` Research` + exhaustive paging** for 100%-coverage inventories | 
| **06. Independent Agent Process Memory** | Mixing debug logs into user facts | Stores failure triggers, fix paths & **independent verification evidence** —`"it's fixed"` without proof is stamped unverified | 
| **07. Full-Path Visual Trace Graph** | Memory black box | Live **Prompt Journey** map shows every route, hit, filtered noise, injected packet & token cost in 0.5s | 

Human preferences are conditional—how you want a quick bug fix explained is not how you want an executive report written. EP distills cross-session behavior and corrections into **5 structured dimensions**:

1. **Communication & Presentation** — structure, tone, formatting, evidence style
2. **Learning & Comprehension** — explanation depth, analogies, causal-first breakdowns
3. **Analysis & Decision-Making** — ranked recommendations, explicit trade-offs, boundary-first framing
4. **Execution & Collaboration** — pre-task scoping, verification gates, skill/tool routing
5. **Quality & Delivery** — review checklists, layout rules, regression acceptance

Every preference unit carries explicit **`conditions`**, **` exceptions`**, **` scope_level`** (` global` / `project_scoped` / `task_local`), and **` enforcement`** (` hard_guardrail` / `default_policy` / `soft_style`), backed by SQLite triggers enforcing **immutable active revisions**.

EP never mixes unverified guesses with confirmed facts or agent debugging logs:

- **User Memory Plane** : Long-term facts, experiences, observations, plus**bi-temporal `entity_state`** (` valid_from` /`valid_to` /`superseded_by` ) so mutable project/service status never conflicts with immutable historical facts.
- **5D Preference Plane** : Active, reviewed, conditional collaboration rules projected per prompt.
- **Reusable Agent Experience Plane** : What the agent tried, why it failed, how it recovered, and whether recovery was verified.

Candidates are **navigated first** via a lightweight topic catalog and **expanded on demand** via `read_source`—cutting prompt token waste while keeping every claim traceable.

One local Bank can be fed and queried simultaneously by **Codex**, **Claude Code CLI**, **Claude Desktop (Cowork/local sessions)**, **Antigravity**, **Trae**, **WorkBuddy**, and **Doubao Work** (plus **Hermes** and any standard MCP client). Host-adaptive bridges automatically tag `origin_agent`, strip noisy tool/thinking dumps, and keep only human-visible signal.

[Measured on a real macOS installation with] **~75,000 memory units** using the built-in reproducible benchmark (`v6/storage_bench.py`, frozen prompts & known items before/after):

| Metric | Before `6.2` | After `6.2` | Impact | 
|---|---|---|---|
| **`memory_units` table** | 885 MB | **525 MB** | **-40.7%** (`halfvec` + hot/warm tiering) | 
| **HNSW vector indexes** | 146 MB | **69 MB** | **-52.7%** (pgvector 0.8`halfvec_cosine_ops` ) | 
| **Exact duplicates in Top-10** | 9.7% | **0.3%** | **-96.9% noise** (numeric + temporal guard) | 
| **Low-value units in Top-10** | 18.3% | **0%** | **Zero unconfirmed clutter in vector top-k** | 
| **Recall latency (p50 / p95)** | 0.221s / 0.354s | **0.168s / 0.286s** | **Faster + cleaner ranking** | 
| **Known-item Hit@10** | 84 / 100 | **87 / 100** | **Higher accuracy at half the index size** | 
| **`ep_events.events` tool logs** | 440 MB | **204 MB** | **237 MB archived → 16.5 MB zstd (100% reversible)** | 
| **Trace write per recall** | 4.89 MB | **0.91 MB** | **-81.4% I/O overhead** | 

*Run `python -m v6.storage_bench` on your own bank to reproduce before/after numbers. Full methodology in [CHANGELOG-6.2.md](https://github.com/ccygod/evolving-profile/blob/main/CHANGELOG-6.2.md). Reproducible **PersonaMem-32K** & **LongMemEval-S** isolated benchmarks (`ep_sota` = cheap local ingestion + multi-facet recall + chronological `read_source` readback): **94.6% (35/37)** strictly blind on **PersonaMem-32K** with a frontier host agent (**100%** on Preference Evolution 9/9, New Ideas 6/6, Preference Recs 5/5 & Generalizing 4/4 at **164.5 ms** p50) and **91.7% (11/12)** on **LongMemEval-S** (**100%** on 5/6 categories at **102.5 ms** p50, **100%** source attribution) — full runners & raw JSONs in [benchmarks/](https://github.com/ccygod/evolving-profile/blob/main/benchmarks/README.md).*

### 5. Interactive Web Console: Linear/Obsidian Dual-Theme Workspace, Constellations & 0.5s Prompt Journey

- **Independent Dual-Theme Workspace** : Warm Alabaster light mode + Deep Obsidian dark mode, collapsible 3-plane grouped navigation (`Memory Planes` ·`Retrieval & Sources` ·`Observability & Ops` ), segmented pill sub-tabs, and a dot-grid memory constellation canvas.
- **Data-Driven "Prompt Journey" Link Map** : Inspect any prompt's exact path across the serial spine and parallel User Memory / Agent Memory / External RAG lanes, with per-node receipt counts (loads in**0.5–0.7s** ).
- **Unified Memory & Preference Constellations** : Explore facts, experiences, entities,`hard_guardrail` preferences, and dimmed warm/low-value nodes with full click-to-source traceability.

| Light Mode (Warm Alabaster) | Dark Mode (Deep Obsidian) | 
|---|---|

- **Live-Reloading MCP Server** : Stdio MCP adapter fingerprints its own source and reloads in place via`exec` without dropping active host connections (`EP_MCP_LIVE_RELOAD=0` to disable), paired with JSON-RPC`-32602` validation, failure audit, and`mcp-schema-drift.jsonl` .
- **Unified Local Model Router (`:12095`)** : OpenAI-compatible gateway across 6 scopes (` default` ,`context` ,`retain` ,`consolidation` ,`reflect` ,`guidance` ) with circuit breaking and provider failover.
- **Zero-Shell Pure-Python Scheduler (`:12096`)** : 13 unified background jobs + file-watcher wakeups across macOS, Windows, and Linux.
- **Hardware-Adaptive Postgres 18 / pgvector 0.8 Auto-Tuner** (`v6/pg_autotune.py` ): Computes RAM/CPU-safe settings and enables`hnsw.iterative_scan = 'relaxed_order'` .

```
flowchart LR
    subgraph Hosts["AI Hosts (Shared Local Brain)"]
        H1["Claude Code / Desktop"]
        H2["OpenAI Codex"]
        H3["Antigravity / Trae / MCP"]
    end

    subgraph ControlPlane["Evolving Profile 6.2 Control Plane (127.0.0.1)"]
        MCP["Live-Reload MCP & Hook Bridge<br/>Prompt Binding · Schema/Failure Audit"]
        CTRL["QueryController (:12079)<br/>Navigate-First · Budgeted Recall · Readback"]
        PREF["5D Preference Engine (SQLite)<br/>Conditions · Guardrails · Immutable Revisions"]
        ROUTER["Local Model Router (:12095)<br/>6 Scopes · Failover · Circuit Breaker"]
        DAEMON["Pure-Python Daemon (:12096)<br/>13 Jobs · Tiering · Retention · Hygiene"]
    end

    subgraph Storage["EP Storage Engine (PostgreSQL 18 + pgvector 0.8 halfvec)"]
        API["Memory API (:8888)<br/>Retain · Recall · Reflect"]
        DB["PostgreSQL + halfvec HNSW<br/>User Facts · Entity State · Agent Experience · Warm Archive"]
    end

    UI["Web Console (:9999)<br/>Constellations · Prompt Journey · Config"]

    Hosts <--> MCP
    MCP <--> CTRL
    CTRL <--> PREF
    CTRL <--> API
    DAEMON --> API
    DAEMON --> DB
    API <--> ROUTER
    API <--> DB
    UI <--> API
    UI <--> CTRL
```

- **Python 3.11+** ,[`uv`](https://docs.astral.sh/uv/) ,**Node.js 20.9+** ,` npm` , and`git`
- **PostgreSQL + pgvector** (pgvector 0.8+ recommended for`halfvec` & iterative HNSW scan)
- Your own Chat + Embedding API provider credentials (no hosted lock-in)

```
git clone https://github.com/ccygod/evolving-profile.git
cd evolving-profile
uv run --python 3.11 scripts/install.py --mode local
```

On **Windows PowerShell** (no WSL required):

```
.\scripts\install.ps1
```

Pass `--no-autostart` / `-NoAutostart` for build-only installation. Use `--dry-run` to preview without writing files.

Fill your database and model provider settings in the generated `.env` (see [api/README.md](https://github.com/ccygod/evolving-profile/blob/main/api/README.md)). Use the same Bank ID across API, Controller, and host config.

```
# Terminal 1 — Memory API
uv run --project api --env-file .env evolving-profile-api --host 127.0.0.1 --port 8888 --workers 1

# Terminal 2 — Web Console
node --env-file=.env console/bin/cli.js --hostname 127.0.0.1 --port 9999 --api-url http://127.0.0.1:8888
```

Open **`http://127.0.0.1:9999`** to create your Bank and explore the Console. For full Controller, Hook, Daemon, and Host MCP setup, follow **[docs/DEPLOYMENT.md](https://github.com/ccygod/evolving-profile/blob/main/docs/DEPLOYMENT.md)** and **[docs/HOST-SETUP.md](https://github.com/ccygod/evolving-profile/blob/main/docs/HOST-SETUP.md)**.

## **Let your AI agent set it up for you (copy-paste prompts for Claude, Codex, Hermes…)**

| Host | One-sentence request | 
|---|---|
| **Codex desktop / CLI** | Use this EP checkout, read `docs/DEPLOYMENT.md` and`docs/AGENT-USAGE.md` , start backend/UI, register EP once, and verify actual reads + permitted capture. | 
| **Claude Code CLI** | Follow `docs/DEPLOYMENT.md` and`docs/host-integrations/CLAUDE-DESKTOP-CLI.md` , start local backend/UI, register stdio MCP with`claude mcp add` , and verify a real read. | 
| **Claude Desktop** | Connect this Chat to my running local EP using `docs/HOST-SETUP.md` and verify live read tools. | 
| **Antigravity / Hermes / Other MCP** | Read `docs/AGENT-SETUP.md` and`docs/AGENT-USAGE.md` , register the governed stdio MCP server, and run a real`user_recall` /`user_preference` verification. | 

Full per-host checklists: **[docs/AGENT-SETUP.md](https://github.com/ccygod/evolving-profile/blob/main/docs/AGENT-SETUP.md)** · Day-to-day agent rules: **[docs/AGENT-USAGE.md](https://github.com/ccygod/evolving-profile/blob/main/docs/AGENT-USAGE.md)**.

- **Single-user, local-first by design** : Services bind to`127.0.0.1` for one person on their own machine. Do not expose local ports publicly without your own authentication/network boundary.
- **Evidence discipline** : Memory candidates, scenario summaries, and process patterns are navigation leads—not automatically verified external facts. Always use`read_source` when exact names, numbers, or contracts matter.
- **Full technical walkthrough & verification details** : Read the complete**[Deep Dive (English)](https://github.com/ccygod/evolving-profile/blob/main/docs/DEEP-DIVE.md)** ,**[Release Ledger](https://github.com/ccygod/evolving-profile/blob/main/docs/RELEASE-LEDGER.md)** ,**[Changelogs (6.2 / 6.1 / 6.0)](https://github.com/ccygod/evolving-profile/blob/main/CHANGELOG-6.2.md)** , and**[v6 Architecture](https://github.com/ccygod/evolving-profile/blob/main/docs/ARCHITECTURE-v6.md)** .

- **Setup** :[Deployment Guide](https://github.com/ccygod/evolving-profile/blob/main/docs/DEPLOYMENT.md) ·[Host Setup](https://github.com/ccygod/evolving-profile/blob/main/docs/HOST-SETUP.md) ·[Claude Desktop & CLI](https://github.com/ccygod/evolving-profile/blob/main/docs/host-integrations/CLAUDE-DESKTOP-CLI.md) ·[Local Setup & Rollback](https://github.com/ccygod/evolving-profile/blob/main/docs/LOCAL-SETUP.md)
- **Agents** :[Agent Setup Prompts](https://github.com/ccygod/evolving-profile/blob/main/docs/AGENT-SETUP.md) ·[Agent Operating Guide](https://github.com/ccygod/evolving-profile/blob/main/docs/AGENT-USAGE.md) ·[Memory Capabilities](https://github.com/ccygod/evolving-profile/blob/main/docs/MEMORY-CAPABILITIES.md)
- **Engineering** :[Architecture v6](https://github.com/ccygod/evolving-profile/blob/main/docs/ARCHITECTURE-v6.md) ·[CHANGELOG 6.2](https://github.com/ccygod/evolving-profile/blob/main/CHANGELOG-6.2.md) ·[CHANGELOG 6.1](https://github.com/ccygod/evolving-profile/blob/main/CHANGELOG-6.1.md) ·[CHANGELOG 6.0](https://github.com/ccygod/evolving-profile/blob/main/CHANGELOG-6.0.md) ·[Deep Dive](https://github.com/ccygod/evolving-profile/blob/main/docs/DEEP-DIVE.md)
- **Governance** :[Contributing](https://github.com/ccygod/evolving-profile/blob/main/CONTRIBUTING.md) ·[Security Policy](https://github.com/ccygod/evolving-profile/blob/main/SECURITY.md) ·[Attribution Notice](https://github.com/ccygod/evolving-profile/blob/main/NOTICE.md) ·[MIT License](https://github.com/ccygod/evolving-profile/blob/main/LICENSE)

Released under the [MIT License](https://github.com/ccygod/evolving-profile/blob/main/LICENSE). Early storage primitives originated from MIT-licensed upstream work; full attribution and third-party notices are preserved in [NOTICE.md](https://github.com/ccygod/evolving-profile/blob/main/NOTICE.md).
