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 && 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
Project details
Release history Release notifications | RSS feed
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.7.1.tar.gz
(98.7 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-0.7.1-py3-none-any.whl
(109.3 kB
view details)
File details
Details for the file cdx_brain-0.7.1.tar.gz.
File metadata
- Download URL: cdx_brain-0.7.1.tar.gz
- Upload date:
- Size: 98.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6aaad61dc0a837009f827ad602517ee2efcaa156db16627f33a18594e291f27
|
|
| MD5 |
18594a54ac9f290ed7e69c5016d68a0f
|
|
| BLAKE2b-256 |
b21e39a4b12d1c1ce8952c00ee5280a846e4b4090db7f4079c6b0eefeff20a50
|
File details
Details for the file cdx_brain-0.7.1-py3-none-any.whl.
File metadata
- Download URL: cdx_brain-0.7.1-py3-none-any.whl
- Upload date:
- Size: 109.3 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 |
e8498847939f81093f6d41ff757dc0200f5f171275167ac06c2e9c9e56a2baed
|
|
| MD5 |
8844289423255056f7f172e39b8f87b9
|
|
| BLAKE2b-256 |
e86ad80c8ee686efd1735e91069871ef1c431c96f7cd3ce67eba0049a6dd9770
|