dislop 0.9.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +7 -8
  4. package/.cursor-plugin/plugin.json +2 -3
  5. package/.pre-commit-hooks.yaml +5 -12
  6. package/PRODUCT.md +19 -63
  7. package/README.md +358 -249
  8. package/README.zh-CN.md +391 -237
  9. package/action.yml +30 -39
  10. package/bin/dislop-mcp.mjs +3 -4
  11. package/bin/dislop.mjs +4 -4594
  12. package/gemini-extension.json +2 -2
  13. package/llms-install.md +68 -0
  14. package/package.json +17 -63
  15. package/packs/common/artifact-qa/pack.json +5 -0
  16. package/packs/common/artifact-qa/prompts/rules.md +11 -0
  17. package/packs/common/artifact-qa/scripts/index.mjs +235 -0
  18. package/packs/common/slide-deck/pack.json +6 -0
  19. package/packs/common/slide-deck/prompts/rules.md +11 -0
  20. package/packs/common/slide-deck/scripts/index.mjs +62 -0
  21. package/packs/common/web-ui/pack.json +6 -0
  22. package/packs/common/web-ui/prompts/rules.md +11 -0
  23. package/packs/common/web-ui/scripts/index.mjs +80 -0
  24. package/packs/en/artifact-qa/pack.json +6 -0
  25. package/packs/en/artifact-qa/prompts/rules.md +14 -0
  26. package/packs/en/artifact-qa/scripts/index.mjs +90 -0
  27. package/packs/en/prose/pack.json +7 -0
  28. package/packs/en/prose/prompts/rules.md +26 -0
  29. package/packs/en/prose/scripts/index.mjs +293 -0
  30. package/packs/en/slide-deck/pack.json +7 -0
  31. package/packs/en/slide-deck/prompts/rules.md +17 -0
  32. package/packs/en/slide-deck/scripts/index.mjs +81 -0
  33. package/packs/en/web-ui/pack.json +7 -0
  34. package/packs/en/web-ui/prompts/rules.md +20 -0
  35. package/packs/en/web-ui/scripts/index.mjs +103 -0
  36. package/packs/zh/artifact-qa/pack.json +6 -0
  37. package/packs/zh/artifact-qa/prompts/rules.md +14 -0
  38. package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
  39. package/packs/zh/prose/pack.json +7 -0
  40. package/packs/zh/prose/prompts/rules.md +26 -0
  41. package/packs/zh/prose/scripts/index.mjs +305 -0
  42. package/packs/zh/slide-deck/pack.json +7 -0
  43. package/packs/zh/slide-deck/prompts/rules.md +17 -0
  44. package/packs/zh/slide-deck/scripts/index.mjs +75 -0
  45. package/packs/zh/web-ui/pack.json +7 -0
  46. package/packs/zh/web-ui/prompts/rules.md +20 -0
  47. package/packs/zh/web-ui/scripts/index.mjs +98 -0
  48. package/plugin.json +5 -6
  49. package/server.json +2 -2
  50. package/skills/deslop-docs/SKILL.md +10 -8
  51. package/skills/deslop-slides-docx/SKILL.md +7 -8
  52. package/skills/deslop-verify/SKILL.md +7 -8
  53. package/skills/deslop-web-ui/SKILL.md +7 -8
  54. package/skills/dislop/SKILL.md +16 -28
  55. package/skills/dislop/agents/openai.yaml +1 -1
  56. package/skills/dislop/references/essay.md +6 -6
  57. package/skills/dislop/references/essay.zh-CN.md +6 -6
  58. package/skills/dislop/references/office.md +5 -5
  59. package/skills/dislop/references/office.zh-CN.md +5 -5
  60. package/skills/dislop/references/web-ui.md +4 -4
  61. package/skills/dislop/references/web-ui.zh-CN.md +4 -4
  62. package/skills/dislop/references/work-docs.md +7 -7
  63. package/skills/dislop/references/work-docs.zh-CN.md +7 -7
  64. package/src/cli-main.mjs +292 -0
  65. package/src/commands/check-fix.mjs +324 -0
  66. package/src/commands/doctor.mjs +132 -0
  67. package/src/commands/init.mjs +55 -0
  68. package/src/commands/login.mjs +82 -0
  69. package/src/commands/model.mjs +130 -0
  70. package/src/commands/packs.mjs +81 -0
  71. package/src/commands/verify.mjs +165 -0
  72. package/src/commands/voice.mjs +84 -0
  73. package/src/commands/worklog.mjs +424 -0
  74. package/src/kernel/config.mjs +759 -0
  75. package/src/kernel/document-model.mjs +1432 -0
  76. package/src/kernel/fact-gate.mjs +775 -0
  77. package/src/kernel/file-discovery.mjs +296 -0
  78. package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +615 -890
  79. package/src/kernel/pack-loader.mjs +801 -0
  80. package/src/kernel/pack-validator.mjs +491 -0
  81. package/src/kernel/patcher.mjs +471 -0
  82. package/src/kernel/pipeline.mjs +530 -0
  83. package/src/kernel/prompt-assembler.mjs +336 -0
  84. package/src/kernel/version.mjs +7 -0
  85. package/src/kernel/voice-profile.mjs +180 -0
  86. package/src/mcp/stdio-server.mjs +442 -0
  87. package/src/runners/auto-fix.mjs +74 -0
  88. package/src/runners/interactive-tty.mjs +488 -0
  89. package/src/runners/reporters.mjs +272 -0
  90. package/src/runtime/chunker.mjs +87 -0
  91. package/src/runtime/json-extract.mjs +144 -0
  92. package/src/runtime/privacy-gate.mjs +97 -0
  93. package/src/runtime/providers/anthropic.mjs +65 -0
  94. package/src/runtime/providers/cloud.mjs +138 -0
  95. package/src/runtime/providers/gemini.mjs +91 -0
  96. package/src/runtime/providers/local-model.mjs +147 -0
  97. package/src/runtime/providers/openai-compat.mjs +130 -0
  98. package/src/runtime/router.mjs +324 -0
  99. package/src/runtime/worklog.mjs +904 -0
  100. package/src/sdk/index.mjs +137 -0
  101. package/models/manifest.json +0 -90
  102. package/models/pocket-slop-v1.json +0 -1
  103. package/packs/business-brief/pack.json +0 -937
  104. package/packs/core/pack.json +0 -209
  105. package/packs/deck-and-ui/pack.json +0 -539
  106. package/packs/engineering-spec/pack.json +0 -144
  107. package/packs/executive-deck/pack.json +0 -98
  108. package/packs/literary-essay/pack.json +0 -344
  109. package/packs/regulated-comms/pack.json +0 -99
  110. package/patterns/ai-tic-rubric.json +0 -252
  111. package/patterns/banks/composite-fusion.json +0 -48
  112. package/patterns/banks/discourse-rhythm.json +0 -95
  113. package/patterns/banks/lexical-signals.json +0 -92
  114. package/patterns/banks/syntactic-frames.json +0 -52
  115. package/patterns/banks/visual-deck.json +0 -44
  116. package/patterns/dimensions/artifacts.json +0 -121
  117. package/patterns/dimensions/discourse.json +0 -438
  118. package/patterns/dimensions/lexical.json +0 -198
  119. package/patterns/dimensions/rhythm.json +0 -258
  120. package/patterns/dimensions/syntactic.json +0 -285
  121. package/patterns/dimensions/visual-and-deck.json +0 -530
  122. package/patterns/taxonomy.json +0 -112
  123. package/src/core.mjs +0 -5497
  124. package/src/dislop/review-picker.vim +0 -114
  125. package/src/local-model.mjs +0 -997
  126. package/src/pattern-engine.mjs +0 -1003
  127. package/src/pocket-model.mjs +0 -729
  128. package/src/review-apply.mjs +0 -151
  129. package/src/review-client.mjs +0 -1073
