rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:trammels51/dsh-pause-button
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A minimal pause/resume control beside the DSH composer, plus /pause and /resume commands.

The button is 28 × 28 px, icon-only, borderless, and inherits the composer tool-row color. It stays at 68% opacity while running, uses one low-saturation blue only when paused, pulses while a safe pause is pending, and fades to 26% when there is no running task. It sits in conversation.input.right, immediately left of Send.
agent/pre-step.There is one unavoidable cost: DSH model APIs are stateless. Resuming after an instant pause must send the conversation context again, so it costs one request's prompt tokens. The model continues from the checkpoint rather than from the beginning, and completed tool calls/steps are not repeated. Safe resume does not send an extra message.
force / stop / instant)agent.cancel({ kind: 'user' }, { keepInbox: true }) immediately: the current model stream and running tools stop now.safe / wait)agent/pre-step is held at its very start, before compaction, context snapshots, or any other listener can issue a model request.Requires DSH 0.2.2-rc.1 through 0.2.x.
From GitHub:
dsh plugin --profile web add github:trammels51/dsh-pause-button
Or from the prebuilt release tarball:
dsh plugin --profile web add https://github.com/trammels51/dsh-pause-button/releases/latest/download/dsh-pause-button.tgz
Refresh the Web page if the button does not appear after installation.
| Command | Action |
|---|---|
/pause |
Pause using the configured default (instant by default) |
/pause instant / /pause force / /pause stop |
Stop thinking and tools now, overriding the default |
/pause safe / /pause wait |
Wait for the current step, then hold the next boundary |
/pause status |
Show phase, current mode, and default mode |
/pause resume |
Same as /resume |
/resume |
Resume the paused session and any subagents held by a safe pause |
/pause force also escalates a pending safe pause instead of being a no-op.
Open Settings → General → Pause granularity:
The choice is stored in $DSH_HOME/dsh-pause.json. The composer button and bare /pause follow it; /pause safe or /pause instant overrides it once.
lib/index.js/dsh-pause/state, /pause, /resume, and /config routes.agent/pre-step listener is prepended and holds before next(), so downstream compaction or context listeners cannot run while paused.ctx.agents.isOwnedBy; a paused session gates new turns./pause and /resume through ctx.commands.lib/client.jswindow.__ModuleLoader__.load bundle using the official conversation.input.right and settings.general.item slots.react; no extra npm dependency.npm test runs both suites:
test/host.test.mjs — instant default, cancel + continuation, safe hold before next(), safe resume with no extra prompt, subagent pause/resume, new-turn gating, settings writes, origin fence, and force escalation.test/client.test.mjs — bundle exports, both slot registrations, and the pause-state source shape.running because the same turn is held. Stop/cancel releases the hold and ends that turn.webServer and agents; it is not a headless/ACP plugin.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。