rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wangyz911/dsh-deferred-ask
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
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.
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.
Asia/Shanghai (UTC+8, no daylight saving):
| Window | Billing |
|---|---|
| Mon-Fri 09:00–12:00 and 14:00–18:00 | peak (full price) |
| every other hour, including weekends | off-peak (peak × 0.5) |
| Chinese public holidays, all day | off-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.
Ctrl+Enter, or click Defer to off-peak. The queue lives in localStorage (dsh.deferredAsk.queue.v1) and survives reloads.cwd on the Host's session summaries, and finally from the folder pinned in the panel, which always wins."path": "") to force delivery into the current session; choose Automatic to release the pin.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.
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.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.{"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.useWorkspaces, useSession) are typed <S>(selector, equals?) => S; calling them without a selector throws, which is why the folder is not read through them.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.Not yet chosen. Add a LICENSE file (MIT is the usual default for DSH plugins) before publishing the package.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。