Skip to main content

Codex class brain memory system — three-tier memory architecture — SQLite+FTS5 hot storage, L1→L2→L3 cognitive pipeline (policy induction, skill crystallization, world model), optional OpenViking cold sync, and built-in viewer

Project description

cdx-brain — Codex 类脑记忆系统

不是记忆插件。是认知引擎。

三层级记忆架构

┌─────────────────────────────────────────────────┐
│           原生记忆 (Codex extensions)            │
│  精炼 · 必需 · session 启动自动加载              │
│  promoted by cdx-brain promote_gate               │
├─────────────────────────────────────────────────┤
│            热记忆 (cdx-brain cache.db)             │
│  全部对话 · FTS5 全文检索 · 按需注入             │
│  Stored by Stop hook → cache.db                 │
├─────────────────────────────────────────────────┤
│          共享底座 (OpenViking)                   │
│  跨 Agent 语义检索 · 联邦记忆                    │
│  synced by SessionEnd hook                      │
└─────────────────────────────────────────────────┘

一条命令安装

pip install cdx-brain-codex && cdx-brain init

无需 MCP 配置

  • 零 MCP 依赖 — 不装服务、不配端口、不挂后台
  • 三源合一检索 — FTS5 + 关键词 + OpenViking 语义
  • 自动成长 — 高频内容自动晋升,相似内容去重
  • 零维护 — 自动回收、自动去重、自动晋升

对比

对比维度 cdx-brain 其他记忆方案
MCP 依赖 ❌ 零 ✅ 需要

许可证

AGPL-3.0

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

cdx_brain-0.4.1.tar.gz (75.5 kB view details)

Uploaded Source

Built Distribution

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

cdx_brain-0.4.1-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file cdx_brain-0.4.1.tar.gz.

File metadata

  • Download URL: cdx_brain-0.4.1.tar.gz
  • Upload date:
  • Size: 75.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cdx_brain-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1947be7607aa0962696f310f2f041a7fd912b4e61e72a842f06a59f38fd8288c
MD5 bcdcd32d1257065d4d3699203ea685ff
BLAKE2b-256 7ed618cb954a0f8a122486cb2616e12c9d66cc0d9756bb12f53fcb31118d750d

See more details on using hashes here.

File details

Details for the file cdx_brain-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: cdx_brain-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cdx_brain-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d2aaafa2cae505938e7a060073f979acd2c14d851497a44c5692bdc9f87e1f
MD5 dd8c1ef731411817eeace088c054c39a
BLAKE2b-256 9822da505ff32e48aa2da3c3462b1f78ebc9b189d2ee01b71fc8693bc4a46616

See more details on using hashes here.

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