rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:StephenXiong001/dsh-task-mode-switch
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Switch a DeepSeek Harness task's Agent preset (mode) from the composer, including a task that has already started, plus AUTO, which picks one from the task text.
在 DeepSeek Harness 输入框工具栏切换任务的 Agent 模式(预设),包括已经在进行中的旧任务;另有 AUTO 按任务内容自动选择。
dsh plugin --profile desktop add dsh-task-mode-switch # DSH Desktop
dsh plugin --profile web add dsh-task-mode-switch # dsh web
Or straight from the repository (the package sits at its root):
dsh plugin --profile desktop add https://github.com/StephenXiong001/dsh-task-mode-switch # DSH Desktop
dsh plugin --profile web add https://github.com/StephenXiong001/dsh-task-mode-switch # dsh web
Restart DSH, then open the + / tool row at the left of the composer: a mode control sits beside the permission and plan controls.
| 选择 | preset | 说明 |
|---|---|---|
| 标准模式 / Standard | standard |
Everyday tasks: files, commands, search, subagents |
| PTC 模式 / PTC | ptc |
Batches tool calls; bulk filtering, dedupe, aggregation |
| 极简模式 / Minimal | minimal |
Smallest tool set, for comparisons and baselines |
| 创造模式 / Creator | cordis |
Extends DSH: plugins, presets, skills |
| AUTO | — | Picks one of the above from the composer draft (keyword heuristic, local, no model call) |
Clicking a mode switches the task you are looking at, not just the default for new tasks. A separate menu row (「新任务默认模式 ▸」/ "Default for new tasks") writes the default for tasks created later, so the two actions can never be confused. While a turn is running the control refuses with an explanation; it never re-binds a composition mid-step.
New presets need no plugin update. The menu is drawn from the live roster: the four presets above keep their shipped icons and hints, and any additional preset a newer DSH registers is appended automatically, labeled with the name the preset publishes (or its id). Opening the menu re-reads the roster, so a preset added while the page is open shows up on the next click. AUTO still classifies only the four presets above; a preset it does not know is left alone.
The same switch is available as a slash command:
/mode # report the current preset and what can be switched to
/mode ptc # switch this task
agentPresets.select Remote refuses a started session (agent-preset/locked). This bundle's Host half re-composes one through the registry's own recompose() entry (whose contract says "the caller owns the blank-session check") and therefore takes that responsibility itself: refuse while running, re-bind through the registry (never by touching scope internals, so tools/change is announced), then append agent-preset/selected to the Session log, because a model-visible change must be logged.agent/pre-step waterfall and PreStepDecision.startsRequestSeries, the same field the shipped goal-round driver sets.conversation.input.left, using the baseline @deepseek-ai/dsh-client-ui-primitives Menu (ported popup) and theme tokens; no DOM of other plugins is touched, and no model-facing tool is registered (choosing a mode is a user-owned decision).0.2.2-rc.1 (Windows desktop). A deployment without the Agent-preset registry has nothing to switch, and the control says so.MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。