Skip to main content

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

Project description

unslop CLI

Humanize Markdown and text files from the command line. unslop removes common AI tells, varies rhythm, and preserves code, URLs, headings, tables, blockquotes, and YAML frontmatter.

Use it for docs, memory files, posts, bios, cover letters, and other prose where voice matters. Do not use it for secrets, legal text, medical advice, runbooks, or anything where exact wording matters more than readability.

Install

pipx install unslop
# or
uv tool install unslop

For a one-off local checkout:

cd unslop
python3 -m scripts.cli --deterministic README.md

Quick Start

unslop --deterministic doc.md

Deterministic mode is local-only. No API key, no subprocess, no network call.

unslop doc.md

LLM mode uses ANTHROPIC_API_KEY when set, otherwise falls back to claude --print if the Claude CLI is installed. Before any LLM call, the CLI refuses secret-like content such as private keys and common API token shapes. Use --deterministic for sensitive local files.

Common Commands

unslop --deterministic --diff doc.md          # preview changes
unslop --deterministic --dry-run --json doc.md
unslop --deterministic --report audit.json doc.md
unslop --mode full doc.md
unslop --no-structural --no-soul doc.md       # extra conservative
cat draft.md | unslop --stdin --deterministic

What Files Work

Type Action
.md, .markdown, .txt, .rst Humanize prose
.py, .js, .ts, .json, .yaml, etc. Skip as code/config
*.original.md, *.original.txt Skip as backups
Mixed prose + code Humanize prose; preserve protected regions
Sensitive paths (.env, *.pem, ~/.ssh/) Refuse

What Stays Exact

  • Fenced code blocks
  • Indented code blocks
  • Inline backticks
  • URLs and markdown links
  • Headings
  • Markdown tables
  • Blockquotes
  • YAML frontmatter

Deterministic mode validates these after rewriting. If preservation fails, the command exits non-zero and does not overwrite the file.

Backups And Sidecars

In file mode, unslop writes FILE.original.md before overwriting the target. If --strip-reasoning removes hidden reasoning traces, the stripped content is written to FILE.reasoning.md; those sidecars are gitignored by the repo template because they can contain process notes you did not mean to publish.

Why This Exists

Project memory files, READMEs, resumes, and draft posts often get polished by assistants until they all sound the same. unslop is a cleanup pass: remove the stock phrases, keep the facts, keep the code, and make the text readable again.

Part Of The Unslop Plugin

Skill What it does
unslop Live assistant-output humanization
unslop-file File rewrite command
unslop-commit Commit messages without AI tone
unslop-review Direct PR review comments
unslop-help Quick reference

License

MIT.

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.6.2.tar.gz (76.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.6.2-py3-none-any.whl (82.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unslop-0.6.2.tar.gz
  • Upload date:
  • Size: 76.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.6.2.tar.gz
Algorithm Hash digest
SHA256 ef76ec4ee4ec9f6977150baacd60cb959c99de43c88d93ea3ac42504d8f84034
MD5 a591f1fad30d5fd7834d100505e1ac8f
BLAKE2b-256 1a92eadb2aab77b1e0aabda88c402f9f5c7745391a1be083f2ccfae636c7e21f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: unslop-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 82.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.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff7c07deaf18c0c14e5c86619491eeda8194936800f39bfb8ccfa358e1d5e97
MD5 4b59f277aa12f77026e86e6da66e5afb
BLAKE2b-256 7adb6ea7ad82f551d62145bf1dd28319552e42ebe5db16fca1fe6ee939aa6200

See more details on using hashes here.

Provenance

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