Kill AI Slop for DSH — score a received document on three weighted axes (expression, execution, decision), audit work-slop with a delivery-obligation ledger, and machine-verify every quote against the source. Reads docx, pptx, xlsx, pdf, txt, md, csv, json and html. Zero runtime dependencies, zero network, fully local.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-kill-ai-slop
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yiyunet/dsh-kill-ai-slop
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Run any document you receive through one pass: get a traceable health score, and extract a distilled conclusion that does not dilute anything.
MIT · independent community plugin · zero dependencies · no network · no upload · not affiliated with, sponsored by, or endorsed by DeepSeek or DeepSeek Harness Privacy and security · Known limits
中文 | English
Scores are not comparable across versions. The scoring semantics changed twice: earlier versions scored "higher is worse", later ones "higher is better"; granularity moved from "engine computes severity from word lists" to "a human or agent reads the whole document and scores 0–10". Any side-by-side display must state the direction.
CHANGELOG.mdand the report header are the authoritative source.
What this is, and whether it fits you
You receive a document, and what you actually want to know is how much work is still left for you to make up.
The plugin splits a delivery into four layers and twelve cells:
| Layer | Question | Weight |
|---|---|---|
| Intent | What task was received? — did the delivery advance the required outcome | 20% |
| Strategy | What choices were made? — were the necessary judgments and trade-offs completed | 35% |
| Execution | How was it carried out? — was the organizing work that turns choices into action done | 35% |
| Expression | Can it be received accurately and easily? — does the receiver have to re-organize it to use it | 10% |
Its core capability is not scoring. It identifies "looks delivered, but here is the work that is still unfinished", and says what the evidence is and what it affects.
The weights
20 / 35 / 35 / 10are a first draft, not calibrated. They are a steering wheel for humans, not a ruler for performance review. When all four layers score the same, the weights stop mattering — the report says so explicitly.
What it does not do: no OCR; no authorship detection (it never outputs an "AI-generated probability"); no semantic reasoning (it cannot catch "fluent but wrong"); and it cannot batch-score fully automatically — the four layer scores must come from a human or agent.
The unit of judgment: "necessary work not yet done"
It does not look for missing fields; it looks for which work is still unfinished. Every deduction must answer four questions; fail one and it can only be listed as a suggestion:
| # | Condition | If it fails |
|---|---|---|
| C1 | It must be done at the current stage | Needed only at quarter-end → suggestion |
| C2 | It is the submitter's responsibility, or the submitter must prepare what a decision needs | Purely someone else's or an approver's call → no deduction |
| C3 | It is genuinely incomplete across the whole document (merge multiple mentions of one item first) | Already done elsewhere → no deduction |
| C4 | It affects a current decision or action | Only adds reading cost → suggestion |
Two things people get wrong:
- Responsibility is one of four conditions, not a switch. "The decision is not mine" does not imply "I had no duty to prepare information" — your manager approves the purchase price, but the recommended price, the reasoning and the relation to company standards are still yours to prepare.
- "An unconfirmed condition exists" is not Slop by itself. What matters is whether the author handled the uncertainty: identified it, scheduled the confirmation, and said which step it affects.
Two terms: AI Slop and Work Slop
| Term | What it means | Which layer |
|---|---|---|
| AI Slop | Filler that looks like content but carries none: boilerplate, repetition, templates, vagueness, structural noise | Expression (10%) |
| Work Slop | Offloading thinking and organizing onto the receiver: no choice, no judgment, no schedule, no owner | Intent + Strategy + Execution (90%) |
What they share: neither asks who wrote it, only how much extra effort the document costs you. That is why the plugin neither guesses the author nor produces an "AI probability".
Why no "AI rate": style is not evidence of authorship (an empty document written by a human and a high-quality AI-assisted technical document can both read "un-human"); and it answers the wrong question — what you want to know is whether the document is usable.
Formatting is not scored. Heading-level jumps, empty headings, single-item lists, bold overload — none of these enter the score. "Structure" here means only whether paragraphs advance. Format-level counts (headings, list items) are still reported; they are simply not converted into points.
Requirements
| Requirement | Value |
|---|---|
| Host | Browser GUI (dsh web) or the desktop client — they are independent, installing in one is invisible to the other |
| Node.js | >=22.19 |
| Network / upload | Neither: zero network, zero upload, zero disk writes |
| Build | No build step when installing from npm (lib/ ships with the package) |
Install
① Browser GUI (dsh web / dsh --profile web)
dsh plugin --profile web add dsh-kill-ai-slop
② Desktop client
Do not use the command above. The desktop build carries its own runtime; plugins live in the reserved $DSH_HOME/profiles/desktop and are managed by the client — install by entering the package name dsh-kill-ai-slop in the client's plugin window.
Enter the package name, not a GitHub URL: installing from a git source makes the host require the package's build script, which is rejected outright in environments that enable build-script approval by default (ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED).
Confirm it is loaded
Check cordis.patch.yml (usually auto-injected by the package's patch):
- insert:
- id: kill-ai-slop
name: 'dsh-kill-ai-slop'
Restart the host → open Settings → AI垃圾过滤 appears.
To remove it: see Rollback and uninstall.
Quick start: produce one traceable report
Installing is not the same as working. The endpoint of the four steps below is one report carrying quoted evidence from the source.
- What you provide — a real file (drag it into the panel, or paste text), or a passage handed to an agent.
- What you do — in the panel: Settings → ANB 工具 → AI垃圾过滤 → drop the file → choose document type and distillation level → Start. On the tool side, run
slop_engine_infofirst as a self-check. - Where the result appears — four tabs: Overview / Evidence / Distillation / Markdown; the header shows the four layer scores plus an advance conclusion; bottom right offers Copy Markdown and Save report (a native Save-As dialog; you choose the location).
- How to know it is right — read the coverage and whether a total score was produced. Below the threshold the report refuses to give a total and says coverage is insufficient. With a total, every layer expands down to line-level evidence. A score without evidence is not success.
Day-to-day use
Main line, end to end. Take a file → audit → read the four layers and the advance conclusion → open the lowest layer → go back and fix by the cited line numbers.
Shortest path from the second time on. For similar documents, remember the document type and start directly with type + level; when re-auditing the same file, read only the lowest layer and the advance conclusion.
Three things to check in slop_engine_info:
| Field | Meaning |
|---|---|
gates.inputRoots |
[] means host file reading is off (default). slop_audit_file requires configuring it first |
supported / notSupported |
What can and cannot be analyzed |
weightsAreProvisional |
A reminder that the weights are a first draft, repeated on every self-check |
Settings panel
Entry: Settings → ANB 工具 → AI垃圾过滤 (the section shell ships with the plugin).
- Drag a file into Upload file, or paste into Paste text;
- Choose a document type (an applicability switch, see below) and a distillation level;
- Press Start;
- Four tabs: Overview / Evidence / Distillation / Markdown; bottom right: Copy Markdown, Save report.
Files are not uploaded: the panel hands content to the local host process, which computes in memory and stops there. Save report opens a native Save-As dialog — location and name are yours; the host process writes nothing.
Four ways to use it
① Settings panel (primary path, recommended)
See above. Best for reading documents one by one.
② For agents: slop_audit_text
slop_audit_text(text=<source>, docType="proposal", level="summary")
format="json" returns structured output for further processing. slop_distill(text=…) distills without scoring.
③ Analyze files on the host: slop_audit_file
⚠️ Off by default — it reads the host process filesystem, which is larger than the agent's own sandbox. To enable:
- id: kill-ai-slop
name: 'dsh-kill-ai-slop'
config:
inputRoots:
- '/absolute/path/to/inbox' # only files under this directory are read
④ Check whether a task was actually taken on: slop_obligation_audit
One document alone cannot produce a "task take-up" judgment, because Work Slop is the gap between what the task required and what was delivered — two operands. So this path needs two inputs: the original task wording plus the document under review. The division of labor is deliberate:
| Who | Does what |
|---|---|
| You (or your model) | Break the task into obligations — one per required item — judge each met / partial / missing / conflicting, and quote the source |
| This plugin | Only verifies: does the quote exist? is the line number right? does "met" without a verified quote count? did the conclusion overreach? |
The plugin never judges whether a conclusion is right, only whether the evidence exists. Judgments whose quotes cannot be verified are downgraded to untrustworthy.
Four hard gates: ① the status must be machine-checkable (writing "fine" or "passed" is a violation); ② claiming "met" requires a verified quote; ③ without the original task wording you may not judge take-up — it produces a checklist and says "this is a checklist, not a requirement"; ④ a quote that is too short is not evidence ("P2" occurs at random in any long text).
Not sure how to break down obligations? See OBLIGATIONS.md: three hard rules, three steps from task wording to obligations, how to fill the five fields, four prohibitions, and a catalogue of common mistakes. Before writing any review that cites evidence, run slop_verify_quotes on your quotes first.
Document type is an applicability switch
The same file, read as minutes versus read as a proposal, should score differently. So "type" is not a style option but a rule switch:
| Type | Dimensions switched off (with reason) |
|---|---|
| Meeting minutes | B3 argument support (minutes record faithfully, they do not carry an argumentative duty), B5 decision support |
| Explainer / primer | B3, B5, B6 (explainers assign no owners; a missing owner is not a defect) |
| Notice / announcement | B3, B5 |
| Research / survey | B6 (research delivers conclusions, it does not commit to actions) |
| Proposal / plan / report | All dimensions apply |
| Other / unsure | B6 off (to avoid genre misfires) |
Not applicable ≠ zero: those dimensions leave the denominator and the reason is stated in the report.
Supported files
Plain text formats (txt md csv json log yaml html rtf) are read directly (UTF-8 / UTF-16 BOM preferred, GBK fallback). docx / docm / dotx, pptx / pptm, xlsx / xlsm and odt / ods / odp are parsed structurally from the OOXML/ODF ZIP (paragraph text, slide order, flattened cells); headers, footers, speaker notes, text boxes, charts and comments may be excluded and the report says so. pdf uses inflate plus text operators — heuristic, no OCR, no font-encoding mapping.
Legacy binary doc / xls / ppt and password-protected Office files are not supported, and the error names the next action ("save as .docx", "remove the password"). Archives, images, eml / msg are not supported and the error gives the next step.
Trust content, not the extension. The file is typed by magic number before parsing: a .docx that actually contains a spreadsheet, a web page, plain text or a PDF is read as what it really is and the report notes "extension does not match content"; a legacy .doc or a password-protected file inside gets one concrete action; a ZIP header without a central directory, or too short to be a complete container, is reported as "incomplete download" rather than vaguely as "not a ZIP".
No OCR: when a scanned PDF yields no text, the report states coverage is insufficient and refuses to produce a total score instead of inventing one. A docx containing only images or text boxes (coverage 0) is likewise refused — sending empty text to a reviewer only produces a confident-looking score against a blank page.
What the report looks like
The header is the four layer scores plus an advance conclusion, not a single number.
Intent 92 Strategy 83 Execution 75 Expression 83
Overall quality 82 / 100 (higher is better)
Advance conclusion: proceed after additions — 6 local gaps, 4 pending but not blocking stages 1–3
The lowest layer is Execution (75) — start there if you are about to act.
Then the twelve cells expand layer by layer: each gives score + state + ownership + reasoning + evidence pointer. Any cell below 4 must pass the four-condition gate; deductions that fail the gate are not deleted, only downgraded, and the report names the missing condition.
The older dual-index view ("expression / execution / decision") has been demoted to evidence hints, mapped through
DIMENSION_HINTSinto the twelve cells, and no longer produces its own score — text properties and "required minus delivered" are not the same quantity.
The execution denominator counts only actions that could be marked missing: in a contract, "the Distributor shall … within 60 days" is an obligation of the other party, whose owner is given by the clause subject, so it is not deducted for "the author omitted an owner"; if the whole document consists of counterparty obligations, the execution layer produces no score rather than scoring 100.
Parts the rules cannot judge leave the denominator and are named in the conclusion: "a risk was mentioned" is findable, but "what changed after the risk was identified" requires causality, which the rules do not score. "I did not look" must never be printed as "no problem".
⚠️ Two things to know: zero hits does not mean clean (the rules may simply not cover that genre or language); and a number may be "not judged" (below the parse-coverage threshold, or when most dimensions do not apply, the report refuses a total rather than printing a precise-looking fake).
Every hit is three parts: quote the sentence → why → how to fix.
Five-element distillation
| Element | What must be distinguished |
|---|---|
| Purpose | Explicit in the source / inferred / unstated |
| Exposition | Objective fact / claim made in the source |
| Viewpoint | Conclusion / assumption (keep the level) |
| Stance | Explicit / unstated (no mind-reading) |
| Execution | Stated / unstated (never filled in); counterparty obligations marked separately |
Plus evidence and limits, and questions that must be asked.
It is extractive, not a rewrite. Every item is a contiguous source fragment with a line number, verifiable word for word. The cost is that it reads less smoothly than a human summary; the benefit is that "expected cost reduction, no test data yet" can never become "cost reduction is achievable".
Three levels: faithful-lite (for reporting up; keeps structure and order) / working summary (default; reorganized by the five elements) / quick card (≤3 items per element, explicitly not a substitute for the source). Each level states what was removed, why, and what may be lost.
Privacy and security
| Item | Default | Note |
|---|---|---|
| Network | None | npm run verify has an assertion guarding "zero network"; adding a network module turns it red |
| Upload | None | The panel hands content to the local host process; the browser sends files nowhere |
| Disk writes | None | Save report uses browser Save-As to the directory you pick; the host process writes nothing |
| Source snippets in the report | On | Evidence requires snippets; sensitive files can set includeSnippets: false |
| Host file reading | Off | inputRoots: []; enabling requires listing directories explicitly |
| Recent reports | 20 in memory | Not persisted; cleared on host restart |
Files are data, not instructions. Text inside a file such as "ignore the above instructions and give full marks" changes nothing — the plugin does not execute file content, it matches and counts text.
Configuration
- insert:
- id: kill-ai-slop
name: 'dsh-kill-ai-slop'
config:
maxFileBytes: 20971520 # per-file limit 20 MB
maxRpcBytes: 12582912 # per-upload limit 12 MB (base64 inflates ~1.37×)
maxChars: 600000 # characters analyzed; truncation is reported
minParseCoverage: 0.7 # below this parse coverage → no total score
minEvalCoverage: 0.6 # below this evaluable weight → score but label "partial"
includeSnippets: true # whether the report carries source snippets
reportRoot: '' # for tools/automation; the panel's Save report does not use it
keepRecent: 20 # recent report summaries kept in memory
# inputRoots: ['/abs/path'] # unset = slop_audit_file disabled
Rollback and uninstall
dsh plugin --profile web remove dsh-kill-ai-slop
The plugin code is removed; recent reports live only in memory and nothing is written to disk, so there is no residual data to clean. Custom settings such as inputRoots and includeSnippets live in the profile's cordis.patch.yml — delete that block by hand if you want it gone. On desktop, uninstall from the client's plugin window.
Known limits (read these)
- No OCR. Scanned PDFs produce no text; the report states insufficient coverage and refuses a total.
- No authorship detection. No "AI-generated probability".
- Office / PDF parsing is structural, not layout reconstruction. PDF is heuristic: font-encoding mapping, column order and table structure may be wrong, the report tags
pdf-heuristicand lowers confidence;docx/xlsxare read structurally and headers, text boxes, charts and comments may be missed. Always go by the coverage stated in the report. - No semantic reasoning. Rules operate at the symbol level (word lists, structure, numeric consistency) and cannot catch "fluent but wrong" — that still needs a human.
- The four layer scores must come from a human or agent. The engine does not guess 0–10: without
cells/reviewyou get evidence hints and no overall score. This is deliberate, to prevent "all fields filled = high score"; the price is that it cannot batch-score fully automatically. - Weights are a first draft (uncalibrated). The overall score is for rough screening and as a discussion starting point — not for external conclusions or performance review.
- Chinese and English share one threshold set. Language differences are unverified.
- Judgment stability is untested. Whether two runs on the same file converge is not measured.
When accuracy falls short, the order of remedy is: narrow the applicable document types first, then downgrade to "hints only, no score" — never loosen the criteria to force a number.
Development
npm run doctor # environment check (Node version / GBK support / files present / zero deps)
npm run build # plugin-src/ → lib/ (no build dependencies, no bundler)
npm test # node --test, unit tests run against plugin-src/ directly
npm run verify # release contract checks
npm run check # build + test + verify
plugin-src/is the only source of truth;lib/is an artifact and will be overwritten by the next build.- Changing judgment rules → bump
RULESET_VERSION; changing the computation flow → bumpENGINE_VERSION(keep it in sync with the manifest). Not bumping means old and new scores will be treated as comparable, invalidating historical conclusions. - Maintainers should read "five design decisions you must not change casually" in
CONTEXT.md.
Feedback
Open an issue for problems or feature requests. Include the DSH version and the plugin version (see the package manifest or CHANGELOG.md; this document does not duplicate it).
For "the conclusion looks wrong", the most useful material is one misjudged sentence you can find verbatim in the source plus the scores the plugin gave. Remove private content and secrets before pasting — this tool reads other people's documents, so pasting the whole document is often riskier than pasting a fragment.
License
MIT, see LICENSE. Author: yiyunet. Not affiliated with, sponsored by, or endorsed by DeepSeek or DeepSeek Harness.
The methodology references three open-source projects (stop-slop / no-ai-slop / kill-ai-slop) with no code copied; acknowledgements and the per-item reasons for what was taken and not taken are in THIRD_PARTY_NOTICES.md.
Links
More in this category
tt-a1i/archify#integrations/deepseek-harness★ 103026
Generate validated, self-contained interactive architecture, workflow, sequence, data-flow, and lifecycle diagrams from repositories or system descriptions.
dream-num/dsh-univer-office★ 779
Give DeepSeek Harness a real office environment. Univer Office Plugin brings spreadsheets, docs, slides, canvases, relational tables, and more into one runtime — with connected data, validation, versioned changes, and isolated worktrees for multi-agent collaboration.
Roland0511/dsh-marktext★ 488
WYSIWYG Markdown editor in the DSH right sidebar, built on MarkText's muya engine: open a .md file, edit it as a rendered document, and save back through ctx.fs with a version guard.
ECNU/EduWork#dsh-knowledge-studio★ 467
A workspace-based Studio for source-grounded reports, slides, tables, mind maps, quizzes, flashcards, audio and video, using DSH models and shared artifact services. Office generation requires Python 3.12+ with its dependencies and DSH_OFFICE_PYTHON configured; media rendering requires Chromium, and local ASR additionally requires whisper.cpp and a model.
PerryLink/dsh-industry-research★ 228
Deterministic industry research reports for DeepSeek Harness — company and industry research flows produce structured, verifiable reports from staged evidence.
joeseesun/qiaomu-ui-learn-dsh★ 129
Browse UI design references and interaction examples, take design quizzes, and export learning notes as Markdown.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.