Repository navigation
ContextPocket 3.2-xi
ContextPocket 3.2-xi (溪)
The lightweight sibling of context-pocket: same pocket format, 11 commands, 11 MCP tools, zero caches, zero dependencies. Records AI coding conversation turns into a project-local ContextPocket/ folder of plain Markdown.
- Edition:
xi· commands: 11 · MCP tools: 11 - Data format:
v2— the sameContextPocket/folder as the other editions - Package:
context-pocket-xi· no runtime dependencies
Download
ContextPocket-3.2-Xi.zip — unzip it and run the CLI from the extracted folder:
node ContextPocket-3.2-Xi/bin/context-pocket-lite.js --helpOr link it locally with npm link inside the extracted folder.
This project has never been published to the npm registry.
Changes
ContextPocket 3.2:记忆沉淀 + 旧名移除
- 家族版本线:quan / xi / yuan / hai 的
package.json、FALLBACK_VERSION与edition.json同步到 3.2;数据格式仍为 v2,换版不需要迁移口袋。 - 旧名移除:
context-pocket/context-pocket-mcp与context-pocket-lite/context-pocket-lite-mcp不再注册,只保留context-pocket-quan*/context-pocket-xi*;测试与文档同步。 - xi 不变:仍 5 个核心文件 / 11 命令 / 零缓存,不接入记忆沉淀层。
记忆沉淀:K 知识节点(quan + yuan)
- 沉淀绑定节点:新增可选知识层 —— quan 用
ContextPocket/knowledge.md,yuan 用工作区knowledge/index.md+knowledge/K-*.md。每条 K 记录都通过Sources指回 T / ADR / R / file / tag / pref;图里物化为derived-from强边(另有covers/supersedes/contradicts/duplicate-of)。Markdown 始终是内容与 Sources 的真相源,索引与图只是派生缓存。 - K 契约:
Topic / Kind / Status / Confidence / Sources / Tags / Updated,可选Supersedes / SupersededBy / Conflicts。状态只有draft / active / stale / superseded / archived;disputed是 confidence,不是状态。无 Sources 只能 draft,active 必须有可解析来源与 Updated。 - quan(轻量):扩展既有
distill,不新增顶层命令。distill --knowledge产出 K 候选;--apply写入knowledge.md(默认 draft),--activate才升 active,--kinds/--min-sources过滤。图缓存升到graph/4,源签名加入knowledge.md,K 节点 id 为k:K1;搜索索引升到 v8,search --type K;verify校验 K 格式、来源存在性与 Topic 重复;handoff增加 active K 摘要。 - yuan(完整):扩展既有
workspace,仍为 10 命令 / 10 MCP 工具。新增workspace knowledge build|apply|list|view|verify;build从跨口袋证据(同 ADR 标题、同需求文本、同偏好 key+value)与 T-block 的显式小节生成 add / update / duplicate / conflict 提案,apply默认只写 add / update 且保持 draft(--activate才升 active),duplicate / conflict 永远留人工。工作区索引升到 v2 并收录 K 文档;工作区图升到 v3,新增knowledge段与kb:K-0001节点;context build/explain在 Related 增加### Knowledge(优先 active,可用--no-knowledge关闭);workspace status/audit报告 K 健康。 - 边界:不引入 LLM / 向量库 / format v3 / 新顶层命令;不自动删除、不自动合并冲突、不自动 draft→active;默认 plan-first;时间只用显式 Updated / 来源 WHEN。xi 完全不变(5 文件 / 11 命令 / 零缓存)。
Full history: CHANGELOG.md.