rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Drifter-yh/dsh-think-summary
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness plugin that turns each reasoning step into one or two plain sentences, so a 30-minute long-horizon run stays skimmable. The full chain of thought is still one click away.
Community plugin. Not affiliated with or maintained by DeepSeek AI.
Harness renders the model's raw chain of thought. In a long task that means:
Codex feels different because it shows a summary that the model itself produces (OpenAI's reasoning-summary channel). DeepSeek has no such channel — the only way to get that experience is to generate the summary locally, one extra cheap call per step.
Before:
› 思考 The user reports a UI issue after the latest changes: a message shows raw
evidence (the fallback) at the front, trace panel shows 24 tools…
After:
› 思考 · 进度
我读完了插件的两半代码,确认摘要走的是本地端点;接下来改客户端的额度逻辑。
Click the row to read the original reasoning, rendered as Markdown exactly as before.
To get the Codex-like flow — a line of progress as each step settles, with no expanding —
set collapseTiming: next-input for ui-chat in your profile's cordis.patch.yml. The
latest turn then stays open until your next message.
dsh plugin --profile <your-profile> add @drifter-yh/dsh-think-summary
Some builds also expose a plugin registry under Settings → Plugins; otherwise use the command above.
Restart Harness once after installing: the host half is loaded as a forked module and cannot be hot-swapped.
Configuration lives in your profile's cordis.patch.yml (or the plugin's config panel):
- id: think-summary
name: '@drifter-yh/dsh-think-summary'
config:
provider: opencode-go # any registered LLM route
model: deepseek-v4.1-flash # a cheap, fast model is the point
enabled: true # master switch; false = no model calls at all
maxOutputTokens: 2000 # budget for (reasoning + answer) tokens
maxInputChars: 6000 # longer reasoning is clamped head+tail
maxCallsPerSession: 300 # per-session cost ceiling
maxCallsTotal: 600 # per-process cost ceiling
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Master switch. false keeps the UI but makes no model calls. |
provider / model |
opencode-go / deepseek-v4.1-flash |
Route used for summarising. |
maxInputChars |
6000 |
Reasoning is clamped head+tail beyond this. |
maxOutputTokens |
2000 |
Total completion budget. |
timeoutMs |
25000 |
Per-call timeout. |
minChars |
160 |
Steps shorter than this are not worth a call. |
maxCallsPerSession / maxCallsTotal |
300 / 600 |
Hard cost ceilings. |
cacheFile |
~/.dsh/storages/think-summary/cache.json |
Persisted cache. |
Emergency switch: localStorage.setItem('dsh-think-summary.enabled', 'false') in the
browser disables requests for that page without touching the profile.
browser host process
┌───────────────────────────┐ POST /summarize ┌──────────────────────────────┐
│ shadows assistant-step │ ──────────────────▶ │ ctx.llm.stream() │
│ collapsed → progress line │ ◀────────────────── │ provider/model from config │
│ expanded → raw reasoning │ 1–2 sentences │ content-hash cache + budget │
└───────────────────────────┘ └──────────────────────────────┘
conversation.chat.node at priority: -1 for assistant-step,
filtering blocks exactly like the shipped renderer (groupPart rules, text /
reasoning / image; tool calls stay separate nodes).One cheap call per settled step. On deepseek-v4.1-flash a typical step takes 3–20 s
and a few thousand input tokens; the answer itself is ~3 short lines. A 40-step run is
well under one unit of currency on most routes — but this is a paid feature, so the
budgets above exist on purpose.
Rows older than three hours are not backfilled; opening an old session does not trigger a wave of calls.
The client also rate-limits itself with a sliding window of 60 requests per 10 minutes.
When the window is full the row shows 摘要已暂停 (summary paused) and recovers
automatically once it slides — replacing the old lifetime cap of 240 requests per page,
which a long-lived desktop window could exhaust permanently. Host-side skipped answers
(budget exhausted / disabled) suppress that text for ten minutes, so scrolling a row in and
out no longer re-hits the endpoint.
~/.dsh/storages/think-summary/cache.json./dsh-think-summary/*) accepts loopback connections only, caps
request bodies at 512 KB, requires POST for summarising, and runs at most two model
calls at a time.>=0.2.2-rc.1 <0.2.3-0; verified on 0.2.2-rc.1 using the desktop profile (the same web client Harness serves).assistant-step renderer. A Harness release that
changes the node contract can break rendering; the renderer is wrapped in an error
boundary that falls back to plain text.@path) inside assistant text render as plain text for now.low/high/max, so
maxOutputTokens must leave room for thinking. That is why the default is 2000.assistant-step nodes are shadowed.| Symptom | Check |
|---|---|
| No bullets anywhere | Is the plugin enabled? curl http://127.0.0.1:<port>/dsh-think-summary/status |
Row shows 摘要已暂停 |
Hover for the reason: rate window (wait for it to slide) or budget (raise the host ceilings) |
skipped: budget |
Raise maxCallsPerSession / maxCallsTotal |
摘要输出超长 in the host log |
Raise maxOutputTokens or lower maxInputChars |
| Summaries stop after a Harness update | Open an issue with the Harness version and the console error |
node --check index.js
node --check client.js
npm pack --dry-run
Releases are published from CI on tag push (.github/workflows/release.yml) with npm
provenance; it needs an NPM_TOKEN repository secret.
The host half is a Cordis plugin (apply(ctx, config)); the client half is an ESM
module registered through window.__ModuleLoader__.load.
MIT — see LICENSE. Third-party notices: THIRD_PARTY_NOTICES.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。