A remote MCP server that loops an AI until its prose is readable and doesn't carry the obvious fingerprints of generated text.
Endpoint: https://slop-gate.val.run/ — streamable HTTP, no auth, no key.
There are several good anti-slop checkers already
(defluff,
mcp-ai-slop-checker,
Slop or Not). All of them run locally — npx,
stdio, or a Mac app — and all of them stop at a score. The loop is left to
the calling agent, which is exactly where it falls apart: the agent checks once,
declares victory, or spins forever swapping synonyms.
slop-gate is a gate, not a scorer. It holds state across rounds, so it can say things a stateless checker can't:
- you cleared two tells and introduced three — whack-a-mole, the actual failure mode of LLM self-revision
- this draft is 97% identical to round 2 — cosmetic resubmit
- word count fell 340 → 120 — you deleted the problem instead of fixing it
- tells improved, Flesch dropped 12 — wrong trade
- round budget spent, stop — the loop always terminates
And it's remote, so a browser agent, a phone, or a hosted runner can use it with a URL and nothing else.
Rendering mermaid diagram...
Round 1 issues a ticket. Every later round passes it back, and the gate diffs the findings against what it told you last time.
| tool | does |
|---|---|
check_draft | { text, ticket?, audience?, max_rounds? } → pass / revise / stop, with located findings and a diff against the previous round |
explain_rule | why a rule fires and what to do instead; no argument lists the whole lexicon |
gate_history | round-by-round record for a ticket — words, Flesch, tell score, open rules |
audience sets the readability floor: plain = Flesch 60, general = 45
(default), technical = 25.
Two axes, scored independently so an agent can't win one by wrecking the other.
Tells — ~50 phrase rules (delve, testament, "it's not X — it's Y", chatbot postambles, engagement bait) plus computed structural ones: em-dash density, staccato fragment ratio, sentence-length variance, tricolon count, broetry paragraphs, emoji garnish.
Readability — Flesch reading ease, average sentence length, long-sentence share, paragraph shape.
Findings come in two severities. block must go to zero to pass. note is
context-dependent and never blocks — "robust" is a real word in a stats paper,
and a gate that forces you to remove it is making the writing worse.
This is a style measurement, not an authorship claim. It cannot tell you whether a human or a model wrote something, and neither can anything else. A low score means the prose reads generic. Plenty of human writing does.
The phrase lexicon is inverted back out of dcm31/slopify, which collected the community anti-slop skills (the-antislop, anti-ai-slop-writing, stop-slop) and turned every "never" into a "must". This turns it back.
| client | how |
|---|---|
| Claude.ai | Settings → Connectors → Add custom connector → https://slop-gate.val.run/ |
| Claude Code | claude mcp add slop-gate --transport http https://slop-gate.val.run/ |
| Codex / Responses API | streamable HTTP, no headers |
| MCP Inspector | npx @modelcontextprotocol/inspector → Streamable HTTP → the URL |
No auth by design: everything is deterministic and local to the val, so there's no upstream key to protect.
curl -s https://slop-gate.val.run/api/check -X POST \ -H 'Content-Type: application/json' \ -d '{"text":"In todays fast-paced world, lets delve into a game-changer.","audience":"general"}'
| file | role |
|---|---|
main.ts (http) | routing, info page, SSE, /api/check REST mirror, /source |
mcp.ts | JSON-RPC plumbing — hand-rolled, no SDK. Also holds the instructions string that teaches the calling model the loop |
tools.ts | TOOLS + runTool, and the prose rendering of a verdict |
lib/rules.ts | the phrase lexicon |
lib/scan.ts | structural tells + readability, deterministic |
lib/gate.ts | ticket state in sqlite, round diffing, the anti-gaming checks |
Built with the remote-mcp skill in
dcm31/skillbook;
plumbing follows dcm31/pebble-mcp-repro (SSE framing + prompts/resources
stubs, for strict clients).
- The whack-a-mole detector only sees named rules. It diffs rule-id sets
between rounds, so it catches you trading one known tell for another. It
cannot see a tell displaced onto something with no rule. This val's own
announcement traded em-dashes for arrows between round 1 and round 2 and got
a PASS;
arrow-densityandx-not-yexist because of that. Assume the same blind spot is still open for tells nobody has written down yet. - The lexicon is calibrated on verbose 2024-chatbot slop — delve, testament, journey. It is close to blind to the opposite register: clipped, subject-dropping, bold-scattered, table-and-bullet-garnished agent prose.
- Sentence splitting is regex-based; abbreviations and decimals can miscount.
- Flesch is a 1940s formula built on syllable counts. It rewards short words, which is usually right and occasionally stupid.
- English only.
lib/rules.tsis one array; adding or removing a rule is one line. - Tickets are stored forever. If that ever matters, add a TTL sweep to
gate_rounds.