lcc:不靠摘要压缩 Claude Code 会话上下文,作者开源并公布实测数据
📊 核心数据与事实(2026-10-24):
作者发布开源工具 lcc(local-context-compiler),用规则剔除旧工具输出并保留原文,被移除内容可通过 recall 取回,替代 Claude Code 的 /compact 摘要。
• 原文实测切片:Across all 299 of my long sessions (100+ messages each, 36.3 M tokens) the median cut was 21.8% (middle half 15% to 31%, best 65%), with 0 messages lost ( python benchmarks/research/long_sessions.py , 2026-10-23, main ).
• 原文实测切片:Retention AUC over drop budgets of 0–60% of candidate tokens: ranker recall AUC all-kept AUC specialist-v3 0.899 0.434 mechanical 0.829 0.238 recency 0.818 0.306 bm25 0.803 0.270 random 0.689 0.138 The labels are next-action evidence from one…
• 原文实测切片:raw ranking specialist-v3 mechanical bm25 recency cases with every must-keep block kept at a 30 / 50 / 70% cut (of 9) 8 / 7 / 7 9 / 9 / 9 9 / 9 / 7 8 / 6 / 3 full pass, default settings must-keep kept 302 blocks 1,138 blocks peak RSS…
💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。
📅 日期:2026-10-24(北京时间)
📰 信息源出处:Hacker News Show HN · lookadev(github.com)
🔗 原文:https://github.com/lucasmartins-ai/lcc
📡 归档:https://billionare.me/items/kslfbebvkuc6z4fvl73xw26xa
社媒成稿工作台 · 一键复制
飞书同步推送 · 含数据/日期/出处/启发