跳到正文
Reddit · r/LocalLLaMA· /u/TheVoxcraft·· 21 天前精选AI 评分58

pi-optchat:用记忆树实现 Pi 无限对话,免压缩上下文

pi-optchat: never compact again - endless chat as a memory tree

来源与原文

Reddit · r/LocalLLaMA

作者:/u/TheVoxcraft

发布时间:(北京时间)

阅读原始来源 · reddit.com ↗
完整链接与内容说明

https://www.reddit.com/r/LocalLLaMA/comments/1wzh1i7/pioptchat_never_compact_again_endless_chat_as_a/

本站目前仅有 AI 导读与摘要,未展示原文正文;技术细节、代码和完整结论请查看原始来源。

AI 导读

作者 /u/TheVoxcraft 发布 Pi 扩展 pi-optchat,实现了 Victor Taelin 的 OptChat 方案:不压缩上下文,而是把每条消息记录并摘要进二叉树,每轮从全新上下文开始,带 128 KB 有界记忆视图,需要时通过 zoom/date 读取原文。每个 profile 一条无限对话,支持多 profile、后台 subagent、从 Claude Code、Codex 或 ChatGPT 导入历史,以及同 profile 第二窗口作为 subagent 直连。作者称已迁移数万条消息、数百个会话。安装命令 pi install npm:pi-optchat,仓库 https://github.com/jonaslsaa/pi-optchat。

推荐理由

作者把 Victor Taelin 的 OptChat 方案实现成 Pi 扩展,用二叉树记忆替代压缩上下文,并给出从 Claude Code 等工具迁移历史的路径。

来源:Reddit · r/LocalLLaMA · reddit.com