dvaJi/dsh-codex-context ↗★ 0

dsh-codex-context

Codex-style lossless-retrieval context manager for the DeepSeek Harness: token-budgeted sliding window, persistent working notes, and cold-history search over the append-only session log 适合长会话需控制上下文开销的用户,可替换默认压缩后端。

패키지
dsh-codex-context
호환성
미검증
Harness peer 범위
*
Cordis peer 범위
*
버전
0.1.2
라이선스
MIT
최근 업데이트
2026. 9. 6.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dvaJi/dsh-codex-context

Configuration

Everything is a config field; all values are optional (schema defaults shown). Add a config: block to the bundle row (codex-context) in your profile's cordis.patch.yml — a patch replaces the row's whole config, so restate every key you care about.

FieldDefaultMeaning
autotrueAutomatic windowing (agent/pre-step pressure) and overflow recovery (agent/request-error).
targetActiveTokens35000Token budget for the active window; the backwards walk shadows older nodes until the tail fits. When the routed model's context window is smaller than targetActiveTokens / emergencyThresholdRatio, the effective budget is capped at emergencyThresholdRatio × contextWindow so windowing runs pre-emptively instead of waiting for an overflow.
minRetainedNodes6Recent surface nodes always retained verbatim.
maxExcerptLength1000Character budget per match-centered search excerpt.
searchDefaultLimit3search_history result cap when the model omits limit.
searchMaxScanEvents20000Safety cap on log events scanned per search call.
emergencyThresholdRatio0.85Pressure fraction of the context window above which the engine writes a real model summary (the parachute).
emergencySummarizationtrueMaster switch for the parachute; false keeps windowing model-free at all times.
summarizationProvider / summarizationModel''Fixed route for the emergency summarizer; empty uses the routed request target, then AgentOptions. Configure both as a pair (both empty or both set) or the plugin refuses to load.
emergencyMaxTokens8192Output cap for the emergency summarization request.
maxOverflowRetries1Extra windowing attempts after a provider-confirmed context overflow.
notesHinthint textLine appended under the pinned notes snapshot; empty disables it.
retrievalHinthint textGuidance sentence embedded in every window checkpoint.

Invalid values (ratios outside (0, 1], non-positive budgets) fail the plugin at load.