Developer drops OM context-compression plugin after details vanish
A Juejin developer says his dsh-plugin-om reduced costs by 25%, token usage by 60%, and completion time by 9% in his own sessions using Claude pricing. He nevertheless stopped iterating after the implementation repeatedly lost details, noting that the modest time improvement did not offset the reliability problems. He then adopted Spec Kit and favored notes plus context compression over aggressive trimming.
The account offers a practical warning that context compression can save tokens without preserving the information an agent needs to implement a task correctly.
OM
4-5个月前 我接触了mastra 对其设计非常喜爱 尤其是里面提到的OM机制——在未压缩消息到达阈值后 由小模型进行摘要 替换被压缩的消息;在被压缩的块到达阈值后 再次摘要;模型可以通过recall进行回看 还能进行向量搜索;
不过当时我只是单纯的研究 并没有实际体验过 因为这个库bug很多 而且自带的mastracode体验极差
在dsh一出来的时候 我就创建了dsh-plugin-om 并且迭代到了两周前
有一说一 OM机制的理论非常合理,纸面数据非常好看。上下文里大头是没用的tool-result,这些东西就该剪掉;此外 由于大模型的机制 每多一个step就要为之前的所有消息付一次缓存计费 这个增长速度可是O(n^2)。而且我用实际会话测算过 费用减少了25%(按照claude的计费) token消耗减少了60% 时间减少了9%。
那为什么突然不更新了呢?因为这个插件的效果差强人意 实现需求的时候经常丢细节