Foreword¶
DeepSeek Harness (DSH) makes prompts, tools, presets, and even agent loops into replaceable plugins. After changing a house rule or swapping a prompt version, the common practice is to try a few inputs by intuition, or rely on undo/rollback to revert if things break. The missing link in the official narrative is: propose a change first, then use Eval to measure if it is actually better.
dsh-touchstone fills this gap: using the same set of golden standard cases, it runs the “current configuration” and the “candidate change” side-by-side, combining rule checks with optional LLM judge scoring to produce a before→after report. If it’s good, keep it; if not, revert; the final decision to adopt is still yours.
The plugin is maintained by Hwayn-pixel, MIT licensed, and categorized as a workflow. It is available in both the DSH Desktop and Web clients. Community catalog page: https://www.skillhub.cn/plugins/Hwayn-pixel/dsh-touchstone , Source code: https://github.com/Hwayn-pixel/dsh-touchstone .
What is this¶
Touchstone is an evaluation plugin hooked into DSH: it does not patch the harness, only uses the public ctx.llm.stream() interface, and does not depend on internal services, so it runs on both DSH 0.1.x (Web) and 0.2 (Desktop).
A single run produces a reconciliation table like the one below:
case current candidate change
lead-with-answer 0% 100% +100%
And provides an evidence-based conclusion: Better, keep it. / Regressed, revert. / No real difference. The scores only represent the cases you configured, not a global truth.
Four Core Concepts¶
| Concept | Meaning |
|---|---|
| Case | A prompt sent to the agent, plus several check items |
| Check | Assertions on the output: must contain, must not contain, regex, or LLM judge |
| Candidate | A prompt fragment to try, appended on top of the current one, or replaced; the control group is the built-in current (no change) |
| Report | Candidate average score minus baseline average score, per-case deltas plus a general comment |
Check items can have a weight (default 1), and the score is the weighted pass rate. Documentation recommendation: prioritize rule checks; LLM judge involves an extra model call and also has bias.
Installation and Activation¶
Install by selecting the profile according to your environment (commands from the official README):
dsh plugin --profile desktop add dsh-touchstone # desktop app
dsh plugin --profile web add dsh-touchstone # web UI
Restart DSH after installation.
Enable it in Settings: Desktop bottom-left account menu → Settings (or Ctrl + ,), click Touchstone on the left. Fields auto-save on blur (click elsewhere or Tab after typing).
Configure the provider / model / temperature / maxOutput for dsh-touchstone runs in DSH settings; optionally configure a separate judge model judgeProvider / judgeModel (if left empty, uses the same as the run model).
Cases, candidates, and the last 40 runs are recorded in $DSH_HOME/touchstone/bench.json (DSH_HOME defaults to ~/.dsh). Deleting this file resets it, and it will be automatically rebuilt.
Typical Usage (approx. 5 minutes)¶
- Under “Golden Standard Cases”, click + Add Case: fill in name, prompt (what you would send to the agent), then + Add Check, e.g., select must contain and write the expected word.
- Under “Candidates”, click + Add Candidate: fill in name, prompt (the rule or prefix to try), mode select
appendorreplace. - Click Run next to the candidate, go to Report to view per-case scores and the general comment.
Reproducible example (from README):
| Field | Value |
|---|---|
| case · name | opening format |
| case · prompt | Introduce artificial intelligence in one sentence. |
| case · check | must contain → 笔记: |
| candidate · name | prefix marker |
| candidate · prompt | Every answer must begin with exactly 「笔记:」, then continue normally. |
| candidate · mode | append |
After running, you might see: opening format goes from current 0% to candidate 100%, general comment Better, keep it. This说明的是: under the current config the instruction didn’t take effect, under the candidate it did—rather than “I feel it works.”
Inside a Run¶
- For all enabled cases × the candidate you checked (plus the always-participating current), construct a model call each:
systemis the candidate prompt,messagesis the case prompt, getting text and usage viactx.llm.stream(). - Rule checks are executed in-process; LLM judge adds one more model call each.
- Write this run and return the report.
The plugin only reads config and calls the model, it does not read or write your workspace files.
Use Cases and Limitations¶
Fits: Text-layer verification of “whether output meets expectations under the same input” for changes to prompts, house rules, preset phrasing, etc.
Does not fit: Tool implementation changes requiring real side effects—this does not run a full agent loop, nor does it provide evidence that the toolchain remains correct.
Cost: One model call per case × per candidate; if checks include LLM judge, add more calls. Faster and cheaper with few cases and short outputs; start with one or two cases.
Candidate Comparison: Each candidate is compared against the current; if you want to compare two candidates against each other, look at two reports side-by-side under the same cases and baseline.
The plugin runs with the permissions of the current DSH process; it is recommended to browse the source code and MIT license before installation to ensure behavior meets expectations. Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-touchstone turns the missing half-ring of DSH self-evolution—evaluation—into a thin, reusable workflow: golden standard cases, side-by-side candidates, rule-prioritized scoring, and evidence-based keep/revert decisions. Running it once before changing prompts or rules saves more time than pure intuition or post-hoc rollback.
- Catalog Page: https://www.skillhub.cn/plugins/Hwayn-pixel/dsh-touchstone
- GitHub: https://github.com/Hwayn-pixel/dsh-touchstone