Configuring billion-context-dsh
DeepSeek Harness loads the bundle into a profile such as web; the bundle applies the compaction-acp composition entry at startup. Custom deployments can add the entry to ~/.dsh/profiles/web/cordis.patch.yml:
| Key |
Behaviour |
modelContextLimit |
Optional model context limit. If omitted, the plugin detects the model window and falls back to 128000. |
prompts |
Optional prompt overrides for nudge text, context decomposition, growth and batch notices, tier distillation, range tables, the ACP system-prompt section and tool descriptions. |
Prompt templates accept documented named placeholders such as {pct}, {philosophy} and {surface}. Placeholder spelling is checked during construction and causes startup failure if invalid. An empty string or null has the documented slot-specific meaning.
Commands provided by billion-context-dsh
DeepSeek Harness exposes four model tools:
compress replaces a startSeq–endSeq range with the model's summary. Boundaries are balanced to tool-call/result pairs. Compressing an existing summary creates tiered distillation.
decompress restores a compressed block as read-only content. It accepts an acp_status block reference such as bN or a compaction id.
search_context searches block summaries and hidden source text, then links matches back to their blocks.
acp_status reports visible tool, text and summary proportions, the compression ledger, nudge decision and active checkpoint bN → seq mappings. It supports scope, view, tool, sort and limit filters.
The bundle also adds the /acp command.
How billion-context-dsh behaves
DeepSeek Harness derives each model request from the append-only session surface. The agent/pre-step hook injects a nudge based on context pressure; compactIfNeeded returns null, so the policy does not force an automatic summary. Block state is held in memory and rebuilt from the session log, with no sidecar file. Shadowed-token accounting uses DeepSeek Harness's ctx.tokenMeter.measure when available, with the mirrored fallback in src/host-tokens.ts.
Requirements and limits
Enable only one provider of ctx.compaction in each realm. For global use, disable compaction-basic before inserting compaction-acp; for a single agent preset, disable or remove dsh-compaction-basic in that realm. The README identifies version v0.2.11 as a test release and advises against production use. It does not document an operating-system restriction or environment variables.
Written from the project's own documentation and kept in sync with it. Where the two disagree, the source is authoritative — read the README on GitHub