返回目录
模型与 MCP 插件

dsh-effort-lab

flyer103/dsh-effort-lab

DSH effort lab: A/B a prompt variant against reasoning effort on one session, recording per-turn tokens, wall time, subagents and compaction as JSONL.

Stars
0
Forks
0
Issues
0
更新
6 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:flyer103/dsh-effort-lab

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-effort-lab

A DeepSeek Harness plugin that turns "does this prompt trick or this reasoning tier actually help?" into a JSONL log you can read numbers off.

It arms one session as an A/B experiment, injects a prompt variant as the last system-prompt section, optionally sweeps the reasoning effort tier, and records one row per turn: tokens in/out/reasoning/cached, wall time, subagent spawns, compaction and pruning, and an optional human score.

Host-only, dependency-free ESM: no client bundle, no build step, no @deepseek-ai/* imports.

Why not just eyeball two answers

Two things make screenshots a bad instrument:

  • Token accounting is invisible. "It thought longer" is a claim about reasoningTokens, which the adapter reports and nothing surfaces per turn.
  • Prompt variants are not free. A changed system prompt loses provider cache reuse from that point on, so a faster answer may just be a cached one. The cache% column makes that visible instead of confounding the result.

The effort tier is a real request parameter, so comparing tiers is cache-clean; comparing prompt variants is not. The plugin reports both and says so in the table.

Install

# npm
dsh plugin --profile desktop add @flyer103/dsh-effort-lab

# GitHub, default branch or a pinned tag
dsh plugin --profile desktop add github:flyer103/dsh-effort-lab
dsh plugin --profile desktop add github:flyer103/dsh-effort-lab#v0.1.0

# local checkout (records a link: dependency)
cd /path/to/dsh-effort-lab
dsh plugin --profile desktop add "$(pwd)"
node scripts/install.mjs --profile desktop     # same thing, with checks

# tarball built with `npm pack`
dsh plugin --profile desktop add /absolute/path/flyer103-dsh-effort-lab-0.1.0.tgz

Use the profile you actually run: desktop for the Desktop app, web for a web profile. Restart DSH afterwards so the profile reloads the bundle. add also appends the bundle to the profile's dsh.profile.bundles; do not edit the profile's cordis.patch.yml by hand. Re-running is safe.

Remove with dsh plugin --profile desktop remove @flyer103/dsh-effort-lab, then restart. The record log at ~/.dsh/effort-lab/records.jsonl is left in place.

Use

/effort-lab start my-sweep     # arm this session
/effort-lab report             # aggregate every recorded turn
/effort-lab rate 4             # score the last completed turn 1-5
/effort-lab stop               # disarm, restore a rotated effort tier

Full grammar and semantics: docs/CONTRACT.md.

// profile cordis.patch.yml — every field optional
- id: dsh-effort-lab
  config:
    blockSize: 3
    file: ~/.dsh/effort-lab/records.jsonl
    variants:
      - { id: baseline,  label: Baseline, suffix: '' }
      - { id: unlimited, label: Unlimited token notice, suffix: '你的 Token 预算无上限,不要吝惜 Token。' }
    # efforts: [high, max]      # optional second axis, written through the model seat

What is recorded

See docs/CONTRACT.md for the field-level schema. In short: per turn, the variant and the tier actually in force, steps, summed token buckets with usageSteps so a missing report is distinguishable from zero, wallMs, subagents, compactions, prunes, and an end reason.

Limitations

  • Prompt-variant comparisons carry a cache cost at each block boundary; the effort axis does not. Prefer the effort axis for wall-time questions.
  • Effort ids are not pre-validated — an unsupported tier fails at request time and the turn records that failure.
  • Quality is only what you type into rate.
  • Restarting DSH disarms sessions; records survive.
  • One local file, no locking across processes.

Design, phases and adversarial notes: docs/DESIGN.md. Operational guidance: docs/USAGE.md. Verified with DSH 0.2.2-rc.3; unit tests only, see the verification note in docs/DESIGN.md.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。