AIFeed

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

Original text(via HN AI)

Evolving Profile

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 →)

🌐 Official Site · ▶ YouTube (EN) · 📺 Bilibili (中文) · 简体中文 · Quick Start · 7 Combos · 75K Benchmarks

Evolving Profile — Local-First Memory, 5D Preferences & Agent Experience Control Plane
Evolving Profile — Local-First Memory, 5D Preferences & Agent Experience Control Plane

🎬 Official Launch Film (5 min · English — Plays Inline)

Why Evolving Profile?

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:

  • Incomplete recall — Ask "List every client project I built in the last 3 months" and vector top-k misses half of them.
  • 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.
  • Token blowouts — Traditional memory only has two settings: a thin summary or 10,000 words of raw transcript.
  • 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.2What It ReplacesWhat Changes in Practice
01. Master Router + Layered MapsBlindly dumping memories into contextScans topic map, preference map & task state first — fewest tokens, most complete & cleanest memory
02. 5D Conditional PreferencesFlat "user likes concise" noteReal-time extraction across 5 dimensions with explicit conditions, hard_guardrail & exceptions
03. 3-Layer Scenario SummariesBinary thin summary vs raw transcriptCompact → Standard → Full on-demand expansion + read_source on the exact key line
04. Entity Graph + Bi-Temporal FactsFlat vector chunks that contradictWeaves people, company, clients & projects with valid_from / superseded_by — old facts stamped obsolete
05. Tiered Retrieval ( Recall + Research )Vector top-k only164 ms Recall for single-point lookups; Research + exhaustive paging for 100%-coverage inventories
06. Independent Agent Process MemoryMixing debug logs into user factsStores failure triggers, fix paths & independent verification evidence — "it's fixed" without proof is stamped unverified
07. Full-Path Visual Trace GraphMemory black boxLive Prompt Journey map shows every route, hit, filtered noise, injected packet & token cost in 0.5s

6 Engineering Highlights

1. Five-Dimensional Conditional Preferences (Not a Flat "Likes" List)

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:

  • Communication & Presentation — structure, tone, formatting, evidence style
  • Learning & Comprehension — explanation depth, analogies, causal-first breakdowns
  • Analysis & Decision-Making — ranked recommendations, explicit trade-offs, boundary-first framing
  • Execution & Collaboration — pre-task scoping, verification gates, skill/tool routing
  • 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.

2. Three Memory Planes + Bi-Temporal Entity State

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.

3. One Local Brain Across 6+ AI Hosts

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.

4. Production-Proven Storage & Retrieval Governance (v6.2)

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):

MetricBefore 6.2After 6.2Impact
memory_units table885 MB525 MB-40.7% ( halfvec + hot/warm tiering)
HNSW vector indexes146 MB69 MB-52.7% (pgvector 0.8 halfvec_cosine_ops )
Exact duplicates in Top-109.7%0.3%-96.9% noise (numeric + temporal guard)
Low-value units in Top-1018.3%0%Zero unconfirmed clutter in vector top-k
Recall latency (p50 / p95)0.221s / 0.354s0.168s / 0.286sFaster + cleaner ranking
Known-item Hit@1084 / 10087 / 100Higher accuracy at half the index size
ep_events.events tool logs440 MB204 MB237 MB archived → 16.5 MB zstd (100% reversible)
Trace write per recall4.89 MB0.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. 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/.
Evolving Profile 6.2.2 — Verified Production Governance & PersonaMem-32K Benchmarks
Evolving Profile 6.2.2 — Verified Production Governance & PersonaMem-32K Benchmarks

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.
Evolving Profile 6.2 Web Console — Light Mode
Evolving Profile 6.2 Web Console — Light Mode
Evolving Profile 6.2 Web Console — Dark Mode
Evolving Profile 6.2 Web Console — Dark Mode

6. Zero-Downtime Local Kernel

  • 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'.

Architecture


        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
      

Quick Start

Requirements

  • Python 3.11+, 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)

1. Clone & Install (macOS / Linux / Windows PowerShell)


        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.

2. Configure .env

Fill your database and model provider settings in the generated .env (see api/README.md). Use the same Bank ID across API, Controller, and host config.

3. Start API & Web Console


        # 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 and docs/HOST-SETUP.md.

HostOne-sentence request
Codex desktop / CLIUse 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 CLIFollow 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 DesktopConnect this Chat to my running local EP using docs/HOST-SETUP.md and verify live read tools.
Antigravity / Hermes / Other MCPRead 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 · Day-to-day agent rules: docs/AGENT-USAGE.md.

Scope, Privacy & Honest Boundaries

  • 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), Release Ledger, Changelogs (6.2 / 6.1 / 6.0), and v6 Architecture.

Documentation Index

  • Setup: Deployment Guide · Host Setup · Claude Desktop & CLI · Local Setup & Rollback
  • Agents: Agent Setup Prompts · Agent Operating Guide · Memory Capabilities
  • Engineering: Architecture v6 · CHANGELOG 6.2 · CHANGELOG 6.1 · CHANGELOG 6.0 · Deep Dive
  • Governance: Contributing · Security Policy · Attribution Notice · MIT License

License & Acknowledgments

Released under the MIT License. Early storage primitives originated from MIT-licensed upstream work; full attribution and third-party notices are preserved in NOTICE.md.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