[deepseek-harness adapter] Release plan, reduction/stable-prefix porting, and community coordination for entry-level context reduction
Hi @zxlzr, cc @wwwaken @jgx15638-creator
We are the maintainers of dsh-context-compression-improved, an independent DSH plugin for entry-level context compression. We have been following LightRSI closely (up to 5fa207e, incl. #65, #66, #68, #73) and track upstream changes with a local sentinel hook. We'd love to align roadmaps instead of working in parallel blindly.
1. What we have shipped (DSH-side, published-ready)
All capabilities are gated behind a tokenpilot-inspired preset (opt-in, off by default), each with dedicated test coverage, plus a golden-baseline spec that freezes resolvePolicy output for all legacy profiles byte-for-byte:
- Recovery closed-loop:
isRecoveryExempt+ per-session persistent exemption set (no compress→recover→re-compress thrash) no-net-savingsguard on the planning path (rejects replacements that are not strictly smaller)- Content-hash tool-result dedup (SHA-256 session index → pointer placeholder → retrieval tool)
- Compaction summary locator ("Exact Sources" block appended after
compaction/end, idempotent, fail-open) - Read-state tracking (read superseded by later same-path write/edit → placeholder)
- Omitted-line census on historical placeholders (
128 lines omitted (3 error, 5 warn, 120 info)) - Zero-shot estimator, three channels (rule-only / host LLM / direct OpenAI-compatible endpoint), fire-and-forget, exponential backoff, verdicts only extend
supersededdecisions — never blocking - Settings panel for the estimator (write-only API key, auto-fallback to the rule channel)
2. Our roadmap
- Review mode (human-gated variant, in design): an interactive review layer for edge-payback / high-impact proposals — a non-blocking web overlay in the DSH webui, a persisted review queue (seq/digest/counts only, no message content, aligned with your Cleaner's persistence discipline), and turn-level batched application with digest-frozen validation and receipts. The benefit model operationalizes the paper's cost function (Eq. 2):
expectedSaving = α·R·turns − (1−α)·tail-refill, withpaybackTurnsdeciding auto-apply vs. review vs. drop. - Batch-gated estimator runs (every N turns with an
expectedRemainingTurnssignal, rather than per-pressure-pass) and a frequency-based ingestion gate - Stable-prefix (mask + relocation of volatile fields) and prefix fingerprint / cache-hit diagnostics: blocked on a host-side request-assembly hook (equivalent of
prepareBeforeCall); planned as a separate effort once available - Evaluating task-level lifecycle eviction, where your DSH adapter already leads
3. Questions
- What is the release plan for
@lightrsi/deepseek-harness-adapter0.1.0-beta.1? It is currently not visible on npm and not listed in the DSH plugin marketplace. - Are reduction / stable-prefix (currently only in the openclaw adapter) planned to be ported to the deepseek-harness adapter?
- Would community contributions on the DSH side beyond eviction (entry-level reduction, and a webui-native review layer complementing the TTY Cleaner) be welcome? If both plugins end up installed together, both hook
agent/pre-step— we'd like to agree on an ordering convention (task-level eviction vs. entry-level reduction), even if both paths are fail-open. Separately: would you be open to aligning on a shared plan/receipt schema, so clean receipts from both tools stay auditable in one place?
Happy to share more implementation details or benchmarks if useful. Thanks for the great work on the paper and the adapters!
Thanks for the detailed write-up. Your DSH-side work, especially the recovery loop, review-mode design, and plan/receipt persistence discipline, looks highly complementary to our lifecycle-aware eviction path. We would be very happy to align on the DSH roadmap, including hook ordering, the boundary between entry-level reduction and task-level eviction, and a shared auditable plan/receipt schema. It may be easier to discuss the technical details synchronously. Would you be open to connecting on WeChat? My WeChat ID is: Blue18067792208. We can then set up a group with the relevant maintainers.