Skip to main content

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

Metadata

Release files for cdx-brain 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cdx-brain 2.1.0
File Size Uploaded Provenance Actions
cdx_brain-2.1.0.tar.gz 178.3 kB Without provenance Details for cdx_brain-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cdx-brain 2.1.0
File Interpreter ABI Platform Actions
cdx_brain-2.1.0-py3-none-any.whl Python 3 none any Details for cdx_brain-2.1.0-py3-none-any.whl

Total release size: 368.4 kB

Release files / cdx_brain-2.1.0.tar.gz

Download URL cdx_brain-2.1.0.tar.gz
Size 178.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce263ebb699b804f160be5103ddb4b6473c627d079e18bbce867df5ea4a8c7e3
BLAKE2b-256 checksum
How to use checksums
2f22dc0f0ef030d25d2a31b4fac7c80ae0369ef07551f6739317e9c52d53dd69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / cdx_brain-2.1.0-py3-none-any.whl

Download URL cdx_brain-2.1.0-py3-none-any.whl
Size 190.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e51e5e2b12ce48f2987a9acd059077fda2ff3fbd75daf705825b0fc586f8eab
BLAKE2b-256 checksum
How to use checksums
a89b57c99b54681e49811081ed2c5f0cd0cc14295986ff58105542a566ef3d9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for cdx-brain 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page