New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

dsh-session-eval

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-session-eval

Retrospective agent-session evaluation for DeepSeek Harness: deterministic grade cards from persisted session logs, cross-session regression diffs, era comparison — no benchmark runs, no LLM judges.

Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
457
852.08%
Maintainers
1
Weekly downloads
 
Created
Source

dsh-session-eval

English | 中文

npm npm downloads tests license

Retrospective evaluation for DeepSeek Harness agent sessions — deterministic grade cards computed from sessions that already happened, plus cross-session regression diffs that answer "did my agent get better or worse after that plugin / prompt / model change?"

No benchmark suites to author. No LLM judges. No new runs. Every grade is a fixed, documented threshold over persisted session logs — fully reproducible.

The measurement layer of the session toolchain

PluginLayerAnswers
dsh-session-exportEvidence"What exactly happened in this session?"
dsh-session-recallMemory"What did I do before, and where is it?"
dsh-session-evalMeasurement"Was that session good? Is the trend improving?"

All three read through the same trusted ctx.sessionQuery seam, so any persistence backend (JSONL or SQLite) works without touching raw artifacts.

How it differs from benchmark-style evaluation

dsh-eval (benchmark)dsh-session-eval (this)
EvaluatesRuns you launch ahead of timeSessions that already happened
SetupAuthor benchmark YAML + casesNone — read existing logs
JudgeMetric folding over trialsFixed thresholds, deterministic
Best atPre-deploy benchmarksRegression tracking over real work

Both are useful; they don't compete. Benchmarks test what you predicted; retrospective evaluation watches what actually happened.

Quick Start

npm install -g dsh-session-eval

Then in DeepSeek Harness:

/eval
Session eval — a1b2c3d4… (dsh-session-eval v0.2.0)
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.

Grade another session, or emit machine-readable JSON:

/eval --id <sessionId> --json

Compare two sessions — the regression workflow:

/eval-diff <beforeSessionId> <afterSessionId>
Session diff — a1b2c3d4… → e5f6a7b8… (dsh-session-eval v0.2.0)
Overall: regressed — 0 improved, 2 regressed, 1 flat.
  Reliability   2.1% → 11.8%   regressed
  Re-ask        0.5 → 3.2      regressed
  Tool load     3.8 → 4.1      flat

Typical use: grade the ten sessions before and after a plugin or prompt change; a persistent Reliability regression is an early warning that the change hurt real work, not just benchmarks.

See the whole trend — no ids to hunt for:

/eval-history        # last 5 sessions in this workspace
/eval-history 12     # last 12
Session history — last 5 in this workspace
  2026-09-20 14:02  a1b2c3d4…  B   4 turns, 9 tools
  2026-09-21 09:15  c3d4e5f6…  A   5 turns, 11 tools
  2026-09-22 17:44  e5f6a7b8…  A   3 turns, 7 tools
Trend (first → last): improved — 2 improved, 0 regressed, 1 flat.

/eval-history finds the sessions for you via the same sessionQuery seam /archive uses (scoped to the current workspace's cwd), grades each, and diffs the first against the last. /eval-diff remains the tool when you already know the two ids that matter.

Dimensions & thresholds

All grades derive from three deterministic metrics. n/a when the session lacks the relevant activity.

DimensionMetricABCDE
Reliabilitytool error rate≤5%≤10%≤20%≤35%>35%
Re-askcorrections per 10 turns¹0<1<2<4≥4
Tool loadtool calls per turn0.5–80.1–0.5 or just above 8<0.1 or 8–20>20—

¹ A correction signal is each extra user message inside a consecutive-user run — the human re-asking before any assistant reply, a behavioral proxy for "the agent didn't get it right the first time."

Overall is the worst graded dimension — conservative by design. Thresholds are constants in src/grade.ts; they will be configurable in a future release.

Diff verdicts include a noise band (±2pp error rate, ±0.5 re-ask, ±1 tool load) so trivial jitter doesn't cry regression.

Determinism guarantee

Same session logs in → same grade card out, every time, forever. There is no model in the loop, no sampling, no clock dependence in the metrics (wall time is reported, never graded). This is what makes /eval-diff trustworthy as a regression signal.

Commands

CommandEffect
/evalGrade card for the current session
/eval --id <sessionId>Grade a specific session
/eval --jsonMachine-readable metrics + card
/eval-diff <beforeId> <afterId>Regression comparison, noise-tolerant
/eval-diff … --jsonMachine-readable trend report
/eval-history [N]Grade the last N sessions in this workspace and show the trend
/eval-history … --jsonMachine-readable history report

Development

npm install
npm run typecheck   # tsc --noEmit
npm test            # vitest run — 24 tests
npm run bundle      # tsdown → lib/

License

MIT

Keywords

deepseek-harness

FAQs

Package last updated on 25 Sep 2026

Related posts