Introduction¶
When running agents in DeepSeek Harness (DSH), a common question after modifying prompts, switching models, or adding plugins is: Has the quality of real work sessions degraded? Traditional benchmarks require writing test cases in advance and running a separate round, which differs from daily session data. Furthermore, if an LLM is introduced as a judge, results become difficult to reproduce.
The community plugin dsh-session-eval (Maintainer: kittimmzhe, Category: Workflow) introduces retrospective evaluation for persisted session logs—assigning grades based on fixed thresholds and supporting cross-session regression comparison. It does not create new benchmarks, does not use LLM judging, and does not require re-running the agent.
What is this?¶
dsh-session-eval is a “measurement layer” plugin in the DSH session toolchain: it reads existing sessions and outputs reproducible grades and trends to answer questions like “Is this session good?” or “Is the trend going up or down after configuration changes?”
Division of labor with plugins in the same ecosystem (all read logs via ctx.sessionQuery, supporting both JSONL and SQLite backends):
| Plugin | Layer | Question Answered |
|---|---|---|
| dsh-session-export | Evidence | What specifically happened in this session? |
| dsh-session-recall | Memory | What was done before, and where is it recorded? |
| dsh-session-eval | Measurement | How is the session quality, and is the trend improving? |
Comparison with the benchmark-type dsh-eval: The former evaluates runs you initiated in advance; this plugin evaluates sessions that have already occurred. They are complementary and do not replace each other.
License: MIT; npm package name: dsh-session-eval (Version in package.json data: 0.2.4).
Core Features¶
Single Session Grade Card (/eval)¶
Extracts three deterministic metrics from persisted logs and maps them to grades A–E based on documented thresholds (dimensions are n/a if relevant activity is missing):
| Dimension | Metric | Brief Description |
|---|---|---|
| Reliability | Tool error rate | The proportion of tool results that returned errors. |
| Re-ask | Correction signals per 10 turns | Additional user messages in a consecutive sequence before the assistant replies (behaviorally approximating “didn’t get it right the first time”). |
| Tool load | Tool calls per turn | Whether the call density is within a reasonable range. |
Overall takes the worst grade among the scored dimensions, following a conservative design. Threshold constants are located in src/grade.ts in the repository; configurable thresholds are on the roadmap (GitHub issues).
Running /eval multiple times on the same set of logs produces consistent output: there is no model involvement or sampling, and wall clock time is noted only as a remark, not included in scoring.
Cross-Session Regression (/eval-diff)¶
Specify two sessionIds and compare them within a noise band (error rate ±2pp, re-ask ±0.5, tool load ±1) to avoid mistaking minor fluctuations for regressions.
Workspace Historical Trends (/eval-history)¶
Within the scope of the current working directory cwd (same sessionQuery scope as /archive), score the last N sessions respectively and perform a diff between the first and the last. This is suitable for comparing “two batches of real sessions captured before and after changing plugins / prompts / models.”
Installation and Activation¶
Environment: Node.js 20 or 22; the DSH profile must mount the commands and sessionQuery services (the built-in web / agent profiles meet this requirement).
Install within DSH (Official README command):
dsh plugin --profile web add dsh-session-eval
Or install from the GitHub source:
dsh plugin --profile web add github:kittimzhe/dsh-session-eval
After installation, the bundle mounts /eval, /eval-diff, and /eval-history. If you maintain your own cordis.patch.yml, you need to retain similar entries:
- insert:
- id: session-eval
name: 'dsh-session-eval'
The plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and the MIT license before installation to ensure compliance with your security and compliance requirements.
Typical Usage¶
First, check the current session¶
Execute in the DSH session:
/eval
Terminal example (Excerpt from README, version numbers vary depending on the installed package):
Session eval — a1b2c3d4… (dsh-session-eval v0.2.2)
Overall: A
Reliability A 2/87 tool results errored (2.3%)
Re-ask A 1 re-ask signal(s) over 23 turns (0.4/10 turns)
Tool load B 3.8 tool calls per turn
Notes:
• Wall time 41.2 min over 23 turns.
Specify a session or export JSON¶
/eval --id <sessionId>
/eval --json
Compare before and after two changes¶
When two IDs are known:
/eval-diff <beforeId> <afterId>
/eval-diff <beforeId> <afterId> --json
Check trends for the last N sessions¶
/eval-history [N]
/eval-history [N] --json
/eval-history --out report.md
--out saves the terminal card as Markdown; adding --json saves it as JSON. Relative paths are resolved relative to the current session workspace; the parent directory must already exist, and existing files will be overwritten.
Use Cases and Precautions¶
Suitable for: Teams or individuals already continuously generating session logs in DSH; those who need to track Reliability, Re-ask, and Tool load trends on real work data; and those who want to make noise-tolerant regression judgments after configuration changes rather than relying solely on pre-designed benchmarks.
Not suitable for replacing: Standardized benchmarks that require coverage of prediction scenarios (the benchmark path, such as dsh-eval, should still be used).
Notes:
- Grading thresholds are currently constants within the code; custom thresholds require following upstream issues or forking yourself.
- The history scope is bound to the current working directory
cwd; for cross-directory comparison, please use/eval-diffand specify the session id clearly. - The community directory SkillHub Plugin Page and the GitHub repository are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; metadata such as star counts are subject to the display on each site at the time.
Conclusion¶
dsh-session-eval grounds the question “Is the session good, or did it get worse after the change?” in fixed thresholds and diffs on persisted logs, filling the measurement link after export / recall. Once installed, you can try it out on existing sessions via /eval and /eval-history.
- Community Directory: https://www.skillhub.cn/plugins/kittimzhe/dsh-session-eval
- Source Code & Docs: https://github.com/kittimzhe/dsh-session-eval