全部插件

DSH / BUNDLE / BUNDLES

dsh-history-fold

v0.8.2mili1360 / dsh-history-fold75432edf24

可安装组合包组合包与其他模块社区 · Topic 自动分析

概览

dsh-history-fold

Fold the oldest part of a DSH session's surface history into one message that points at a lossless local archive, so a long session stops paying for its whole history on every request.

README / ZH

插件文档

目录摘要

Fold the oldest part of a DSH session's surface history into one message that points at a lossless local archive, so a long session stops paying for its whole history on every request.

dsh.pub 核对固定版本的组合包契约、运行时事实与分发语义;完整 README 请查看源仓库。

在 GitHub 阅读完整 README

LIMITATIONS

已知限制

- Tuned and measured against DeepSeek Harness on Windows with a 1,000,000-token context window. The mechanism is adapter-agnostic; the shipped absolute fallbacks are not — which is what the ratios are for. When the window resolves, the thresholds scale with it. - **Whether `ctx.llm` is really reachable from this plugin's context has not been confirmed against a live DSH.** The lookup mirrors `resolveMeter()` (direct property, then `ctx.reflect.get`, then the agent's own composed context) and never throws, but if no path works in your build the plugin logs `triggerSource: "default"` and behaves exactly as it did before this feature existed. - Token counts come from DSH's `tokenMeter`. If it is unavailable the plugin does nothing — by design. - Folding reduces what the model sees. The archive keeps it recoverable, but reading it back costs a `rg` round-trip. - It does not (yet) coordinate with `dsh-compaction-basic`; it simply stays below its trigger.