trove
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesetrove
trove
The hosted memory substrate. The Obsidian vault is a projection; this graph is the queryable truth for agents.
Trove (repo , hosted at , MCP server ) holds the knowledge base as an evidence graph: typed nodes, typed edges with bitemporal lifecycle, full source documents, and an append-only audit log. Every write is attributed; every semantic statement can cite its evidence span.
~/dev/trovehttps://mytrove.introve托管式记忆底层载体。Obsidian 库是其投影;该图谱是Agent可查询的真实数据源。
Trove(代码库路径,托管于,MCP服务器)将知识库存储为证据图谱:包含类型化节点、带双时态生命周期的类型化边、完整源文档,以及仅追加的审计日志。每一次写入都有归属;每一条语义陈述都可引用其证据片段。
~/dev/trovehttps://mytrove.introveThe tool surface (one verb each, no overlaps)
工具界面(每个工具对应单一动词,无功能重叠)
| Tool | Use when |
|---|---|
| First for exact strings — ticket id, error text, config key. Regex over notes + sources. |
| Full note by name/id, or raw source. After grep/recall when the brief is thin. |
| Open questions only ("how do we handle refunds?"). Budgeted brief (default 8000), not a full dump. |
| Saving a fact/decision/gotcha, new or changed. One write door: revises on exact title/slug match, else creates. Check the returned |
| Relating two memories. Pass |
| Retiring beliefs. Query mode previews (dryRun) first; explicit edgeIds apply immediately. |
| Storing long-form raw material (transcript, page, file) as evidence. Then |
| Attaching meaning to evidence without minting a belief. |
| Subgraphs, renders, saved views (curator flows). |
| Operator plumbing (admin credentials only). |
Retrieval routing (match Scribe): exact string → → optional · known slug → · open question → → if the top atom is right but incomplete.
grepreadreadrecallreadremember vs ingest: writes a belief — a small distilled atom that recall ranks. stores evidence — a whole document split into citable text units that never competes as a belief. Pipeline: ingest the transcript → remember the few facts worth believing → connect them.
rememberingestSession loop (not end-of-day only): boot with load → work → mid-session when a decision/fact/gotcha crystallises → hubs → supersede corrections → close with 3–8 small linked atoms. Never one mega "session summary" node.
rememberconnectMCP-only clients: the same doctrine ships as MCP server , resource , prompts / / , and tool descriptions — skills are optional sugar for Claude Code.
instructionstrove://doctrinetrove-recalltrove-remembertrove-session| 工具 | 使用场景 |
|---|---|
| 优先用于精确字符串检索——如工单ID、错误文本、配置键。对笔记及源文件执行正则匹配。 |
| 通过名称/ID读取完整笔记,或读取原始源文件。当grep/recall返回的摘要信息不足时使用。 |
| 仅用于开放式问题(如"我们如何处理退款?")。返回内容有长度限制(默认8000字符),不会返回完整数据。 |
| 保存事实/决策/注意事项,无论是新增还是更新。仅通过单一入口写入:若标题/slug完全匹配则更新,否则创建新条目。检查返回的 |
| 关联两个记忆节点。传入 |
| 停用旧的关联信念。查询模式会先预览(dryRun);指定明确的edgeIds会立即生效。 |
| 将长格式原始素材(转录文本、网页、文件)存储为证据。之后可使用 |
| 为证据添加语义标注,无需生成新的关联信念。 |
| 子图谱、渲染视图、已保存视图(管理员流程)。 |
| 运维工具(仅管理员权限可用)。 |
检索路由(匹配Scribe): 精确字符串→→可选 · 已知slug→ · 开放式问题→→若顶部原子信息正确但不完整则调用。
grepreadreadrecallreadremember vs ingest: 写入的是关联信念——经过提炼的小型原子单元,会被recall排序。存储的是证据——完整文档会被拆分为可引用的文本单元,不会作为关联信念参与排序。流程:导入转录文本→记录值得留存的少量事实→关联相关节点。
rememberingest会话循环(不仅限于会话结束时): 启动时加载记忆→开展工作→当决策/事实/注意事项明确时,在会话中途调用→关联核心节点→替换修正内容→结束时生成3–8个小型关联原子节点。切勿创建单个巨型"会话总结"节点。
remember仅MCP客户端: 相同的规则以MCP服务器、资源、提示词//及工具描述的形式提供;技能仅为Claude Code的可选扩展。
instructionstrove://doctrinetrove-recalltrove-remembertrove-sessionRouting
路由规则
| Situation | Skill |
|---|---|
| Question about prior work, systems, preferences, decisions | |
| Session produced decisions/facts worth keeping, or a known fact changed | |
| A specific source (URL, file, paste) should be indexed | |
| Health check / housekeeping | |
| 场景 | 技能 |
|---|---|
| 涉及过往工作、系统、偏好、决策的问题 | |
| 会话产生了值得留存的决策/事实,或已知事实发生变更 | |
| 需要索引特定源(URL、文件、粘贴内容) | |
| 健康检查/运维整理 | |
Invariants (all skills)
通用规则(所有技能)
- Recall before re-deriving; grep before recall when the query is an exact string; read for full runbooks when you know the slug.
- Beliefs change by supersession, never deletion. replaces;
connect({supersedesEdgeId})retires. History stays queryable (forgetwithneighborhood/asOf).includeExpired - No memory without provenance. Cite /
sourceIdevidence, or state agent-inference explicitly in the summary.textUnitId - Trust remember's dedupe, verify its choice. It only merges on exact title/slug; review in the response and re-call with
similarwhen it should have merged.slug - Two surfaces, one memory. Human-readable syntheses also go to the Scribe vault (plugin commands edit the vault directly); the vault importer reconciles vault → graph. Don't fork the two.
/scribe-*
- 先调取记忆再重新推导;当查询为精确字符串时,先使用grep再调用recall;当已知slug时,使用read获取完整操作手册。
- 关联信念通过替换而非删除进行变更。 使用替换;使用
connect({supersedesEdgeId})停用。历史记录仍可查询(通过forget并指定neighborhood/asOf参数)。includeExpired - 无来源不记记忆。 需引用/
sourceId证据,或在摘要中明确说明是Agent推导的内容。textUnitId - 信任remember的去重功能,但需验证其选择。 仅在标题/slug完全匹配时才会合并;查看返回结果中的列表,若应合并却未合并,可指定
similar重新调用。slug - 两个界面,同一记忆源。 人类可读的合成内容同时同步至Scribe库(插件命令可直接编辑该库);库导入工具会同步库与图谱内容。请勿将两者分开维护。
/scribe-*
Operations
运维操作
Hosted MCP: with a API key or service token. Local dev: ; tokens in (); health . Vault import () targets — local by default; set it explicitly for production.
https://mytrove.in/mcptrove_*cd ~/dev/trove && docker compose up -d postgres && npm start.envTROVE_SERVICE_TOKENScurl localhost:8787/healthnpm run import:vaultDATABASE_URL托管MCP:访问,需使用 API密钥或服务令牌。本地开发:执行;令牌存储在文件的字段中;健康检查执行。库导入()目标为——默认指向本地数据库;如需导入生产环境,需显式指定该参数。
https://mytrove.in/mcptrove_*cd ~/dev/trove && docker compose up -d postgres && npm start.envTROVE_SERVICE_TOKENScurl localhost:8787/healthnpm run import:vaultDATABASE_URL