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

作者开源 opencode-leaner 插件,将 opencode 上下文从约 10.3k token 裁剪至约 1.3k

While I was investigating why my opencode context was large I created the opencoder-leaner to try prune the context (minimal prune in the tools, agent pi-like, bash only)

来源与原文

Reddit · r/LocalLLaMA

作者:/u/laerciosantana

发布时间:(北京时间)

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

https://www.reddit.com/r/LocalLLaMA/comments/1wyl6j3/while_i_was_investigating_why_my_opencode_context/

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

AI 导读

/u/laerciosantana 为排查 opencode 上下文过大问题开发了 opencode-leaner 插件并开源在 GitHub。

推荐理由

作者给出 opencode 自定义 agent 裁剪上下文的具体配置构成和前后 token 数字,读者可复用到本地小上下文模型场景。

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