package/README.md CHANGED
@@ -1,300 +1,409 @@
1
- <p align="center">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="./assets/banner-dark.svg">
4
- <img src="./assets/banner-light.svg" alt="dislop — Cutting AI slop is real productivity." width="100%">
5
- </picture>
6
- </p>
7
-
8
- <p align="center">
9
- <a href="./README.zh-CN.md">简体中文</a> ·
10
- <a href="https://dislop.com/">Try it at dislop.com</a> ·
11
- <a href="https://dislop.com/guides/">Guides</a> ·
12
- <a href="https://dislop.com/rules/">Rule Catalog</a> ·
13
- <a href="./awesome/README.md">Awesome Anti-Slop</a> ·
14
- <a href="https://www.npmjs.com/package/dislop">npm</a> ·
15
- <a href="https://pypi.org/project/dislop/">PyPI</a> ·
16
- <a href="https://x.com/dislop_ai">X (@dislop_ai)</a> ·
17
- <a href="./LICENSE">Apache-2.0</a>
18
- </p>
19
-
20
- **Cutting AI slop is real productivity.** `dislop` is a linter for AI slop. Built to run inside your agent, CLI, and CI, with a browser workbench ready whenever you want to check a draft yourself. It catches AI-sounding text and template layouts in docs, web pages, and slides before you send them. Its rules come from vetted community projects and corpus findings, and the repo keeps a list of 90 related tools.
21
-
22
- It comes in three parts:
23
-
24
- - **Markdown-only Skill**: genre reference cards with zero scripts.
25
- - **Open-source CLI & editor plugins**: offline checks across Markdown, HTML/CSS/JSX/SVG, PNG/JPEG/WebP/GIF, Word, PowerPoint, and PDF slides.
26
- - **Official Cloud MCP & Web Workbench** (`https://dislop.com/mcp`): multi-model review by genre without local setup.
27
-
28
- Here is a short launch note straight from a model:
1
+ # dislop
29
2
 
30
- ```text
31
- Certainly! Here is the launch note. It's worth noting that exports are a game-changer, finishing in up to 12 minutes for workspaces above 500,000 rows.
32
- ```
3
+ English | [Chinese (zh-CN)](./README.zh-CN.md)
33
4
 
34
- `dislop check launch-note.md` flags three things:
5
+ **Cutting AI slop is real productivity.**
35
6
 
36
- ```text
37
- [ERROR] launch-note.md:1:1 chatbot-artifact "Certainly! Here is"
38
- [WARNING] launch-note.md:1:37 en-throat-clearing-opener "It's worth noting that"
39
- [INFO] launch-note.md:1:75 en-cliche-lexicon "game-changer"
40
- ```
7
+ `dislop` is a pluggable editorial and artifact linter built on a zero-dependency Node.js (`>= 20`) micro-kernel. It audits Markdown, plain text, HTML/CSS/JSX/TSX/SVG, Word (`.docx`), PowerPoint (`.pptx`), PDF, and raster images before publication, separating objective delivery **Defects** from non-blocking editorial **Suggestions**.
41
8
 
42
- If you rewrite it into a second-order AI slogan (`This isn't just an upgrade — it's a new standard.`), running `dislop check` catches that too. Clean it up into plain prose and `dislop check` exits `0`.
9
+ See [docs/architecture.md](./docs/architecture.md) for the full kernel lifecycle, [CONTRIBUTING.md](./CONTRIBUTING.md) for custom Pack authoring, [slop-samples/](./slop-samples/) for language-specific test samples (`en.md`, `zh-CN.md`), and [docs/MIGRATION-TODO.md](./docs/MIGRATION-TODO.md) for pending repository extraction items.
43
10
 
44
- <p align="center">
45
- <img src="./assets/demos/proof-cycle-en-v2.gif" alt="dislop checking a launch note across 3 states: flagging chatbot artifact and filler, catching a second-order slogan, and passing with exit 0" width="840">
46
- </p>
11
+ ## Core Design
47
12
 
