Will
Will
## Summary - 现状:`AutoRecall` 在每个真实用户回合都会重跑——每次都重新读取全部记忆文件、解析 frontmatter、分词计数。这些工作**与 query 完全无关**,事实文件没变却重复计算,是每回合固定的 CPU+IO 开销。 - 本 PR:新增 `recallDocsFor`,按 store 目录对(Dir+GlobalDir)缓存构建好的召回文档(text / term counts / length),用**文件级指纹**(name + size + mtime)失效——`ReadDir` + `stat` 远比重新读盘+重新分词便宜,且能捕获**就地编辑**(目录 mtime 捕获不到的)。...
## Summary - 当前行为:`remember` 工具 / 桌面保存路径保存记忆时,**完整正文**会被注入下一轮用户回合的 ``(turn-tail)。保存一条 6000 runes 的最大记忆,下一轮就多花 ~4k token——而内容要么是模型自己刚写的(remember 工具),要么一个 `memory` read 就能按需读到(桌面保存)。 - 本 PR:新增 `TrimMemoryNoteBody`(`internal/memory/queue.go`),**只对超长正文(>400 runes)**截断到 400 runes + 省略号,CJK 按 rune 安全切分;短正文保持原有全文注入(行为不变,现有测试未动)。 -...
**AI assistance and human ownership** - AI tool(s) used: DeepSeek Harness (agent) - autonomy level: agent - what you personally verified: I read the release middleware, the privacy triggers and...
`run_cache_server()` and the HTTP lifespan stop the event bus before closing the request server and cache engine. Engine teardown publishes final `MP_REQUEST_END` / session-destroy events, but the bus is already...
`PinMonitor._force_unpin_timeout_object()` reads `pin_count` under the object lock, drops the lock, then loops: ```python while memory_obj.meta.pin_count > 0: memory_obj.unpin()