dsh-anchored-standard
其他 活跃维护

dsh-anchored-standard

Jungod1121/dsh-anchored-standard

两阶段工具预设,第一阶段通过极简bash+read实现最小化对齐启动,待首次工具调用或回复完成后加载完整标准工具集,启动无冗余负担,全功能随用随开。

21
Stars 标星
2
Forks 分支
21
Watchers 关注
2
Open Issues
JavaScript
主要语言
MIT
开源协议
7.5 MB
仓库大小
3 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:Jungod1121/dsh-anchored-standard
git clone https://github.com/Jungod1121/dsh-anchored-standard.git
git clone git@github.com:Jungod1121/dsh-anchored-standard.git
README.md main

dsh-anchored-standard

**Anchor the first request. Unlock the full stack.** A two-phase agent preset for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): bootstrap DeepSeek V4 Pro with the Minimal-aligned prompt and two tools, then expose the complete Standard catalog after the first durable tool call or reply. ![harness](https://img.shields.io/badge/harness-0.1.0--rc.6-4e8cff) [![license](https://img.shields.io/badge/license-MIT-2ea44f)](https://raw.githubusercontent.com/Jungod1121/dsh-anchored-standard/main/LICENSE) [![stars](https://img.shields.io/github/stars/Jungod1121/dsh-anchored-standard?style=flat)](https://github.com/Jungod1121/dsh-anchored-standard/stargazers) [![dsh-plugin](https://img.shields.io/badge/topic-dsh--plugin-8a5cf5)](https://github.com/topics/dsh-plugin) [中文说明](https://github.com/Jungod1121/dsh-anchored-standard/blob/main/README.zh-CN.md) · [Landing page](https://jungod1121.github.io/dsh-anchored-standard/) · [Design origin](https://github.com/xiaobright/dsh-anchored-standard)

The one-line idea

V4 Pro's ability ceiling is high — but which reasoning strategy it uses is
decided by what the first API request shows it. The community evaluation
at xiaobright/modeltest measured:

Preset First request sees Full task sees Project2 V4.1b (max)
Standard 25 tools + long prompt 25 tools 91 / 92
Minimal 1-line prompt + 2 tools 2 tools only 99 / 96 — but too narrow for real work
Anchored Standard 1-line prompt + 2 tools all 25 tools 98 / 99

The gain comes from anchoring the first-turn trajectory — not from keeping
the tool surface small forever. This preset keeps Minimal's brain and gives it
Standard's hands.

How it works

sequenceDiagram
    participant U as User
    participant A as Agent loop
    participant M as DeepSeek V4 Pro

    U->>A: first message (new session)
    A->>M: request #1<br/>task-matched anchor persona<br/>tools: bash + read (± edit/write)
    Note over M: reasoning chain anchors on the task-matched scaffold
    M->>A: first tool/call
    Note over A: promotion signal (durable session event)
    A->>M: request #2<br/>same persona · all 25 Standard tools
    Note over M: full-capability work continues on the anchored trajectory
  1. The session's first user message picks the anchor:

    Task Persona First-request tools
    spec — fix / maintain / debug Minimal's exact prompt bash + read + edit
    react — build / create from zero hands-on doer prompt bash + read + write
    weak — ambiguous model self-picks (Pro: classify instruction) bash + read

    glob/grep stay out of every bootstrap catalog — measured trajectory
    boundary for V4 Pro; edit/write are anchor-safe.

  2. On request #1 the persona is the ONLY prompt section and runtime contexts
    are cleared — the cleanest possible opening.
  3. After the session records its first durable tool/call, every later
    request sees the full Standard catalog; the chosen persona stays constant
    and the remaining sections (plan-mode etc.) return. Nothing is injected
    after turn one (measured: post-anchor guidance hurts Pro).

Mode and promotion state live in durable session events, so refresh and
resume preserve them.

Install

Option A — installer bundle (recommended)

dsh plugin --profile web add github:Jungod1121/dsh-anchored-standard

Restart DeepSeek Harness. The bundle copies the preset into
$DSH_HOME/.agent-presets/anchored-standard/ (idempotent — local edits are
never overwritten), then create a blank session and select
Anchored Standard (experimental). To make it the default preset for new
sessions:

# $DSH_HOME/settings.yaml
agent-presets:
  default: anchored-standard

Option B — manual preset directory

dsh_home="${DSH_HOME:-$HOME/.dsh}"
mkdir -p "$dsh_home/.agent-presets"
cp -R preset "$dsh_home/.agent-presets/anchored-standard"

Verify

Export the session JSONL and inspect request/header events — the first
header contains only bash/read, every later header the full catalog:

seq 18  -> 2 tools  ['bash', 'read']                       # request #1
seq 137 -> 25 tools ['ask_user_question', 'bash', ...]     # request #2 (promoted)

What you get vs what you give up

You get Trade-off
vs Minimal 23 more tools: glob/grep/edit/write/web_search/subagents/workflows/skills/goals/todo… one extra reasoning round for the bootstrap
vs Standard task-matched trajectory anchors (98/99 vs 91/92 in the reference eval) + a first turn that is cleaner than Standard's the first-request catalog is decided by keyword classification — ambiguous tasks fall back to the weak anchor and let the model pick

Evidence & honest boundaries

  • Mechanism (task-matched bootstrap catalog → full catalog) is verified on
    harness 0.1.0-rc.6 at the wire level; the classifier and anchor tables are
    unit-tested.
  • The 98/99 ability scores are xiaobright/modeltest Project2 V4.1b — n=2
    on one frozen task
    . They are reproducible evidence for that task, not a
    universal guarantee across models or workloads. The spec/react/weak anchor
    design incorporates measured findings from
    yjh051108/dsh-router-standard (P1-P24) and xiaobright's trajectory
    boundary probes.
  • V4 Flash does not need this: it generalizes across harnesses (style changes,
    scores don't). This preset targets Pro with reasoningEffort: max.

Uninstall

dsh plugin --profile web remove dsh-anchored-standard
rm -rf "${DSH_HOME:-$HOME/.dsh}/.agent-presets/anchored-standard"

Compatibility

Developed and verified against DeepSeek Harness 0.1.0-rc.6. The harness is a
developer preview with breaking changes — review upstream changes before
upgrading.

Community & license

This is a community project: not an official DeepSeek preset, not affiliated
with or endorsed by DeepSeek. Design inspired by
xiaobright/dsh-anchored-standard
(see NOTICE). MIT — LICENSE.