dsh-reply-suite[回复质量套件]
One package, three plugin rows, two settings pages.
| Row | Entry | What it does |
|---|---|---|
reply-quality |
lib/index.js |
Turn observation, panel API, /loop-repair manual history repair |
yubagu-panel |
lib/yubagu.js |
Manual wordlist hit check in settings; never touches the model conversation |
loop-guard |
lib/loop-guard.js |
Observes llm/stream for repetition, stop reason and reasoning/answer length; writes ~/.dsh/loop-guard-observation.log; records only, never truncates |
Two settings pages: "Reply Quality" and "Yubagu Lookup". All data lives in this package's data/: turns.jsonl (observation), ledger.json (lookup ledger), wordlist.json (wordlist).
How to read the reply-quality numbers
- Completed but empty: real user input,
turn/end=completed, no final assistant text. Aborts, errors and budget stops are counted separately. - Reasoning repetition, reasoning-only normal stop, long stall: deduplicated per turn; the denominator is
signals.assessedTurns. Rows written by older versions cannot be recomputed and are marked as the legacy basis;—means there was no measurable sample. - Reader feedback: when the other party explicitly says a reply read "like a human / unlike a human", that records ±1. Only direction, score and turn number are stored; behaviour is not changed.
- Style: four template patterns (requirement confirmation, template steps, fixed summary, universal help). Documents, unknown genres and empty answers produce no chat reference score; real technical documents are almost never flagged, so do not use this to judge documents.
- Observation and scoring only count. No prompts are injected, nothing is truncated, nothing is retried.
/loop-repair
Run it in an idle native Flash session; it only previews first. It picks the safe interval in the whole valid history that covers the most repetition (same route, tool pairs intact) and shows coverage, tokens and the rough trade-off. Only after a confirmation code does it compress old turns ahead of the next human message. It does not truncate output, change reasoning effort or sampling, or re-run tools. The summary uses the same route, costs quota and is lossy; the original stays in the log. /loop-repair cancel drops a pending reservation, status shows the outcome.
Full bundle or a single row
Same package, four cordis.patch.yml variants:
| zip | Rows enabled | Settings page |
|---|---|---|
dsh-reply-suite-1.0.0-full.zip |
all three | Reply Quality + Yubagu Lookup |
dsh-reply-suite-1.0.0-observer.zip |
reply-quality only |
Reply Quality |
dsh-reply-suite-1.0.0-yubagu.zip |
yubagu-panel only |
Yubagu Lookup |
dsh-reply-suite-1.0.0-loop-guard.zip |
loop-guard only |
none (log only) |
The three rows never import each other, so installing one does not affect whether the others work. To pause a row temporarily after installing: disable it in the plugin manager, or set disabled: true on that row. wordlist.json is a sample wordlist; edit it to match your own speech. Data goes under the package's data/.
Install
Either way works:
- In the app: Settings → Plugins → Add plugin, then pick this folder.
- Command line:
install.cmdon Windows (it detects the install directory, or pass the DSH install directory as the first argument); on macOS / Linux use./install.sh <dsh path>.
Or install straight from GitHub, pinned to the tag so it does not drift with main:
dsh plugin --profile <profile> add 'github:seinan27/dsh-reply-suite#v1.0.0'
Reload or restart after installing, then enable dsh-reply-suite on the plugins page. The full bundle enables all three rows; for just one, use the matching single-row zip or disable the other two.
Data and API
GET /api/reply-quality/status?limit=30:summaryVersion=2, includingstoragehealth (snapshot,invalidRows,failures,lastFailure). A read failure returns503 log-unavailableinstead of pretending there are zero records.GET /api/yubagu/status: panel data for manual lookup;POST /collideperforms the lookup.- Log append failures, rotation failures and bad rows are all visible; bad rows are kept and rotation is deferred, the original text is never deleted.
npm test(ornode --test bench/*.test.mjs test/*.test.mjs): observation, feedback, log failure, history selection, lookup contract. No network access.
Merged from three older packages
Merged on 2026-12-02 from dsh-reply-quality, dsh-yubagu and dsh-loop-guard. Sources and data are kept in a local backup directory; the old package directories were not deleted. The loop-guard log path is unchanged, so older logs remain readable.
No comments yet. Be the first to write one.