Skip to main content

Humanize markdown and text files — strip AI-isms while preserving code, URLs, headings, and technical content.

Project description

unslop

Your CLAUDE.md sounds like ChatGPT wrote it. Stop that.

A bundled unslop skill that rewrites memory files (CLAUDE.md, AGENTS.md, todos, preferences, docs) to remove AI slop while preserving every code block, URL, path, and heading exactly.

What It Do

Slash command: /unslop-file <filepath>

Drops sycophancy, stock vocab (delve, tapestry, testament, leverage, robust, holistic), hedging stacks, tricolon padding, em-dash pileups, and tidy five-paragraph essay shapes. Engineers burstiness. Restores voice. Keeps every fenced code block byte-identical.

Backup: FILE.original.md (the human-readable original — re-run if you edit it).

Two Modes

Deterministic (fast, no API)

cd unslop && python3 -m scripts --deterministic <absolute_filepath>

Pure regex. No API key. Strips canonical AI-isms and tightens tricolons. Best for batch / CI. ~50ms per file.

LLM (default, calls Claude)

cd unslop && python3 -m scripts <absolute_filepath>

Calls Anthropic API (if ANTHROPIC_API_KEY set) or claude --print CLI. Better quality: rewrites for burstiness, restructures performative paragraphs, matches voice when sample provided.

Benchmarks

Sample memory files, before/after AI-ism count and word count (deterministic mode):

File Original words Humanized words AI-isms removed
claude-md-preferences.md 706 624 18
claude-md-project.md 1,512 1,310 24
mixed-with-code.md 950 838 11
project-notes.md 1,180 1,022 19
todo-list.md 845 763 14

LLM mode produces stronger rewrites (typically 60–75% AI-ism removal and noticeable burstiness improvement) but takes ~5–15s per file and costs API tokens.

Security

unslop calls a subprocess (the claude CLI) when ANTHROPIC_API_KEY is unset. Snyk may flag this as High Risk because of the subprocess.run + file I/O combination. See SECURITY.md for the full rationale.

The deterministic mode does no subprocess and no network — use it if your security context requires that.

Install

Bundled with the unslop plugin. Skill path: unslop/.

Standalone: cd unslop && python3 -m scripts <filepath> (Python 3.10+).

Usage

# Deterministic, no API
python3 -m scripts --deterministic /Users/me/proj/CLAUDE.md

# LLM, default
ANTHROPIC_API_KEY=... python3 -m scripts /Users/me/proj/CLAUDE.md

# LLM via Claude CLI fallback
python3 -m scripts /Users/me/proj/CLAUDE.md

What Files Work

Type Action
.md, .markdown, .txt, .rst Humanize (prose)
.py, .js, .ts, .json, .yaml, etc. Skip (code/config)
*.original.md Skip (already a backup)
Mixed prose + code Humanize prose; leave fenced code untouched
Sensitive paths (.env, *.pem, ~/.ssh/) Refuse

How It Work

detect file type ──▶ write .original.md backup ──▶ humanize (deterministic or LLM)
                                                              │
                                                              ▼
                                                         validate
                                          (preserve code/URLs/paths + AI-ism residual)
                                                              │
                                                       ┌──────┴──────┐
                                                    pass            fail
                                                       │              │
                                                  write & done   targeted fix
                                                                      │
                                                              retry (max 2)
                                                                      │
                                                              ┌───────┴───────┐
                                                           pass             fail
                                                              │               │
                                                         write & done    restore original

What Is Preserved

  • Fenced code blocks (every byte)
  • Indented code blocks
  • Inline backticks
  • URLs and markdown links
  • File paths and commands
  • Technical terms, proper nouns, API names
  • Dates, version numbers, numerics
  • Headings (exact text)
  • Tables (structure; cells humanized)
  • YAML frontmatter

Why This Matter

Project memory files (CLAUDE.md, AGENTS.md) get loaded into every agent session. If they're in AI-template English, you pay tokens for slop and you teach the model to mirror that voice back at you. Humanizing the memory file is the cheapest possible voice intervention.

Part of the Unslop Plugin

Skill What it does
unslop Active humanization mode for live responses
unslop-commit Commit messages without AI tone
unslop-review Direct, human-voice PR comments
unslop This: rewrite memory files
unslop-help Quick-reference card

License

MIT — same as the parent unslop plugin.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unslop-0.4.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unslop-0.4.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file unslop-0.4.0.tar.gz.

File metadata

  • Download URL: unslop-0.4.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for unslop-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a2050cc5aad61d33fdefb33e23145021a4bdfdf63df9976ff7f50f68c485f1ad
MD5 12743af822c6891cfdfe4ee39b6832c4
BLAKE2b-256 ac720224cfdedc11f3568272b1802381cb5a4b50bee4f137be01c06617503580

See more details on using hashes here.

Provenance

The following attestation bundles were made for unslop-0.4.0.tar.gz:

Publisher: publish.yml on MohamedAbdallah-14/unslop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unslop-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: unslop-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 29.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for unslop-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a623f4096933ed69e9076a149d19cde34c66a3f614ec298237f4223dd7df196f
MD5 e667a5d31544b3bda6b46c3f622d32dd
BLAKE2b-256 d396e140362cab727e136a8ebd9632e1d9134d9d28f5ec2fb62ba0e2eea75ce8

See more details on using hashes here.

Provenance

The following attestation bundles were made for unslop-0.4.0-py3-none-any.whl:

Publisher: publish.yml on MohamedAbdallah-14/unslop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page