48
- It inspects Markdown, plain text, HTML/CSS/JSX/SVG, PNG/JPEG/WebP/GIF images, Word (`.docx`), PowerPoint (`.pptx`), and PDF slides (`.pdf`). The open-source CLI and local plugins run offline with zero uploads, bundling all **7 built-in packs (`53` rules)** and extended structural checks. Zero hits only means no known pattern matched—it does not prove deep content quality.
13
+ 1. **Micro-Kernel + Stage-Gated Packs (`dislop/sdk`)**:
14
+ - The kernel owns document coordinate parsing (`DocumentModel`), immutable safety and prompt-injection invariants, the Dual Post-LLM Fact Gate, 3-Tier LLM routing, lossless coordinate patching, and CI exit-code arbitration.
15
+ - Rules live in modular Packs under `packs/<scope-or-lang>/<scenario>/{pack.json,scripts/,prompts/}` (`common/*` structural checks + `en/*` and `zh/*` language packs across `artifact-qa`, `prose`, `web-ui`, and `slide-deck`), where `scripts/` and `prompts/` are loaded lazily on demand.
16
+ 2. **Dual-Track Taxonomy (`Defect` vs. `Suggestion`)**:
17
+ - **Prose never breaks CI**: Editorial anti-slop findings are `Suggestion`s (`strong | moderate | hint`) and always return **Exit Code `0`** (mapped to `"note"` in SARIF).
18
+ - **Objective delivery bugs fail CI**: Unfilled `[TODO]` placeholders, stray chatbot wrappers, broken local links, and raw Markdown leaked into `.docx`/`.pptx` are `Defect`s (`error | warning`) emitted strictly by deterministic `scripts/` hooks. Only unresolved `Defect: error` returns **Exit Code `1`**.
19
+ 3. **Local-First Privacy with 3-Tier Semantic Upgrade**:
20
+ - Runs locally with zero external uploads by default (`--engine local`), using deterministic Pack scripts plus an optional Tier 3 local model (`dislop model pull`, powered by [Ollama](https://ollama.com); if Ollama is not installed, `dislop` falls back to offline deterministic rules and notes how to install it).
21
+ - Opt into `--engine auto`, `--engine cloud` (`dislop login`), or `--engine byok` (OpenAI-compatible, Anthropic, Gemini, local proxies, Ollama/vLLM) guarded by a first-run host consent gate (`privacy-gate.mjs`).
22
+ 4. **Dual Post-LLM Fact & Anti-Injection Gate**:
23
+ - Every proposed replacement is verified to preserve numbers, units, percentages, URLs, inline code spans, and proper nouns—while blocking fabricated numbers, injected URLs, or injected code spans and running custom `verifyFix()` hooks.
49
24
 
50
- For hosted review, sign in at [dislop.com](https://dislop.com/) or connect Official Cloud MCP (`https://dislop.com/mcp`): `dislop_review` returns structured issues and edit guidance for your local agent to revise in project context.
25
+ ## Quick Start
51
26
 
52
- ## Quick start
27
+ ```bash
28
+ # 1. Read-only check (local by default, zero network upload)
29
+ npx --yes dislop check README.md
53
30
 
54
- ### One-line handoff to your Agent (evaluate, install, and run first check)
31
+ # 2. Compact output for coding and writing agents
32
+ npx --yes dislop check docs/ --format agent
55
33
 
56
- Paste this sentence into your coding or office agent (Claude Code, Codex, Cursor, OpenClaw, etc.) so it reads `https://dislop.com/llms.txt`, selects the right surface for your environment, configures it, and checks existing files:
34
+ # 3. Interactive hunk-by-hunk review in terminal (y/n/e/p/a/A/s/u/q)
35
+ npx --yes dislop fix draft.md
57
36
 
58
- ```text
59
- Read https://dislop.com/llms.txt, evaluate which dislop setup fits my environment and project (Skill, offline CLI, or Cloud MCP), install and configure it, and run a first check on our files.
60
- ```
37
+ # 4. Non-interactive batch cleanup of verified deterministic 'safe' items
38
+ npx --yes dislop fix draft.md --auto --backup
61
39
 
62
- ### Node.js 20+ (npm, zero dependencies, all 7 packs bundled offline)
40
+ # 5. Verify a revised draft preserved all facts against git HEAD
41
+ npx --yes dislop verify --git HEAD draft.md
42
+ ```
63
43
 
64
- ```bash
65
- # 1. Check the current folder (exits 1 on core AI artifact errors; prints cliché warnings)
66
- npx --yes dislop check .
44
+ ## Execution Tiers on `slop-samples/en.md`
67
45
 
68
- # 2. Inspect a rule's check question and Before / Fallback / Clean examples
69
- npx --yes dislop explain negation-pivot-frame
46
+ All outputs below were captured verbatim against [slop-samples/en.md](./slop-samples/en.md) (for Chinese anti-slop use cases on [slop-samples/zh-CN.md](./slop-samples/zh-CN.md), see [README.zh-CN.md](./README.zh-CN.md)).
70
47
 
71
- # 3. Check only lines changed against main and emit GitHub PR annotations
72
- npx --yes dislop check --changed origin/main --format github
73
- ```
48
+ ### Baseline: Deterministic Script Packs (`--no-llm`, 0 tokens, offline)
74
49
 
75
- <details>
76
- <summary>More CLI commands (deep checks, review, verify, personal style, Python)</summary>
50
+ Runs only Pack `scripts/` hooks (`prompts/` are never loaded). Catches objective delivery `DEFECT`s (`[oaicite:1]`, `[Company Name]`, `[TODO: ...]`, empty/dead links, assistant wrappers) and self-contained syntactic `SUGGESTION`s in milliseconds:
77
51
 
78
52
  ```bash
79
- # Deep inspection (auto-routed pack + scenario register + rhythm stats + Pocket ML + pattern banks, compact JSON)
80
- npx --yes dislop check draft.md --pack auto --register argumentative --deep --profile --compact --json
81
-
82
- # Multi-signal BYOK review, scenario-aware anti-degradation check, three-layer doctor, and offline voice card
83
- npx --yes dislop review draft.md --register casual
84
- npx --yes dislop verify --git HEAD draft.md --register casual
85
- npx --yes dislop doctor
86
- npx --yes dislop voice my-notes.md
87
-
88
- # Python 3.10+ (PyPI, zero dependencies)
89
- uvx dislop check quarterly-review.pptx
90
- pip install dislop && dislop check .
53
+ dislop check slop-samples/en.md --no-llm --format agent
91
54
  ```
92
55
 
93
- </details>
94
-
95
- <p align="center">
96
- <img src="./assets/demos/cli-check-en-v2.gif" alt="dislop CLI offline check failing with exit code 1 on draft and passing with exit code 0 after cleanup" width="840">
97
- </p>
98
-
99
- ### Apply review suggestions
100
-
101
- Open the Vim picker for a local draft, or save a JSON review and apply selected edits later.
102
-
103
- ```sh
104
- dislop review draft.md --offline --interactive-apply
105
- dislop review draft.md --offline --json > review.json
106
- dislop apply --review-file review.json --source-file draft.md --include 2,5
56
+ ```text
57
+ # dislop file=slop-samples/en.md engine=deterministic defects=8 suggestions=6
58
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
59
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
60
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
61
+ fix: DELETE
62
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
63
+ quote: "[oaicite:1]"
64
+ reason: Internal AI search/citation token leaked into output text.
65
+ fix: DELETE
66
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
67
+ quote: "[Company Name]"
68
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
69
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
70
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
71
+ quote: "[TODO: confirm incident owner]"
72
+ reason: Unfilled developer or template token left in deliverable.
73
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
74
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
75
+ quote: "[on-call runbook]()"
76
+ reason: Link has an empty destination URL.
77
+ prompt: Provide a valid destination URL or unwrap the link.
78
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
79
+ quote: "I hope this helps!"
80
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
81
+ fix: DELETE
82
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
83
+ quote: "Let me know if you'd like any further adjustments."
84
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
85
+ fix: DELETE
86
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
87
+ quote: "[incident timeline](#)"
88
+ reason: Placeholder non-navigating link target '#'.
89
+ prompt: Wire a real destination URL or use a <button type="button"> control.
90
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
91
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
92
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
93
+ fix: DELETE
94
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
95
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
96
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
97
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
98
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
99
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
100
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
101
+ fix: "It is a new reliability baseline for our checkout pipeline."
102
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
103
+ quote: "Looking ahead, the possibilities are truly endless."
104
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
105
+ fix: DELETE
106
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
107
+ quote: "Why does this matter?"
108
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
109
+ fix: DELETE
110
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
111
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
112
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
113
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
107
114
  ```
108
115
 
109
- Use the `edit.id` values in your report. To apply every available edit except one, use `--all --exclude 3`. In Vim, move with `j`/`k` or the arrow keys, accept with `y`, reject with `n`, and press Enter to write your choices. Press `q` to discard them. Items that need a source or a writer’s judgment appear as advice. Batch apply runs without Vim. Both commands apply edits to supported UTF-8 text files, including Markdown and HTML. If the file has changed since review, generate a fresh report.
110
-
111
- ## AI artifacts vs. style warnings
112
-
113
- Auto-rewriters often trade one AI cliché for another or flatten your voice into a generic template. Flat banned-word lists also cause false alarms on ordinary nouns (`Delve` debugger, `wool tapestry`).
114
-
115
- `dislop` splits its 53 rules across 7 bundled packs into two layers:
116
-
117
- 1. **AI delivery artifacts (`packs/core/`, `severity: error`, always on)**: Clear leftovers from AI generation—stray chatbot greetings (`Certainly! Here is...`, `[oaicite:1]`), unfilled `[insert ...]` / `{{var}}` / `[TBD]` placeholders, raw Markdown asterisks pasted unrendered into `.docx`/`.pptx`, and dead `<a href="#">` placeholder buttons.
118
- 2. **Built-in scenario & vertical packs (`warning` / `info`, advisory by default, 0 network downloads)**: `business-brief`, `engineering-spec` (PR diff parrots, shallow root causes, unowned action items), `regulated-comms` (unsubstantiated superlatives, unanchored `"10x faster"` multipliers), `literary-essay`, `deck-and-ui`, and `executive-deck` (process-only slide titles, 4+ consecutive identical slide skeletons). Each rule includes a check question, before / still sounds like AI / after examples, and automated hit/clean tests.
119
-
120
- ## What it reads
121
-
122
- Both the Node.js CLI (`bin/dislop.mjs`) and the Python CLI (`src/dislop/`) run with zero external runtime dependencies and pass the same conformance suite (`tests/test_conformance.py`).
123
-
124
- | What you bring | Extensions | What `dislop` catches | Known boundary |
125
- |---|---|---|---|
126
- | Drafts & docs | `.md`, `.mdx`, `.txt` | AI artifacts + throat-clearing openers, `"Not X, but Y"` pivots, staccato slogan runs, bureaucratic padding, four-character triads, moralizing endings, unsourced claims, bold-lead bullet walls, em-dash overuse, half-width CJK punctuation | Code blocks, inline code, URLs, blockquotes, and `dislop-quote` blocks are masked for style rules |
127
- | Web pages, SVG & UI | `.html`, `.css`, `.jsx`, `.tsx`, `.svg` | Dead `<a href="#">` placeholder links, unexplained `<button disabled>`, purple-pink AI gradients (incl. SVG gradients), `blur-3xl` glow orbs, pulsing dots, emoji chrome, icon-tile grids, fake window dots, `01/02/03` kickers, pill soup, 3-level nested boxes, missing `viewBox`, overlapping `<text>`, orphaned `<defs>` | Static per-file inspection; runtime DOM state still needs browser tests |
128
- | Raster images | `.png`, `.jpg`, `.jpeg`, `.webp`, `.gif` | Unstripped A1111/ComfyUI workflow prompt parameters (`warning`), C2PA/IPTC AI provenance tags (`info`, keeping required legal disclosures), and PNG/GIF dark-neon purple or plastic oversaturated palette heuristics | Pixel heuristics require uncompressed 8-bit PNG (`>= 64x64`) or GIF frame 0 (`>= 64x64`); JPEG/WebP inspect metadata only |
129
- | Word | `.docx` | Joined `<w:t>` runs, raw Markdown asterisks pasted from chat, and prose slop rules (`para N`) | Reports paragraph number rather than rendered page number |
130
- | PowerPoint & PDF | `.pptx`, `.pdf` | Slide order (`p:sldIdLst`), raw Markdown, landscape slide word-walls (`> 120` words / `> 280` Han chars), bullet caps (`> 6`), `<a:normAutofit>` shrink (`< 80%`), generic/process titles, layout monotony, multi-page raster-only PDFs, collapsed type scales (`< 1.2x` or `< 9.5pt`), purple RGB shadings | Portrait PDFs exempt from slide rules; encrypted PDFs report `[SKIP]` honestly; not a generic PDF/X print preflight |
131
-
132
- <table>
133
- <tr>
134
- <td width="50%" align="center">
135
- <img src="./assets/demos/workbench-live-en-v2.gif" alt="dislop.com offline browser workbench checking original draft, 2nd-order slop, and clean copy" width="100%"><br>
136
- <sub>Offline browser workbench in action</sub>
137
- </td>
138
- <td width="50%" align="center">
139
- <img src="./assets/demos/ui-slop-en-v2.gif" alt="Auditing AI gradient, pill wall, and dead href='#' control before switching to a plain 1px sheet" width="100%"><br>
140
- <sub>UI template slop audit before and after</sub>
141
- </td>
142
- </tr>
143
- <tr>
144
- <td colspan="2" align="center">
145
- <img src="./assets/demos/deck-office-en-v2.gif" alt="dislop auditing quarterly-review.pptx for raw markdown leaks, word walls, 68% autofit shrink, and process titles" width="840"><br>
146
- <sub>PowerPoint (.pptx) audit: raw markdown, word walls, autofit shrink, and process titles</sub>
147
- </td>
148
- </tr>
149
- </table>
150
-
151
- ## Guides, Rule Catalog & Awesome Anti-Slop
152
-
153
- Beyond the CLI, this repository compiles into a full reference library at `dislop.com`:
154
-
155
- - **[Rule Catalog (53 rules)](https://dislop.com/rules/)**: Every built-in rule with its Deletion Test question, Before / Fallback / Clean examples, and one-line citation links for PR reviews.
156
- - **[Practical Guides](https://dislop.com/guides/)**: [What is AI slop](https://dislop.com/guides/what-is-ai-slop/) · [Remove AI slop from writing](https://dislop.com/guides/remove-ai-slop-writing/) · [Fix AI slop in web UI](https://dislop.com/guides/fix-ai-slop-web-ui/) · [Clean up PPTX & DOCX](https://dislop.com/guides/deslop-pptx-docx/) · [Agent, CLI & CI setup](https://dislop.com/guides/agent-cli-mcp-tutorial/) · [Linter vs. detector vs. skill](https://dislop.com/guides/linter-vs-detector-vs-skill/).
157
- - **[Awesome Anti-Slop (90 tools)](./awesome/README.md)** ([Chinese edition](./awesome/README.zh-CN.md) · [Interactive web filter](https://dislop.com/awesome/)): Verified linters, writing skills, UI rules, PR policies, and papers ([index.json](https://dislop.com/awesome/index.json) · [index.md](https://dislop.com/awesome/index.md)).
158
- - **Submit a sample**: Found a classic AI-slop phrase, template card, or messy slide? [Submit a redacted sample](https://github.com/dislop-ai/dislop/issues/new?template=slop_sample.yml) so it can inform future fixtures.
159
-
160
- ## Use it across agents, editors, and CI
161
-
162
- | Surface | One-liner or 1-click install | What you get |
163
- |---|---|---|
164
- | **Any AI chat** | Paste: `Read https://dislop.com/llms.txt and apply its anti-slop rules and checks before delivering my next draft.` | Zero install; reads the `~2.4 KB` index, task guides (`/tasks/*.md`), or atomic rule cards (`/rules/<id>.md`) |
165
- | **Agent Skill (75+ hosts)** | `npx skills add dislop-ai/dislop` | Installs pure-Markdown [skills/dislop/SKILL.md](./skills/dislop/SKILL.md) (`+` 4 task-focused skills: [deslop-docs](./skills/deslop-docs/SKILL.md), [deslop-slides-docx](./skills/deslop-slides-docx/SKILL.md), [deslop-web-ui](./skills/deslop-web-ui/SKILL.md), [deslop-verify](./skills/deslop-verify/SKILL.md); `0` scripts, `0` network calls) |
166
- | **Claude Code Plugin** | `/plugin marketplace add dislop-ai/dislop` then `/plugin install dislop@dislop-ai` | Bundles pure-doc Skill + Official Cloud MCP connection (`~130` always-on tokens) |
167
- | **OpenAI Codex Plugin** | `codex plugin marketplace add dislop-ai/dislop` then `codex plugin add dislop@dislop-ai` | Ships native UI card metadata ([openai.yaml](./skills/dislop/agents/openai.yaml)) and `$dislop` trigger |
168
- | **Gemini CLI Extension** | `gemini extensions install https://github.com/dislop-ai/dislop` | Connects Official Cloud MCP `https://dislop.com/mcp` via [gemini-extension.json](./gemini-extension.json) |
169
- | **Official MCP Registry** | Search `io.github.dislop-ai/dislop` on `registry.modelcontextprotocol.io` | Lists the Official Cloud MCP endpoint `https://dislop.com/mcp` (Streamable HTTP) |
170
- | **VS Code / Cursor 1-Click MCP** | [Install in VS Code (Cloud MCP)](https://vscode.dev/redirect/mcp/install?name=dislop&config=%7B%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fdislop.com%2Fmcp%22%7D) · [Install in Cursor (Cloud MCP)](cursor://anysphere.cursor-deeplink/mcp/install?name=dislop&config=eyJ0eXBlIjoiaHR0cCIsInVybCI6Imh0dHBzOi8vZGlzbG9wLmNvbS9tY3AifQ==) | Opens the editor's native confirmation dialog without manual JSON edits |
171
- | **GitHub Action / `pre-commit`** | Reference `uses: dislop-ai/dislop@main` ([action.yml](./action.yml) and [.pre-commit-hooks.yaml](./.pre-commit-hooks.yaml)) | Gates modified lines in PRs with inline annotations or SARIF 2.1.0 |
172
-
173
- <p align="center">
174
- <img src="./assets/demos/agent-workflow-en-v2.gif" alt="Coding Agent and CI loop: reading pure-Markdown SKILL.md, gating PR diff with exit code 1, and passing dislop verify" width="840"><br>
175
- <sub>Agent + CI closed loop: Skill before drafting, diff gate before commit, verify after edits</sub>
176
- </p>
177
-
178
- ### Connect Official Cloud MCP (`Claude Code`, `Codex`, `Cursor`, `WorkBuddy`, `Claude Cowork`)
116
+ ### Tier 1: Official Cloud (`--engine cloud`)
179
117
 
180
- ```json
181
- {
182
- "mcpServers": {
183
- "dislop": {
184
- "type": "http",
185
- "url": "https://dislop.com/mcp",
186
- "headers": {
187
- "Authorization": "Bearer dslp_your_token_here"
188
- }
189
- }
190
- }
191
- }
118
+ ```bash
119
+ dislop login --token dslp_...
120
+ dislop check slop-samples/en.md --engine cloud --format agent
192
121
  ```
193
122
 
194
- Official Cloud MCP (`https://dislop.com/mcp`, auto-discovery card at `https://dislop.com/.well-known/mcp/server-card.json`) exposes `dislop_check`, `dislop_verify`, and `dislop_rules` at 0 credits without login. Signing in via OAuth 2.1 or claiming a free Bearer key at [dislop.com](https://dislop.com/#cloud-token-box) unlocks 30 monthly credits for `dislop_review` (1 credit), `dislop_deslop` (2 credits), `dislop_office` (2–3 credits for `.docx`/`.pptx`), `dislop_visual_review` (2 credits), and `dislop_voice_extract` (2 credits).
123
+ > **Status:** Official Cloud backend support for the `dislop.report/1` micro-kernel contract is currently under construction; sample output will be added once the hosted endpoint is live.
195
124
 
196
- ## Configure it, or overrule it
125
+ ### Tier 2: BYOK / OpenAI-Compatible Endpoint (`--engine byok`)
197
126
 
198
- Settings load in order from `~/.config/dislop/config.json` (plus optional personal style card `voice.json`), project `.dislop.json`, and Git-ignored `.dislop.local.json`. Run `dislop init` to create `.dislop.json`:
127
+ Combines deterministic `DEFECT` detection with frontier semantic `SUGGESTION` analysis—catching unchosen `Option A / Option B` branches (`[P10-S1|L16]`), disguised prose placeholders (`Mention the Q3 error-budget burn rate here once SRE signs off` at `[P10-S3|L16]`), and implicit assistant handoffs (`Based on the notes you shared...` at `[P3-S2|L5]`):
199
128
 
200
- ```json
201
- {
202
- "failOn": "error",
203
- "ignore": ["vendor/**", "dist/**"],
204
- "overrides": [
205
- { "files": ["docs/**/*.md"], "pack": "business-brief" },
206
- { "files": ["essays/**/*.md"], "pack": "literary-essay" },
207
- { "files": ["site/**/*.{html,css,svg}"], "pack": "deck-and-ui" }
208
- ],
209
- "allow": ["Delve", "Bayeux Tapestry"],
210
- "rules": {
211
- "bold-lead-list-wall": "info"
212
- }
213
- }
129
+ ```bash
130
+ dislop check slop-samples/en.md --engine byok --provider gemini --format agent
214
131
  ```
215
132
 
216
- For a narrow one-off exception, add a reason above the line (`--report-unused` flags stale comments):
217
-
218
- ```markdown
219
- <!-- dislop-ignore-next-line en-cliche-lexicon -- quoting vendor press release verbatim -->
133
+ ```text
134
+ # dislop file=slop-samples/en.md engine=byok:gemini-3.8-flash defects=8 suggestions=9
135
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
136
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
137
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
138
+ fix: DELETE
139
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
140
+ quote: "[oaicite:1]"
141
+ reason: Internal AI search/citation token leaked into output text.
142
+ fix: DELETE
143
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
144
+ quote: "[Company Name]"
145
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
146
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
147
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
148
+ quote: "[TODO: confirm incident owner]"
149
+ reason: Unfilled developer or template token left in deliverable.
150
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
151
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
152
+ quote: "[on-call runbook]()"
153
+ reason: Link has an empty destination URL.
154
+ prompt: Provide a valid destination URL or unwrap the link.
155
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
156
+ quote: "I hope this helps!"
157
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
158
+ fix: DELETE
159
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
160
+ quote: "Let me know if you'd like any further adjustments."
161
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
162
+ fix: DELETE
163
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
164
+ quote: "[incident timeline](#)"
165
+ reason: Placeholder non-navigating link target '#'.
166
+ prompt: Wire a real destination URL or use a <button type="button"> control.
167
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
168
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
169
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
170
+ fix: DELETE
171
+ [P3-S2|L5] SUGGESTION(strong,review) en/artifact-qa/implicit-assistant-framing
172
+ quote: "Based on the notes you shared, I have organized the key findings for [Company Name] below [oaicite:1]."
173
+ reason: Assistant handoff sentence explaining chatbot actions to the prompt author.
174
+ fix: DELETE
175
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
176
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
177
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
178
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
179
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
180
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
181
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
182
+ fix: "It is a new reliability baseline for our checkout pipeline."
183
+ [P10-S1|L16] SUGGESTION(strong,manual) common/artifact-qa/unchosen-draft-options
184
+ quote: "Option A: Roll out pooler settings to EU shards on Tuesday."
185
+ reason: Inline text retains unchosen draft alternatives left over from drafting.
186
+ prompt: Select either [Option A] or [Option B] and remove the unused alternative.
187
+ [P10-S3|L16] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
188
+ quote: "Mention the Q3 error-budget burn rate here once SRE signs off."
189
+ reason: Prose note formulated as an author-facing reminder rather than published postmortem content.
190
+ prompt: Insert the confirmed [Q3 error-budget burn rate percentage] from SRE, or remove the note.
191
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
192
+ quote: "Looking ahead, the possibilities are truly endless."
193
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
194
+ fix: DELETE
195
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
196
+ quote: "Why does this matter?"
197
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
198
+ fix: DELETE
199
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
200
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
201
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
202
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
220
203
  ```
221
204
 
222
- ### Install once locally (true air-gapped / fast hooks)
205
+ ### Tier 3: Managed Local Small Model (`--engine local`)
223
206
 
224
- ```bash
225
- # Node.js 20+ (published on npm, < 250 KB tarball, zero network after install)
226
- npm install -g dislop
227
- dislop check .
207
+ > **Prerequisite — [Ollama](https://ollama.com):** Tier 3 local semantic checks (`--engine local` LLM mode and `dislop model pull`) require **Ollama** installed and running locally (`http://127.0.0.1:11434/v1`). `dislop --help`, `dislop doctor`, `dislop model`, and `dislop check --engine local` automatically detect whether Ollama is missing or stopped and show installation instructions when needed.
228
208
 
229
- # Or Python 3.10+ (published on PyPI, zero external dependencies)
230
- pip install dislop
231
- dislop check .
232
- ```
209
+ Runs completely on-device via Ollama with zero external network traffic. Even when an ultra-small 1.5B model (`qwen2.5:1.5b`) produces noisy rule classifications on bullet items, `dislop` confines all LLM items strictly to `SUGGESTION` and downgrades unverified rewrites to `manual` so `dislop fix --auto` never corrupts technical metrics (use `qwen2.5-7b-instruct` for tighter local precision):
233
210
 
234
- ### Open-Source Local (`Skill` + `CLI`) vs. Official Cloud (`dislop.com/mcp`)
211
+ ```bash
212
+ # Install and start Ollama (macOS Homebrew example; see https://ollama.com for Linux/Windows)
213
+ brew install ollama
214
+ ollama serve &
235
215
 
236
- - **Open Source (`dislop-ai/dislop`, Apache-2.0)**: Pure-Markdown `SKILL.md` + local `./references/*.md` (no bundled scripts), zero-dependency Node/Python CLI (`check`, `patterns`, `voice`, `explain`, `packs`, `catalog`, `resources`), all 7 built-in packs (`53` rules) + 65-pattern catalog (`patterns/`), bundled `14.6 KB` gzip (`49.0 KB` raw) Pocket ML ensemble (`models/pocket-slop-v1.json`, `< 0.5 ms`, `100.0%` F1 / `0.0%` Clean FPR on `stealth-vapor-v1`), `Awesome Anti-Slop`, and `dislop-bench v2` + `visual-design-v1`. `check` / `patterns` / `voice` make `0` network calls so private drafts never leave your machine (existing `--mcp` and optional local-model modules stay in-repo during real-world evaluation).
237
- - **Official Cloud MCP & Web Workbench (`https://dislop.com/mcp`, `https://dislop.com/#pricing`)**: Closed-source hosted backend calling paid-tier Google Gemini endpoints that do not train on your text (no draft storage or text logging; see [privacy.md](https://dislop.com/privacy.md)). Deterministic `dislop_check`, `dislop_verify`, and `dislop_rules` run at 0 credits without login; OAuth 2.1 or a free key unlocks **30 monthly credits** for `dislop_review` (1 credit), `dislop_deslop` (2 credits), `dislop_office` (2–3 credits), `dislop_visual_review` (2 credits), and `dislop_voice_extract` (2 credits, `dislop.voice/1`), with early-access waitlists for Pro (`$12/mo`, 1,500 credits), PAYGO (`$10 / 800 credits`), and Team (`$29/seat/mo`).
216
+ # Pull and register a Tier 3 model, then run local checks
217
+ dislop model pull qwen2.5-1.5b-instruct
218
+ dislop check slop-samples/en.md --engine local --format agent
219
+ ```
238
220
 
239
- ## Anti-slop benchmark (`dislop-bench v2`)
221
+ ```text
222
+ # dislop file=slop-samples/en.md engine=local:qwen2.5:1.5b defects=8 suggestions=20
223
+ [P1-S1|L1] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
224
+ quote: "Certainly! Here is a polished draft of your Q3 database migration postmortem."
225
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
226
+ fix: DELETE
227
+ [P3-S2|L5] DEFECT(error,safe) common/artifact-qa/chatbot-citation-leak
228
+ quote: "[oaicite:1]"
229
+ reason: Internal AI search/citation token leaked into output text.
230
+ fix: DELETE
231
+ [P3-S2|L5] DEFECT(error,manual) en/artifact-qa/unfilled-placeholder
232
+ quote: "[Company Name]"
233
+ reason: Unfilled English template placeholder or dummy Latin copy left in deliverable.
234
+ prompt: Supply the real copy in place of '[Company Name]', or delete the unfinished sentence.
235
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/unfilled-placeholder
236
+ quote: "[TODO: confirm incident owner]"
237
+ reason: Unfilled developer or template token left in deliverable.
238
+ prompt: Replace '[TODO: confirm incident owner]' with the real value before publishing, or remove the unfinished sentence.
239
+ [P5-S2|L9] DEFECT(error,manual) common/artifact-qa/empty-link-target
240
+ quote: "[on-call runbook]()"
241
+ reason: Link has an empty destination URL.
242
+ prompt: Provide a valid destination URL or unwrap the link.
243
+ [P12-S1|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
244
+ quote: "I hope this helps!"
245
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
246
+ fix: DELETE
247
+ [P12-S2|L20] DEFECT(error,safe) en/artifact-qa/chatbot-artifact
248
+ quote: "Let me know if you'd like any further adjustments."
249
+ reason: Conversational English assistant wrapper left in the deliverable; safe to delete.
250
+ fix: DELETE
251
+ [P5-S2|L9] DEFECT(warning,manual) common/artifact-qa/placeholder-dead-link
252
+ quote: "[incident timeline](#)"
253
+ reason: Placeholder non-navigating link target '#'.
254
+ prompt: Wire a real destination URL or use a <button type="button"> control.
255
+ [P1-S1|L1] SUGGESTION(strong,review) common/artifact-qa/unchosen-draft-options
256
+ quote: "Certainly!"
257
+ reason: The phrase 'Certainly!' is redundant and does not add any value to the document.
258
+ fix: DELETE
259
+ [P2-S1|L3] SUGGESTION(strong,manual) common/artifact-qa/meta-editing-note
260
+ quote: "Q3 Storage Tier Migration Notes"
261
+ reason: The note is a placeholder for future editorial work and does not belong in the published document.
262
+ prompt: Remove the stray editorial meta-note.
263
+ [P3-S1|L5] SUGGESTION(strong,safe) en/prose/hollow-transition
264
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
265
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
266
+ fix: DELETE
267
+ [P3-S1|L5] SUGGESTION(strong,manual) en/artifact-qa/implicit-assistant-framing
268
+ quote: "In today's rapidly evolving digital landscape, infrastructure reliability is a top priority."
269
+ reason: The sentence is a placeholder for future editorial work and does not belong in the published document.
270
+ prompt: Remove the assistant handoff sentence.
271
+ [P4-S1|L7] SUGGESTION(strong,safe) en/prose/throat-clearing
272
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
273
+ reason: Removes zero-information throat-clearing opener so the sentence opens directly on the claim.
274
+ fix: "PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
275
+ [P4-S1|L7] SUGGESTION(strong,manual) en/artifact-qa/disguised-placeholder-prose
276
+ quote: "It is worth noting that PostgreSQL p95 query latency dropped from 142ms to 18ms across 4 read replicas in `{{cluster_region}}`."
277
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
278
+ prompt: Replace the placeholder with the confirmed figure or link.
279
+ [P5-S1|L9] SUGGESTION(strong,review) en/prose/unprompted-negation
280
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
281
+ reason: Formulaic 'Not just X — it's Y' contrast shell; state the actual point directly without theatrical negation.
282
+ fix: "It is a new reliability baseline for our checkout pipeline."
283
+ [P5-S1|L9] SUGGESTION(strong,manual) en/artifact-qa/synthetic-example-entity
284
+ quote: "This isn't just a configuration tweak — it's a new reliability baseline for our checkout pipeline."
285
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
286
+ prompt: Replace the placeholder with the real organization or contact details.
287
+ [P6-S1|L11] SUGGESTION(strong,manual) en/prose/unprompted-negation
288
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
289
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
290
+ prompt: Replace the placeholder with the confirmed figure or link.
291
+ [P7-S1|L12] SUGGESTION(strong,manual) en/prose/hollow-transition
292
+ quote: "**Lower Memory**: Worker nodes stayed below 4.2GB RSS at peak load."
293
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
294
+ prompt: Replace the filler sentence with the concrete claim.
295
+ [P8-S1|L13] SUGGESTION(strong,manual) en/prose/throat-clearing
296
+ quote: "**Cleaner Telemetry**: Slow-query logs now sample queries above 50ms."
297
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
298
+ prompt: Replace the filler sentence with the concrete claim.
299
+ [P9-S1|L14] SUGGESTION(strong,manual) en/prose/moralizing-closer
300
+ quote: "**Simpler Rollbacks**: Snapshot restore scripts run from a single CLI flag."
301
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
302
+ prompt: Replace the filler sentence with the concrete claim.
303
+ [P11-S1|L18] SUGGESTION(strong,safe) en/prose/hollow-transition
304
+ quote: "Looking ahead, the possibilities are truly endless."
305
+ reason: Zero-information macro filler sentence; deleting it preserves all factual claims and causal links.
306
+ fix: DELETE
307
+ [P4-S2|L7] SUGGESTION(moderate,review) en/prose/rhetorical-self-qa
308
+ quote: "Why does this matter?"
309
+ reason: Removes mechanical assistant rhetorical bridge question so the answer states the point directly.
310
+ fix: DELETE
311
+ [P6-S1|L11] SUGGESTION(hint,manual) en/prose/bold-lead-list-wall
312
+ quote: "**Faster Failover**: Automated promotion finished in 9 seconds during chaos drills."
313
+ reason: Four or more consecutive '**Label**: description' list items create a mechanical assistant list wall.
314
+ prompt: Convert uniform bold-lead bullets into direct sentences or plain list items without bold title prefixes.
315
+ [P10-S1|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
316
+ quote: "Option A: Roll out pooler settings to EU shards on Tuesday."
317
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
318
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
319
+ [P10-S2|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
320
+ quote: "/ Option B: Hold EU rollout until after the billing freeze."
321
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
322
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
323
+ [P10-S3|L16] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
324
+ quote: "Mention the Q3 error-budget burn rate here once SRE signs off."
325
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
326
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
327
+ [P11-S1|L18] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
328
+ quote: "Looking ahead, the possibilities are truly endless."
329
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
330
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
331
+ [P12-S1|L20] SUGGESTION(hint,manual) en/prose/rhetorical-self-qa
332
+ quote: "I hope this helps!"
333
+ reason: The placeholder is a reminder to the writer and does not belong in the published document.
334
+ prompt: Merge the artificial question-and-answer pair into a single direct statement.
335
+ ```
240
336
 
241
- Run the full offline benchmark (`112` cross-modality detection samples across Node & Python + `18` end-to-end writing and design tasks comparing raw AI, naive humanizers, and `dislop`-guided revisions):
337
+ ## CLI Reference
242
338
 
243
- ```bash
244
- node scripts/run_benchmark.mjs --assert
339
+ ```text
340
+ dislop check <files/globs... | -> [options] Read-only Dual-Track linter (`-` reads stdin with `--stdin-filename`; `--changed` / `--since <ref>` scans git diffs)
341
+ dislop fix <files/globs...> [options] Interactive TTY hunk loop, or batch safe fixes (--auto)
342
+ dislop verify <before> <after> [--json] Verify edits preserved facts, qualifiers, polarity, links, and metrics
343
+ dislop verify --git [ref] <file> [--json] Verify working-tree edits against a Git revision
344
+ dislop init [--global] [--voice <glob>] Initialize project .dislop.json or ~/.config/dislop/config.json
345
+ dislop login [--token <dslp_*>] Save Official Cloud credentials
346
+ dislop logout Remove Official Cloud credentials
347
+ dislop voice <extract|show|clear> [files] Manage personal voice profile (voice.json)
348
+ dislop model <list|pull|rm> [name] Manage Tier 3 local models (requires Ollama)
349
+ dislop packs [list|lint <path>] [--json] List built-in Packs or lint external .pack.md / Pack dirs
350
+ dislop doctor [--json] Diagnose active routing tier, Ollama status, auth, config, and Packs
351
+ dislop worklog <status|list|show|stats|reflect|clear> Inspect local dev worklog & reflection summaries
352
+ dislop mcp Start local stdio MCP server (also `dislop-mcp`)
245
353
  ```
246
354
 
247
- Latest baseline on our own benchmark ([benchmarks/REPORT.md](./benchmarks/REPORT.md) and [benchmarks/PATTERN-BENCHMARK.md](./benchmarks/PATTERN-BENCHMARK.md)):
355
+ Key flags: `--fail-on <none|error|warning>` controls Defect CI exit thresholds (Suggestions remain non-blocking at Exit `0`), `--stdin-filename <name>` sets stdin format, and `--changed` / `--since <ref>` scope checks to modified git files.
248
356
 
249
- - **Core Detection (`Suite A`, 112 samples = 48 v1 + 16 `holdout-v1` + 48 `text-hard-v2`)**: Precision `100.0%` · Recall `100.0%` · Clean FPR `0.0%` · Adversarial Near-Miss FPR `0.0%` · 2nd-Order Trap Recall `100.0%` · Node/Python Rule & Statistical Profile Parity `100.0%`.
250
- - **Multi-Angle Pattern Benchmark (`154` samples = 48 + 16 + 62 `pattern-challenge-v2` + 28 `holdout-v2`)**: Precision `100.0%` · Recall `100.0%` · F1 `100.0%` · Clean FPR `0.0%` · Node/Python Parity `100.0%`.
251
- - **Bundled Pocket ML (`stealth-vapor-v1`, 24 paired samples; 36 blind eval with holdouts)**: `14.6 KB` gzip (`49.0 KB` raw), `< 0.5 ms`, `100.0%` F1, `0.0%` Clean FPR.
252
- - **End-to-End Revision (`Suite B`, 18 tasks = 12 `revision-v1` + 6 `revision-hard-v2`, weights `D1=45 / D2=20 / D3=25 / D4=10`)**: `raw_ai` **60.8 / 100** → `naive_humanizer` **70.8 / 100** (doubles 3rd-order slop and drops or invents numbers) → reference edits written to `dislop`'s rules **100.0 / 100** (`18/18` all-clear).
253
- - **Live 5-model comparison ([benchmarks/MODEL-COMPARISON.md](./benchmarks/MODEL-COMPARISON.md))**: Across `Gemini 3.1/3.5 Flash-Lite`, `Gemini 3.5/3.8 Flash`, and `Qwen 3.8 Flash`, bare prompts averaged `76.0–84.2 / 100` (`2/10–4/10` all-clear on the 10-task `revision-v1` live subset), while the `dislop` re-checked cloud pipeline lifted every model by **+15.8 to +22.3 points** (`97.0–100.0 / 100`, `8/10–10/10` all-clear; `Gemini 3.1 Flash-Lite` reached `98.5 / 100` in `1.2s` at `~$0.09 / 1k calls`).
357
+ ## Configuration Layering (`~/.config/dislop/config.json` vs `.dislop.json`)
254
358
 
255
- See [benchmarks/README.md](./benchmarks/README.md) to score your own model, Skill, or cloud endpoint (`--eval`) or export randomized blind human A/B review sheets (`--export-blind-sheet`).
359
+ Shared repo `.dislop.json` files are isolated under untrusted linter rules (`routing` limited to `"local"` or `"off"`, per-glob `overrides`, `extraPacks`, `rules`, `failOn`, `ignore`, and `voice.referenceFiles` inside the repo root). Put personal LLM backends and credentials ONLY in `~/.config/dislop/config.json` or an untracked `.dislop.local.json`:
256
360
 
257
- ## dislop checks dislop
361
+ ```json
362
+ {
363
+ "routing": "local",
364
+ "ignore": [".private/**"],
365
+ "failOn": "error",
366
+ "overrides": [
367
+ { "files": ["docs/**/*.md"], "packs": ["prose"] },
368
+ { "files": ["site/**/*.html"], "packs": ["web-ui"] }
369
+ ]
370
+ }
371
+ ```
258
372
 
259
- GitHub Actions CI runs `dislop pack-test` (164 fixture assertions in both Node and Python), 26 Python `unittest` conformance and engine tests across 4 modules (`test_conformance`, `test_engine`, `test_pattern_library`, `test_pocket_and_local_models`), pattern catalog checks (`node scripts/pattern_lab.mjs verify` and `assert`), and site checks (`tests/test_site.mjs`). It also runs `dislop check . --fail-on warning` across this repository's docs, `awesome/`, and `site/`.
373
+ User config (`~/.config/dislop/config.json`) holds credentials & providers:
260
374
 
261
- ## Docs & layout
375
+ ```json
376
+ {
377
+ "routing": "byok",
378
+ "activeProvider": "openai-default",
379
+ "approvedHosts": ["api.openai.com"],
380
+ "ignore": [".private/**"],
381
+ "concurrency": 4,
382
+ "providers": {
383
+ "openai-default": {
384
+ "protocol": "openai",
385
+ "baseUrl": "https://api.openai.com/v1",
386
+ "apiKeyEnv": "OPENAI_API_KEY",
387
+ "model": "gpt-4o-mini",
388
+ "structuredOutput": "json_schema",
389
+ "maxInputTokens": 16000
390
+ },
391
+ "local-ollama": {
392
+ "protocol": "openai",
393
+ "baseUrl": "http://127.0.0.1:11434/v1",
394
+ "apiKey": "ollama",
395
+ "model": "qwen2.5:7b",
396
+ "structuredOutput": "json_object",
397
+ "maxInputTokens": 8000
398
+ }
399
+ }
400
+ }
401
+ ```
262
402
 
263
- - [Product Brief](./PRODUCT.md) · [Brand & Voice Guide](./docs/brand-and-voice-guide.md) ([zh-CN](./docs/brand-and-voice-guide.zh-CN.md))
264
- - [Architecture](./docs/architecture.md) ([zh-CN](./docs/architecture.zh-CN.md)) · [Design System](./docs/design-system.md) ([zh-CN](./docs/design-system.zh-CN.md))
265
- - [Roadmap](./ROADMAP.md) ([zh-CN](./ROADMAP.zh-CN.md)) · [Releasing](./docs/releasing.md) · [Contributing](./CONTRIBUTING.md) · [Research Index](./docs/research/README.md) · [Changelog](./CHANGELOG.md)
403
+ ## Contributing & Custom Packs
266
404
 
267
- ```text
268
- dislop/
269
- ├── .agents/plugins/ # OpenAI Codex marketplace manifest (marketplace.json)
270
- ├── .claude-plugin/ # Claude Code plugin & marketplace manifests (pure-doc Skill + Official Cloud MCP)
271
- ├── .codex-plugin/ # OpenAI Codex native plugin manifest & UI card metadata
272
- ├── plugin.json # Agent Plugins 1.0 portable manifest (paired with root mcp.json)
273
- ├── gemini-extension.json # Gemini CLI Extension Gallery manifest
274
- ├── server.json # Official MCP Registry manifest (Official Cloud HTTP MCP)
275
- ├── action.yml # Reusable GitHub Marketplace incremental check Action
276
- ├── awesome/ # Awesome Anti-Slop (README.md & README.zh-CN.md, 90 entries)
277
- ├── benchmarks/ # Offline anti-slop benchmark datasets (CC0-1.0) & reproducible reports
278
- ├── bin/ # Node.js CLI (dislop.mjs) and compatibility launcher (dislop-mcp.mjs)
279
- ├── src/
280
- │ ├── core.mjs # Zero-dep ES module shared by Node CLI, MCP, and browser workbench
281
- │ ├── pattern-engine.mjs # Multi-angle 12-probe extended pattern-bank scanner
282
- │ ├── pocket-model.mjs# Bundled 14.6 KB gzip zero-dep Pocket ML ensemble & domain pack router
283
- │ ├── local-model.mjs# Hardware-aware optional local small-model advisor (Node.js)
284
- │ ├── binary-node.mjs# Zero-dep ZIP, PNG/JPEG/WebP/GIF, and PDF reader for Node.js
285
- │ └── dislop/ # Zero-dep Python 3.10+ engine, pattern scanner, local-model advisor, CLI, and MCP
286
- ├── packs/ # Declarative dislop.pack/2 manifests (7 built-in packs, 53 rules, 214 fixtures)
287
- ├── patterns/ # Structured 65-pattern anti-slop catalog across 6 dimensions & 7 angles
288
- ├── skills/dislop/ # Cross-host Agent Skill (SKILL.md + local ./references/ + openai.yaml)
289
- ├── tests/ # 26 Python unittest tests, Node/Python conformance, and site tests
290
- ├── scripts/ # Manifest lockstep sync (sync_manifests.mjs), site compiler & benchmarks
291
- ├── site/ # Compiled dislop.com workbench, /awesome/, and /llms.txt pages
292
- ├── assets/ # Logo mark, light/dark banners, and 1200x630 social preview card
293
- └── docs/ # Brand guide, architecture, design system, roadmap, and research
294
- ```
405
+ To build custom Packs (separated `pack.json` + `scripts/` + `prompts/`, single-file `<name>.pack.md` Markdown Packs, or programmatic `definePack()` plugins), see [CONTRIBUTING.md](./CONTRIBUTING.md).
295
406
 
296
407
  ## License
297
408
 
298
- [Apache License 2.0](./LICENSE)
299
-
300
- <!-- mcp-name: io.github.dislop-ai/dislop -->
409
+ [Apache-2.0](./LICENSE)