dsh-judge-loop: A Dual-Team Process for Delivering Production-Ready Products on Real Projects

Introduction

The plugin-based design of DeepSeek Harness (DSH) lets you assemble workflows block by block. But “assembled” doesn’t mean “usable”—an agent that writes the rubric, drafts the content, and grades itself is just giving itself a 100 that means nothing. dsh-judge-loop splits the pipeline into two independent roles: the Professor reads only the prompt and source materials and produces the scoring rubric; the Tutor writes to 95 or above against that rubric, and the finished product is delivered as-is.

What It Solves

The ceiling on how good a deliverable can be is set by the standard, not by the writer. In early versions, the same agent wrote the rubric, drafted the content, and graded itself—the rubric was baked with the draft’s fingerprints, the examiner and the examinee were the same person, and that 100 score meant nothing.

Now it’s split into two independent roles:

Team What they do What they must not do
Professor (professor) Reads only the prompt and source materials; produces rubric.json Must not look at any draft version the Tutor writes
Tutor (tutor) Writes to 95+ per the rubric Must not modify the rubric; must not add its own criteria

Core Features

Dual-Team Review

The Professor sets the standard; the Tutor meets it. They cannot collude. The Professor reads only the prompt and source materials, blind-writes a six-dimension rubric (totaling 100 points, weights 14/22/16/22/14/12), and never sees any draft. The Tutor first self-assesses (each dimension scored 0/4/7/10), revises only the specific flagged sentences, and keeps going until self-assessment ≥ 95. Finally, an independent grader who doesn’t know the self-score (a separate subagent works fine) scores dimension by dimension.

Four Red Lines (Score-Independent)

  1. Fabricated numbers/quotes — every citation must point to a specific file and line number
  2. Presenting opinions as facts — unsupported judgment calls must be written as opinions
  3. Two source materials contradicting each other
  4. Committing to something that can’t be delivered

Hitting any one of these means the deliverable is not shipped, no matter how high the score.

The 95-Point Bar

Lower-weight dimensions can drop a tier; higher-weight ones cannot. If a dimension has weight w and drops from 10 to 7, the total = 100 − 3w/10:
- w=20 → 94 (just short)
- w=15 → 95.5 (passes)
- w=10 → 97 (passes)

95 is the floor for “won’t get caught in a follow-up question.”

Directory Structure

<work>/
  rubric.json      Professor's output; Tutor must not modify
  draft-v1.md      First draft + self-assessment
  draft-v2.md      Revised version
  blocked.md       Appears only when stuck

No final/ directory needed, no exit codes, no scripts to run.

Installation & Activation

# Install directly from GitHub
dsh plugin --profile <your_profile> add hechenhao9/dsh-judge-loop

# Install from a local directory
dsh plugin --profile <your_profile> add ./dsh-judge-loop

Restart DSH for it to take effect. No account, API key, or network access required.

How to Launch in a New Conversation

Launch method Effect
/judge-loop Full pipeline: Professor sets rubric → Tutor delivers → handoff
/professor Rubric only (use when you want to know “what good looks like” first)
/tutor Draft only (use when the rubric is already in hand)

No need to memorize commands either. Saying things like “execute to standard,” “is this good enough,” “can this ship,” or “this project needs a deliverable” will also trigger the main flow.

Three-Step Pipeline

1. Professor Produces the Rubric

Spawn a subagent with the system prompt from agents/professor.md. In the user message, include:

  • The prompt (user’s original words, verbatim)
  • Source material paths
  • Hard constraints (word count, language, deliverable format)

Give it no drafts whatsoever. It produces <work>/rubric.json: 4–6 dimensions, totaling 100, each with criterion (including verifiable checkpoints), pass_example / fail_example, intent / vision, and weight; plus at least one vetoes entry.

2. Tutor Executes to Standard

Spawn another subagent with the system prompt from agents/tutor.md. Give it the prompt, source materials, and rubric.json. It will:

  1. Translate each criterion into “the exact sentence that will appear in the draft”
  2. Build evidence sentences first, then stitch them into prose
  3. Self-assess (each dimension 0/4/7/10, quote must be verbatim text from the draft)
  4. Revise only the flagged sentences, and must delete at least one passage (adding without cutting makes the draft longer and more AI-sounding)
  5. Iterate until self-assessment ≥ 95

If a criterion is unclear, it may ask the Professor about the intent and vision behind it — but it is not allowed to ask “how do I write this to pass.”

3. External Grading → Delivery

Find an independent grader who doesn’t know the self-score (a separate subagent works fine). Give it the draft, the rubric, and the source materials, and ask it to:

  • Score each dimension 0/4/7/10, citing the original text for each
  • Write every deduction as “change the sentence at line N from ‘original text’ to ‘revised text’”
  • Flag any criteria that are ambiguous or impossible to evaluate

Score ≥ 95 and no red lines triggered → hand the finished product directly to the user. Below the bar? Revise per the deductions until it passes.

Why the Mechanical Gate Was Removed

Early versions included a gate.cjs: it enforced verbatim citation matching per dimension, required deductions to be written as “change X to Y,” demanded an external grading record for any perfect score, and blocked anything with non-empty vetoes from entering final/.

It did catch three real incidents (see “It Caught Three Cheats”). But it also produced a record of one draft being revised 8 times, hundreds of thousands of tokens consumed, and the user eventually calling it off — a 100-point bar leads to infinite iteration.

So now: 95 points, human judgment, direct delivery. The script remains in legacy/ for archival and no longer participates in the pipeline.

What This Doesn’t Guarantee

Not guaranteed Why
The Professor has actual judging experience Competence comes from “never saw the draft” + “criteria are verifiable,” not from credentials
The Tutor and Professor won’t collude Same model, different prompt; same underlying values. The only safeguard is “must not see the draft”
The rubric won’t be hand-edited The Tutor has write access; timestamps must be kept, and any change triggers re-grading
A high score = genuinely good Criteria only cover what can be extracted and checked. A human must still review the final output

Use Cases & Notes

Suited for scenarios that require a shippable deliverable with high demands on citation accuracy and factual correctness, such as report writing, technical documentation, and client-facing materials.

The plugin runs with the current DSH process permissions. Review the source code and license before installing.

In Short

This pipeline replaces “grading yourself” with “Professor sets the standard, Tutor meets it, external grader scores and delivers,” swaps 100 for 95, replaces the mechanical gate with human judgment, and makes the deliverable something you can actually ship.

  • Directory page: https://www.skillhub.cn/plugins/hechenhao9/dsh-judge-loop
  • GitHub: https://github.com/hechenhao9/dsh-judge-loop
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye