Back to home

ruler770525

dsh-anchored-flash

Anchored-standard agent preset for DeepSeek Harness: Minimal-aligned first request, low-injection post-promotion, indirect AGENTS.md loading — anchored intelligence without the IQ drop. (DeepSeek Harness 的锚定标准预设:首轮 Minimal 对齐、晋升后低注入、AGENTS.md 间接按需加载——锚定智力不降智。)

Stars
2
Language
JavaScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

dsh-anchored-flash

English | 中文

An experimental DeepSeek Harness agent preset: Minimal-aligned anchoring with low-injection post-promotion, an indirect AGENTS.md injection pattern, and subagent anchoring — the "anchored intelligence without the IQ drop" experiment series.

Fork of xiaobright/dsh-anchored-standard with local modifications; the experiment report is in upstream issue #49.

What makes this different from upstream

FeatureUpstream anchored-standardThis preset
First requestMinimal pair bash + str_replace_editor, maxTokens 1024, zero injected contextsame
System prompt after promotioncomplete: true persona, stays the Minimal sentence (46 chars) foreversame, enforced by the assemble filter in every phase (tool-bootstrap)
Post-promotion catalogbootstrap pair + discovery tools + dev_tool_search unlocksconfigurable residentTools whitelist (default: 18 tools incl. memory/dtodo/web_search/de_session/read_image/exit_plan_mode/skill_search/skill_load)
instruction-hint wordingimperative ("read the relevant instruction files first and follow them") — measured to flip the anchored trajectory back to "let me"neutral/suggestive reference note — measured to preserve "we" (see experiment table below)
Subagentsopt-in includeSubagentsdefault true — subagents go through the same anchor flow
AGENTS.mdfull digest injection (perturbs) or nothingindirect injection: 1 KB topic index + AGENTS-*.md topic files + env-* skills, read on demand (skill_load / read) — measured non-perturbing
Windows bashcustom-bash (fixed path)custom-bash with PATH fallback when the configured Git Bash path is missing
Runtime context (memory snapshot etc.)strippedstripped in every phase (low-injection)

Experiment summary (measured 2026-08-16, DeepSeek V4 Pro, reasoningEffort=max)

Fingerprint = completed-reasoning counts of we / let's / let me (case-insensitive, whole words). Sessions are real DSH sessions on Windows + rc.6.

ExpHint wordingSystem promptResult
baselineimperative ("read first and follow them")restored to standard (46→6620 chars)we→let me flip after promotion (0 we / 3 let me; model: "I must read relevant instructions")
E1neutral reference note46 chars in every phasewe preserved (up to 49 we / 1 let me in 22.5k-char analyses)
E2neutral + user asked to read AGENTS.md46 charsfull on-demand chain walked (skill_searchskill_loadread 1 KB index); we preserved; environment facts actually used
E1.5suggestive ("reading the index is recommended")46 charswe preserved; model reads only when the task needs environment facts

Key conclusions:

  1. The promoted system-prompt mutation (46→6620 chars) is itself a perturbation. Keep the system prompt at the single Minimal sentence in every phase.
  2. Imperative wording in a user-role injected message correlates with the style switch (we report correlation, not mechanism).
  3. Non-imperative reference wording does not flip the trajectory, and read willingness is driven by task need, not hint wording.
  4. Anchored intelligence and AGENTS.md availability are not mutually exclusive: tell the model (non-imperatively) that reference documents exist, and let it load them on demand.

Install

$target = Join-Path $env:USERPROFILE '.dsh\.agent-presets\anchored-flash'
if (Test-Path -LiteralPath $target) { throw "Preset already exists: $target" }
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $target) | Out-Null
Copy-Item -Recurse -LiteralPath '.\preset' -Destination $target

Restart DeepSeek Harness, create a fresh session, pick 锚定标准·满血子代理 (anchored-flash). Do not switch presets mid-session.

Recommended AGENTS.md layout (the indirect-injection pattern)

Split the user-global ~/.dsh/AGENTS.md into:

  • ~/.dsh/AGENTS.md — ~1 KB topic index (3 iron rules + pointer table)
  • ~/.dsh/AGENTS-<topic>.md — topic files (environment / network / dsh / workflow / browser …)
  • ~/.dsh/skills/env-* — the same content as skills, discoverable via skill_search and loadable via skill_load

Verify

node verify/verify-anchored-flash.mjs      # 18 logic checks, no DSH runtime needed
node verify/trace-session.mjs <session-dir>        # header + reasoning fingerprint trace
node verify/count-pronouns.mjs <session-dir>       # we / let's / let me counters
node verify/dive-session.mjs <session-dir>         # full system + message sources
node verify/dump-session.mjs <session-dir>         # header + first-line dump

License

MIT. The preset is based on the DeepSeek Harness Standard preset and on xiaobright/dsh-anchored-standard; see NOTICE and LICENSE. Part of the experiment design and this documentation were assisted by DeepSeek (an AI assistant); all measurements are from real DSH sessions.