personal understanding
This server enables a local-first, verbatim-first personal memory archive with auditable evidence-chain recall and strict validation gates.
Capture & derive: Preflight user turns for personal content, capture exact messages verbatim, create derived records (events, entities, facts, preferences, etc.), and close derivation loops.
Retrieve & catalog: Survey the archive, probe or deep-read events/entities/context cards, and surface associative recall with visible evidence paths.
Follow-ups & hypotheses: Register and resolve contextual follow-ups, and track candidate causal explanations without presenting them as fact.
Validate & audit: Check derivation status, validate memory structure, and enforce session checks before claiming the archive is updated.
Feedback: Record whether memories were helpful, missed, or corrected to improve future recall.
Allows backing up the memory archive to any rclone remote, enabling mirror-to-second-location backups with integrity verification.
Personal Understanding
一个带原话溯洄的模拟人脑联想、发散、聚合、逆向等的 agent 记忆系统。
English · 它是什么 · 功能地图 · 上手 · 设计思路
agent 记忆 personal memory AI 记忆系统 MCP server local-first verbatim capture 原话溯洄 联想检索 Personalized PageRank 时间线记忆 可审计记忆 anti-hallucination memory personal knowledge management LLM agent memory claude skill codex skill
它是什么
给 AI 助手用的个人记忆系统:装在 Claude / Codex / Pi 这类客户端里,让它跨会话地「记得你这个人」。
和主流做法(每句话先摘要、先向量化,原话加工完就丢)相反,它把顺序倒过来:先把你说的话一字不改存下来,理解只是原话的派生物。派生物记错了可以重算、可以纠正,原话永远在位可以核对——这是「原话溯洄」的意思。至于「联想、发散、聚合、逆向」,是它在回忆时模拟人脑的四种找法,下面功能地图逐个讲。
Related MCP server: midas-memory-mcp
一条消息的一生
你的消息 → ① 预检分类:是个人内容吗?(技术问答直接跳过,不碰档案)
→ ② 原话捕获:完整消息逐字节落盘 + SHA-256,永不可改
→ ③ 派生:拆出事件、人物、情境卡、待回访;模型猜测进独立假设层
→ ④ 闭环:每条捕获显式关闭,过不了硬闸门就不算「已记住」
→ ⑤ 日后回想:survey 看地图 → probe 发散 → deep 回原话,外加一条联想通道①–④ 的机制:docs/how-it-works.md 第一到三节;⑤ 在第四到八节。
功能地图
按「记、存、想、养」四组。每条给一句「为什么」,细节全部链到详文。
记:进来的时候
两档闸门——个人内容走全流程;纯技术、吃什么、一次性购物完全不碰档案。分类器漏判由模型兜底,宁可多收不漏收。(为什么:漏收 = 原话永久丢失;机制)
原话不可变捕获——完整消息逐字节落盘,带 SHA-256、时间戳、会话标识;纠正只新增不覆盖;图片音频保原件,OCR 只是派生。(为什么:摘要先行 = 原话加工后无法审计;机制)
派生闭环 + 硬闸门——存下原话不算完:必须拆出记录并显式闭环,孤立捕获过不了回答前的 session_check。(为什么:「相信我,存好了」在真实生活里不够格——2.5.0 重复建档事故;机制)
足迹纪律——游戏攻略、在读在看这类轻足迹:先定向查重,恰好一条微型记录,零新增体面关闭。(为什么:防止把单次咨询堆成档案噪声;机制)
存:档案怎么组织
时间主干——每条记录带发生日/精度/依据/阶段/前后邻居;禁止把录入当天冒充发生日。(为什么:「你现在处于某阶段」的断言要先对日期再讲故事;细则)
实体档案 + 情境卡——人、学校、地点、作品、游戏、概念九类实体页 + 「学校 × 足球」式交叉情境卡;事实只存一份,卡片只是投影。(为什么:实体正文写可变状态会变成永不更新的僵尸信息;细则)
事实五层——原话事实 / 你的评价 / 你的解释 / 模型假设 / 无法确认,永远分层摆放;模型猜测恒为
candidate,至少两条证据才立项,永不转正。(为什么:防止 AI 把自己的推测当你的事实记;细则)待回访——「等几天看结果」这类开放闭环带到期日入档,到期主动带上下文回访。(为什么:沉默不是答复,换话题不等于已解决;细则)
想:怎么回忆起来
survey → probe → deep 三层渐进——先看 48K 紧凑路由地图定向,再沿实体/情境/时间邻居发散,最后回原话核验;每步预算封顶,不把全库灌给模型。(为什么:灌全库 = 模型被无关记忆淹没;机制)
联想通道(发散)——个性化 PageRank 沿档案图扩散,带出词面零重叠但确实相关的候选(「打击感」→「巫师3 骑马手感」);是候选池不是结论,模型判断成立才引用。(为什么:「书荒了整本来嚼嚼」这类话三个词面通道全灭过——2.6.0 事故;机制)
聚合读法(侦探拼图)——「我该怎么办」拆成情绪线/利益线/人物线分头查,再拼起来;回答分档案事实/模式观察/模型推断三层。(为什么:宽泛问题单一查询必漏;机制)
逆向冷回溯——想不起关键词时,从人物/地点/时间任何线索顺实体发散、沿时间邻居走、按时间窗浏览认领;禁止宣布「查不到」。(为什么:「查不到」三个字在记忆系统里等于撒谎——只是没找到,不是不存在;机制)
养:档案的自我维护
反馈回路——被纠正/确认才记录,note 必须引用当时原话作证据;沉默、换话题不算信号。(为什么:防止模型给自己的作业打分;细则)
季度权重复盘——180 天未再确认的导入权重降为 0:保留、可检索、退出活跃地图,永不删除。(为什么:档案只增不减,权重会漂移;细则)
语义审查 + 三态校验——定期扫「摘要冒充原话」「假设悄悄转正」「归属张冠李戴」;结构校验输出 clean/warnings/failed。(机制)
快照备份与范围恢复——「跑了 7 天且校验通过」才切快照;恢复分 code/data/all 三级,dry-run 默认。(为什么:这份档案真实丢过一次数据;细则)
可视化审计面板——本地静态页,能沿 事件→实体→情境→原话 完整链路逐层点开核查。(机制)
上手
让智能体跑这一条命令即可装好(路径按你客户端的 skills 目录调整):
git clone https://github.com/caix84476-netizen/personal-understanding.git \
~/.claude/skills/personal-understanding && \
cd ~/.claude/skills/personal-understanding && \
python scripts/init_archive.py && \
python scripts/install_mcp.py --auto重启客户端,personal_* 工具上线,正常聊天即可——「我最近……」「记住一下……」「为什么我总是……」,它会自己接住。手动逐步教程(含验证清单、升级、卸载):docs/install.md。
需要 Python 3.10+,仅标准库,零 pip 依赖,Windows / macOS / Linux 都行。也能 pip install personal-understanding 装服务端,但完整的大脑(SKILL.md + 审计面板)建议用上面的 clone。
设计思路
为什么原话优先、为什么硬闸门、为什么诚实比召回率重要、以及每一版修了什么:docs/why-it-works.md。一句话概括:它不是设计出来的框架,是一份天天在用的档案被十几轮实测事故磨出来的——分类器曾把「我堵得慌」锁在档案外、缺日期记录曾被时间衰减无声埋掉、整句口语查询曾被假切片霸榜,每一版修补都在 CHANGELOG 里有现场。
检索与词面层站在前人工作上(逐个的取舍与实测结论):SYNAPSE(ACL 2026 Findings,扩散激活门控)、HippoRAG(NeurIPS 2024,个性化 PageRank 种子权重)、Generative Agents(Stanford,时间衰减)、Qiao & Sun(ACL Y09-2003,自训练词典)、jieba(MIT,中文分词)。
项目结构
personal-understanding/
├── SKILL.md # 每轮操作契约:两档闸门、原话保真、派生闭环、三层检索
├── docs/ # how-it-works(机制)· why-it-works(动机)· install(安装)
├── references/ # 14 份字段级政策文件(捕获/检索/时间线/实体/假设/审查/备份……)
├── scripts/ # 全部实现,仅 Python 标准库
│ ├── mcp_server.py # MCP 服务端(11 个 personal_* 工具)
│ ├── preflight_context.py · capture_user_update.py · finalize_capture.py · session_check.py
│ ├── catalog_context.py · retrieve_v2.py # survey / probe / deep
│ ├── ppr.py · lexicon.py # 联想通道 / 词元净化
│ └── validate_memory.py · review_v2.py · salience_review.py · backup_archive.py
├── dashboard/ # 可视化审计面板(纯本地静态页)
├── templates/branches/ # 六大领域分支模板
├── resources/lexicon/ # jieba 词典(vendor,MIT)
├── tests/ # 180+ 回归测试 + 验收卷
└── VERSION / CHANGELOG.md # 版本与实测修补史你的数据归你
全在本地、在这个文件夹里跑。无遥测、无云调用、无第三方 embedding 服务。.gitignore 默认挡住 memory/、sources/、backups/——你给这个目录做版本管理也绝不会误提交私人档案。
许可
MIT © 2026 caix84476-netizen
Available Tools
13 toolspersonal_add_feedbackA
记录一次依赖个人记忆的回答的效果:用了哪些记忆、用户反应说明 helpful/missed/corrected。不需要用户正式打分。
Inputs: outcome (required), feedback_id (required), note, capture_id, +1 more.
personal_add_followupB
登记有上下文的待回访问题;到期后由个人理解 Skill 主动检查。
Inputs: id (required), prompt (required), context (required), due_at, +3 more.
personal_add_hypothesisA
登记候选因果解释;默认 candidate,不得冒充事实。
Inputs: id (required), claim (required), mechanism (required), scope, +5 more.
personal_add_recordA
创建派生记录。若来源是当前用户补充,必须先有 verbatim capture,并把 verbatim_refs 写入记录。活动足迹类微型记录传 tier=light(salience 0-1),完整档记录不传或传 full;记录层 tier 仅表示记录形态,不再表示调用档位。
Inputs: id (required), kind (required), summary (required), tier, +17 more.
personal_capture_user_turnA
绑定已判定为个人材料的 turn receipt,原样保存完整用户消息。没有 preflight 或 preflight 判为非个人时拒绝写入;捕获后仍必须派生并 finalize。
Inputs: text (required), turn_id (required), capture_id (required), captured_at, +2 more.
personal_catalogA
读取 v2 全局勘察。常规交互读取必须先完成当前轮次 turn preflight capture 并提供 capture_id;足迹/攻略类消息被 capture 闸门拦下时,可用 maintenance=true 做只读降级读取(有 trace 审计,不写档案),随后按足迹纪律用 tier=full 重声明补 capture。
Inputs: view, query, capture_id, maintenance.
personal_derivation_statusA
读取 capture→records 闭环状态,检查 pending、孤立捕获和链接漂移。
Inputs: no named parameters.
personal_finalize_captureA
关闭当前原话捕获的派生闭环。derived 必须已有至少一条双向链接记录;无需派生时必须写具体原因(零新增收场须写明定向查重命中的既有记录)。回答前必须调用。
Inputs: capture_id (required), disposition (required), reason.
personal_preflight_turnA
当前用户消息的强制内容预检。它持久化 turn receipt;个人经历、感受、关系、偏好、决定即使请求形式是润色/总结/看图,也会要求 capture。两档调用(2.4.0 起):内容含个人材料或活动足迹类轮次(如'正在玩某游戏')走完整档(tier=full/auto),足迹轮次受足迹纪律(写入前定向查重、恰好一条微型记录、零新增可 no-derivation 收场);纯技术/吃喝/购物等明显无关或零增值轮次不调用本工具(跳过档)。tier=light 已废弃,传入按 full 处理。
Inputs: text (required), tier, turn_id, conversation_id.
personal_resolve_followupA
关闭一条回访(answered 回访完成 / declined 用户不再跟进 / resolved 回路以其他方式关闭,含方案被取代或过时);note 必填且须具体。可选 capture_id 把本轮用户回答的原话 capture 绑到回访上(须已存在于 ledger)。
Inputs: id (required), note (required), resolution (required), capture_id.
personal_retrieveA
按 v2 事件、实体和情境卡读取 probe/deep。必须先完成当前轮次 turn preflight capture,并提供 capture_id;否则拒绝读取。
Inputs: ids, level, query, capture_id, +1 more.
personal_session_checkB
回答或声称档案已更新前的硬闸门:turn receipt + capture 闭环 + 结构 + v2 完整性。个人 turn 必须传 turn_id,缺 capture 或 finalize 会失败。
Inputs: turn_id, allow_warnings.
personal_validateA
校验 v2 结构,并明确区分失败、警告和干净。默认强制要求所有 capture 已完成派生闭环。只读。
Inputs: strict.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
The tools form a clear pipeline (preflight → capture → derive → finalize → retrieve), but the check-like family (preflight_turn, derivation_status, validate, session_check) has fuzzy boundaries that require careful reading of each dense description. Catalog vs retrieve is also a subtle distinction (global survey vs targeted retrieval). The descriptions contain enough context to disambiguate if read fully, but an agent could easily misselect among the gate/validation tools.
All tools share the personal_ prefix and 8 of 13 follow the verb_noun pattern (add_record, resolve_followup, capture_user_turn, finalize_capture). The bare verbs (retrieve, validate), noun commands (catalog), and noun-noun compounds (derivation_status, session_check) are minor deviations that remain readable and predictable within the overall imperative style.
13 tools is on the higher end of well-scoped but each maps to a distinct stage of the capture-derive-finalize-retrieve workflow, plus follow-ups, hypotheses, and feedback. The pipeline ceremony (6 capture/check tools) could potentially be consolidated, making the count feel slightly padded rather than bloated.
The capture→derive→finalize→retrieve pipeline is fully covered, and follow-ups have both add and resolve operations. However, there is no tool to update or delete a personal record (correcting a wrong memory is essential for personal memory), and hypotheses can be added but never confirmed or retired, leaving notable lifecycle gaps in the core domain.
Maintenance
Related MCP Connectors
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Persistent AI memory shared across Claude, ChatGPT, coding agents, and compatible MCP clients.
Persistent, verbatim, searchable memory for AI assistants — one memory across every MCP client.
Persistent memory layer for AI tools. Save and recall notes across Claude and other MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLocal-first MCP server that lets AI agents query their own LLM call history as a branchable DAG and offload conversation context into immutable, AES-256-GCM-encrypted capsules — restorable in full or per segment, crypto-shreddable, with RAID-style replication. 12 tools, no API keys, no cloud.122 npm3MIT
- AlicenseAqualityCmaintenanceLocal-first, source-traceable memory for AI agents — no LLM at ingest, $0 per message, zero data egress. Gives Claude Code, Cursor, and any MCP client one shared persistent memory with semantic recall, belief revision, selective forgetting, and a provenance guard that blocks acting on stale or unconfirmed memories.2318 PyPI14MIT
- AlicenseAqualityDmaintenanceA local-first, privacy-first MCP server that passively indexes personal digital activity (screenshots, clipboard, notes, downloads, links) into a local database, enabling LLMs like Claude to access your context without cloud storage.41MIT
- AlicenseBqualityBmaintenanceLocal-first, auditable memory for Codex, Claude Code, and MCP clients. It stores scoped user/project memory in SQLite or Postgres, serves read-only recall and inspection tools by default, and supports opt-in governed writeback with review and forget controls.8159 npm21MIT