dsh-minimal-tools-preset
其他 活跃维护

dsh-minimal-tools-preset

Canson666/dsh-minimal-tools-preset

对Agent能力做极简裁剪,预置开发、调试类高频工具插件,无需额外配置即可快速启用工具调用能力,降低集成成本,开箱即用体验流畅。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
PowerShell
主要语言
MIT
开源协议
22 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Canson666/dsh-minimal-tools-preset
git clone https://github.com/Canson666/dsh-minimal-tools-preset.git
git clone git@github.com:Canson666/dsh-minimal-tools-preset.git
README.md main

DSH Agent Preset: Minimal + Toolkits (极简 + 工具包)

English | 中文

A DeepSeek Harness agent
preset: the minimal core (persistent bash + file editor, one-line fixed
prompt, no runtime-context snapshot, no compaction) plus mountable tool
packs
— file search, web search, skills, plan mode, and a code-review skill.

Why

minimal mode is fast because it composes almost nothing: two tools and a
tiny prompt. standard composes everything at once. This preset keeps the
minimal core and adds only the packs you actually want — better speed than
standard, more capability than minimal.

Included packs

Pack Rows Notes
File search tool-fs, tool-fs-search read/edit/glob/grep
Web search tool-web search only, no fetch
Skills skill-filesystem, tool-skill loads the preset's own skills/
Plan mode dsh-plan-mode (isolated realm) plan-first workflow
Code review skills/code-review self-review your diff before finishing

Install

The preset id is minimal-tools; it must live at
${DSH_HOME:-$HOME/.dsh}/.agent-presets/minimal-tools/.

Option A: one-command script

PowerShell (Windows):

irm https://raw.githubusercontent.com/Canson666/dsh-minimal-tools-preset/main/install.ps1 | iex

or, from a checkout of this repo:

powershell -ExecutionPolicy Bypass -File .\install.ps1

Bash (macOS / Linux):

bash <(curl -sL https://raw.githubusercontent.com/Canson666/dsh-minimal-tools-preset/main/install.sh)
# or, from a checkout of this repo:
bash install.sh

The scripts install from the local minimal-tools/ folder when they find it
next to themselves (a checkout), and download it from GitHub otherwise — so
the one-command forms work anywhere.

Option B: manual copy

# from a checkout of this repo
mkdir -p "$HOME/.dsh/.agent-presets"
cp -r minimal-tools "$HOME/.dsh/.agent-presets/"

Then start a new session in the GUI and pick 极简+工具包. A new
session is required — a session already open keeps the composition it started
with (the standing mount is stamped per composition file, so only sessions
created after the files are in place see the packs, including code-review).

Verify

Start a new session in the GUI and pick 极简+工具包: the tool list
should show file-search, web-search, and plan tools alongside the minimal
bash + editor, and the skill list should include code-review. The session
record also stamps the preset id (agentPreset: minimal-tools) in its log
header, so you can confirm which preset a session actually runs.

How the code-review pack works

Ask the agent to review its changes (or say "check your work before finishing"),
and it loads the code-review skill: it diffs the workspace (git status /
git diff), reads the changed code in context, checks correctness / security /
performance / consistency / error paths, fixes what it can, and reports a
severity-tagged verdict. This is the self-review variant — the same agent that
made the changes reviews them. A stronger "independent reviewer" variant needs
the subagent pack (tool-subagent) added to the composition; that row consumes
the host subagents registry and needs no realm.

Compatibility

  • Requires DeepSeek Harness with the shipped minimal and standard presets
    (the rows referenced here — @deepseek-ai/dsh-* — ship with the harness).
  • Windows and Unix both work: the !!js skill-root expression resolves
    skills/ relative to the preset's own directory (baseUrl), so the copy
    works from any install location.
  • Shell is platform-split: on Unix the persistent bash PTY chain is used;
    on Windows there is no bash PTY backend, so the preset disables it and uses
    the one-shot tool-pwsh instead (the same row standard uses on Windows).

License

MIT