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

Uploaded Python 3

File details

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

File metadata

  • Download URL: unslop-0.4.2.tar.gz
  • Upload date:
  • Size: 29.0 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.2.tar.gz
Algorithm Hash digest
SHA256 e012ad2939113a5d9e113450086f39e94cb1bcadc86311f65e3fa766a8a5e14d
MD5 204810468b12189ef55d6e82c593c607
BLAKE2b-256 95ef7043edee13c5ad7aff978212492d0ff72fb05d792229bccdcfd9fc97871d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: unslop-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 29.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 48d18dd5f3ff333ef07b12b1de7f372dda466d8fd1704a57a06c1551ba124842
MD5 03efece716587bf6739a2af75386b76e
BLAKE2b-256 7dd4cc446823d76cf08d832c59b7dc6891ab94aa351379a62a494a391e7d3b4d

See more details on using hashes here.

Provenance

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