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

Uploaded Python 3

File details

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

File metadata

  • Download URL: unslop-0.5.2.tar.gz
  • Upload date:
  • Size: 59.6 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.2.tar.gz
Algorithm Hash digest
SHA256 d6cd0a933df5a51332c07586eeda9d2c544bf0e6145a09ea097836795f30d81b
MD5 f404a5a0221805914dbc7dba2fa23e3e
BLAKE2b-256 e68555eec450fb4b24c712299f77656f86980f616b78f0c33efd7a319a0f4e9e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: unslop-0.5.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51530f71fd592e9f252422dcda242d970f6575fd5278b3b3abd0cd297cd2bd15
MD5 73f09a6084b515e0992d1e03842af60d
BLAKE2b-256 bd537c630ebe713ecfa9a3cda6facf4e5993428aa4c266367fe6e5d90f17a4fb

See more details on using hashes here.

Provenance

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