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

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.9.1.tar.gz (157.1 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.9.1-py3-none-any.whl (153.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cdx_brain-0.9.1.tar.gz
  • Upload date:
  • Size: 157.1 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.9.1.tar.gz
Algorithm Hash digest
SHA256 a367d4bf04d4d13086202d5ab0e0b4ed777300d4631671221b95223dc784a664
MD5 de3f326971caec7abaf42f0bbe77be9b
BLAKE2b-256 9df7cd725617ded58d17a122091b161f17109c10b5bd40ca3bb5935ff2ec5096

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cdx_brain-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 153.6 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.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e06f7698eaa70b1ce781920c0dca2c19f3ac11d25a6806a29322cd1ba7f116c6
MD5 d9e3902179c7d660b5ae79cd62ea73e0
BLAKE2b-256 56b8e725fb807f399583c511adedf412a8f952a0e02b630713156739ca1194ca

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.0

2 files

This release

0.9.1 This release

2 files

0.7.1

2 files

0.4.1

2 files

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