AnyBot/docs
王性驊 e23f19727e feat: 摘要照段落寫、太短再要一次、使用者原話和背景指令留在摘要下面;/context、/compact
計畫 R4(grok-build 的分段摘要提示、摘要太短重做、摘要後提醒還在跑的工作)。

- agent::summarize(對話太長時兩種整理都用它):提示照段落(使用者要的、已經決定的、做過的事和結果、還沒完成的、注意);一大段對話整理得不到 200 字就再要一次,取長的那份。with_what_must_stay:AnyBot 自己在摘要下面附上使用者最近 12 句原話(每句最多 400 字)和這個 Bot 還在跑的背景指令(tools::running_for)——這些不靠模型,不會被摘要弄丟。
- /context:這個對話(模型看得到的部分)約幾 token、模型可讀多少、幾 %。/compact:現在就整理(Bot 在做事時不行),在背景用快速模型做,好了留一行;聊天記錄照舊完整,模型從摘要開始讀。電腦、螢幕、手機都能打;/ 清單、手機的指令清單、功能地圖 chat.md、FEATURES.md。
- 兩個舊測試的假摘要改長一點(太短的會被要求再寫一次);一個斷言改成「被收起的回答不見了、使用者的原話留著」。

已驗證:cargo test 582 全過、clippy -D warnings 過。新測試:第一次摘要太短會再要一次並用長的那份、原話留最近 12 句、提示有段落;從聊天打 /context 有 token 和提示、/compact 用假模型整理好,模型看得到的部分變短、聊天沒有少。
未驗證:真的模型照段落寫的品質。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 12:08:20 +08:00
..
demo One computer-and-phone still, and the README stops advertising its style guide 2026-11-10 14:21:06 +08:00
en version_0_1_1-alpha 2026-11-11 16:19:06 +08:00
feature-map feat: 摘要照段落寫、太短再要一次、使用者原話和背景指令留在摘要下面;/context、/compact 2026-11-17 12:08:20 +08:00
specs Rewrite decompilation comments as behaviour specs; move reverse-engineering docs out of the repo; drop third-party marks from UI strings (i18n tables synced) 2026-11-09 16:37:33 +08:00
architecture.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
install.md design: Bot 的電腦的桌面也換成思源黑體(第 14 版),拿掉粉圓 2026-11-16 22:18:32 +08:00
memory.md 記憶: each bot keeps its own, remembers like a person, and decides for itself 2026-11-11 09:35:59 +08:00
multi-device.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
plan-2026-11-computer-use.md Plan: smoother computer use and box logins that survive a rebuild 2026-11-06 22:06:49 +08:00
plan-2026-11-engineering.md feat: 摘要照段落寫、太短再要一次、使用者原話和背景指令留在摘要下面;/context、/compact 2026-11-17 12:08:20 +08:00
plan-2026-11-improvements.md 記憶: a page to see it, a few lines picked while typing, a local model 2026-11-11 07:46:50 +08:00
protocol.md 傳送: a file or a few words from any device of the account to any other 2026-11-11 10:04:13 +08:00
readme-style.md Readmes: the shape top-starred projects use, and no more overflow 2026-11-10 14:14:27 +08:00
release.md make, README and docs: build and install from source 2026-11-04 22:16:45 +08:00
skills.md version_0_1_1-alpha 2026-11-11 16:19:06 +08:00