DSH Plugins Marketplace

DSH Plugins

Plugins

/

Workflow & Automation

/

dsh-deferred-ask

d

dsh-deferred-ask

Manifest valid

Queues questions written in the composer and sends them only while DeepSeek bills at off-peak rates. Delivery is driven by a 30-second clock check rather than a pre-scheduled trigger, so a question mi

UI (client)hasBundlePatch
A queued question waiting under the composer, with the off-peak moon

Deferred ask

English | 中文

Queue a question from the composer and let DSH send it only while DeepSeek bills at off-peak rates — half the peak price.

Write the question you would otherwise ask now, press Ctrl+Enter, and it waits. When the off-peak window opens, the question is delivered on its own, so nothing is left to remember at 22:00.

Why it waits instead of scheduling ahead

DSH replays a scheduled task's missed occurrence on the next launch, and only the latest one. If the trigger were pinned at enqueue time (timing: {kind: 'at'}), that catch-up delivery could easily land inside a peak window and bill at full price.

So this plugin inverts the order: every 30 seconds it checks the clock, and only once the clock really is off-peak does it create a one-shot schedule that fires five seconds later. A question queued at noon on Tuesday is therefore delivered at 12:00:05, and one queued at 17:59 at 18:00:05.

Pricing window

Asia/Shanghai (UTC+8, no daylight saving):

WindowBilling
Mon-Fri 09:00–12:00 and 14:00–18:00peak (full price)
every other hour, including weekendsoff-peak (peak × 0.5)
Chinese public holidays, all dayoff-peak — but see the limit below

No holiday calendar is bundled, so a public holiday is treated as an ordinary weekday: the question goes out after 18:00 rather than immediately, which is later than the cheapest moment but never more expensive.

Usage

  • Queue: Ctrl+Enter, or click Defer to off-peak. The queue lives in localStorage (dsh.deferredAsk.queue.v1) and survives reloads.
  • Delivery: within 30 seconds of the window opening. The default target is a new session: the folder is resolved from the current session's workspace, then from cwd on the Host's session summaries, and finally from the folder pinned in the panel, which always wins.
  • Follow-up in place: choose Continue in this session in the panel (stored as "path": "") to force delivery into the current session; choose Automatic to release the pin.
  • Retry: a failed delivery keeps the item and retries with exponential backoff (from 5 minutes up to 1 hour), showing the error text on the item. An item is never delivered twice concurrently.
  • Send now: delivers immediately at peak price, useful for testing or for changing your mind.
  • Limit: 50 queued items.

Limits

  • The discount applies to per-token billing only; a flat subscription sees no change.
  • DSH must be running when the window opens. A closed app delivers on the next tick after it starts.
  • A queued question is billed for its own tokens: moving it to off-peak halves the unit price, not the token count. Because it usually starts a fresh session, write it as a self-contained question rather than "continuing from that bug".
  • The 30-second ticker only runs while DSH is open; nothing is scheduled into the OS.

Install

dsh plugin --profile <profile> add dsh-deferred-ask

For a local checkout, add it as a link instead:

dsh plugin --profile <profile> add link:C:/path/to/dsh-deferred-ask

The bundle then appears in Plugins as Deferred ask; the bar shows up under the composer of a conversation.

Implementation notes

For DSH plugin authors, the parts that are easy to get wrong:

  • inject must list nested services in full — ['slots', 'locale', 'remote', 'remote.schedule', 'remote.session']. Writing only remote fails later with without inject when remote.schedule is read.
  • The working folder has three sources: the workspaces snapshot (items[].sessionIds plus WorkspaceView.path), ctx.remote.session.list()'s SessionSummary.cwd, and the pinned folder in localStorage (dsh.deferredAsk.target.v1). Either of the first two can be empty for some sessions, so the third exists.
  • The picker has three states: no key means automatic, {"path": ""} means follow the current session (overriding automatic resolution), and {"path": "D:\\..."} pins a folder. An early version read the empty string as "no pin" and kept opening new sessions.
  • The selector hooks offered for that slot (useWorkspaces, useSession) are typed <S>(selector, equals?) => S; calling them without a selector throws, which is why the folder is not read through them.
  • The panel mounts at conversation.composer.dock, with a floating fallback at shell.overlay for when the dock is unavailable. shell.overlay runs in root scope with no sessionId in its props, so Continue in this session is refused there with a message rather than silently opening a new session.

License

Not yet chosen. Add a LICENSE file (MIT is the usual default for DSH plugins) before publishing the package.

Comments

Loading…

Similar plugins

dsh-offpeak

Holds DeepSeek model calls for the rest of each peak-hour window you configure instead of sending them, so they are billed at off-peak rates; also pauses active goals while it waits and shows the acco

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-offpeak

by xiangrikuibaize

DSH 输入框下方的计费时段与余额药丸:峰价/谷价(含中国法定节假日与周末规则)、切换倒计时、账户余额(桌面端账号优先,API Key 兜底)

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 4

↓ 373/wk

NOASSERTION

JavaScript

Oct 31, 2026

dsh plugin --profile web add dsh-tide-badge

by stealthpro

Shows the signed-in DeepSeek account balance and the current peak or off-peak billing window as one pill in the shipped composer stats dock; clicking the pill opens a popover with each wallet, any bon

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 13, 2026

dsh plugin --profile web add @stealthpro/dsh-composer-balance

Task queue view for DeepSeek Harness: record items per project, set priorities, send them to the conversation with one click or automatically by priority.

Workflow & AutomationManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-task-queue

by DanZai233

Send one-liner questions to DeepSeek's web chat instead of burning your DSH context. Composer button + global hotkey palette, with history.

UI & ExperienceDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

Sep 24, 2026

dsh plugin --profile web add dsh-webask

DeepSeek 峰谷价感知的任务执行器:平价时段跑 flash 任务批,峰价前挂定时任务推迟到下一个平价时段执行。

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-peak-runner