Public
Remote MCP: a gate that loops an AI until its prose is readable
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.

🚪 slop-gate

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.

Why this exists

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.

The loop

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.

Tools

tooldoes
check_draft{ text, ticket?, audience?, max_rounds? } → pass / revise / stop, with located findings and a diff against the previous round
explain_rulewhy a rule fires and what to do instead; no argument lists the whole lexicon
gate_historyround-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.

What it measures

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.

Connect

clienthow
Claude.aiSettings → Connectors → Add custom connector → https://slop-gate.val.run/
Claude Codeclaude mcp add slop-gate --transport http https://slop-gate.val.run/
Codex / Responses APIstreamable HTTP, no headers
MCP Inspectornpx @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

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"}'

Files

filerole
main.ts (http)routing, info page, SSE, /api/check REST mirror, /source
mcp.tsJSON-RPC plumbing — hand-rolled, no SDK. Also holds the instructions string that teaches the calling model the loop
tools.tsTOOLS + runTool, and the prose rendering of a verdict
lib/rules.tsthe phrase lexicon
lib/scan.tsstructural tells + readability, deterministic
lib/gate.tsticket 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).

Known limits

  • 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-density and x-not-y exist 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.ts is 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.