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 && cdx-brain init
无需 MCP 配置
- 零 MCP 依赖 — 不装服务、不配端口、不挂后台
- 三源合一检索 — FTS5 + 关键词 + OpenViking 语义
- 自动成长 — 高频内容自动晋升,相似内容去重
- 零维护 — 自动回收、自动去重、自动晋升
对比
| 对比维度 | cdx-brain | 其他记忆方案 |
|---|---|---|
| MCP 依赖 | ❌ 零 | ✅ 需要 |
许可证
AGPL-3.0
v0.5.0 认知管线就绪
L1 Capture → Reward → L2 Induction → L3 World Model → Skill Crystallization
- 每轮对话:
process_trace()实时处理 - 会话结束:
process_session_end()全流程触发 - 管线状态持久化到
~/.cdx-brain/data/pipeline_state.json - 认知产物(policies + concepts)通过 RRF 注入 additionalContext
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-2.1.0.tar.gz
(178.3 kB
view details)
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
cdx_brain-2.1.0-py3-none-any.whl
(190.1 kB
view details)
File details
Details for the file cdx_brain-2.1.0.tar.gz.
File metadata
- Download URL: cdx_brain-2.1.0.tar.gz
- Upload date:
- Size: 178.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce263ebb699b804f160be5103ddb4b6473c627d079e18bbce867df5ea4a8c7e3
|
|
| MD5 |
3c325b85544cc0b8ad5ed83ceb357ee4
|
|
| BLAKE2b-256 |
2f22dc0f0ef030d25d2a31b4fac7c80ae0369ef07551f6739317e9c52d53dd69
|
File details
Details for the file cdx_brain-2.1.0-py3-none-any.whl.
File metadata
- Download URL: cdx_brain-2.1.0-py3-none-any.whl
- Upload date:
- Size: 190.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e51e5e2b12ce48f2987a9acd059077fda2ff3fbd75daf705825b0fc586f8eab
|
|
| MD5 |
618bec32624ecaf1387013b6de33d8a0
|
|
| BLAKE2b-256 |
a89b57c99b54681e49811081ed2c5f0cd0cc14295986ff58105542a566ef3d9f
|