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.5.1.tar.gz (59.5 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.5.1-py3-none-any.whl (63.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for unslop-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6b9a9cb2a901161350a236a3e9a7a5c97aa0f2b053661204f0486d7c1001251a
MD5 92a4f75d8b9a4f6ba258abf515e53afa
BLAKE2b-256 14bcb7bef591503ff95ff72bc34182d5d46b627ee552897fb948ba84c4be5a06

See more details on using hashes here.

Provenance

The following attestation bundles were made for unslop-0.5.1.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.5.1-py3-none-any.whl.

File metadata

  • Download URL: unslop-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 63.7 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.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc8fec06142ec47b55be981be5fdc539bf7434149547bb683885adb509767d9
MD5 cecff874730d2a02e681215e68f8b2a5
BLAKE2b-256 f1a71e128ddc949dfe20465e82d7576b45396832b4faa41c9c80fc54b6eb29b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for unslop-0.5.1-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