Text Human

sonnet session

Quick reference

FieldValue
Command/brewtools:text-human
Arguments<commit-hash|path> [custom instructions]
Modelsonnet
Contextsession
ToolsRead, Write, Edit, Grep, Glob, Bash, Task, AskUserQuestion

Detect and remove AI-generated artifacts from code and documentation. Process commits, files, or folders with parallel sub-agents.

Modes

ModeHow to triggerWhat it does
Committext-human 3be67487Processes all text files changed in the given commit via git diff
Single filetext-human src/main/java/MyService.javaProcesses one file directly (no sub-agent delegation)
Foldertext-human src/main/java/services/Finds all source/config/doc files, splits into parallel blocks
Custom prompttext-human <scope> <instructions>Everything after the first token becomes custom instructions
Interactivetext-human (no args)Asks what to humanize: commit hash, file path, or folder path

Usage examples

# Clean up all files from a recent AI-assisted commit
/brewtools:text-human 3be67487

# Humanize a single service class after AI pair-programming
/brewtools:text-human src/main/java/com/example/OrderService.java

# Process an entire package
/brewtools:text-human src/main/java/services/

# Commit cleanup but preserve public API docs
/brewtools:text-human 3be67487 don't touch docs on public records

# Only fix unicode and AI markers, leave everything else
/brewtools:text-human src/ only remove AI artifacts and fix unicode

What it changes

CategoryRemoved / FixedExample
AI comment markers// Added by AI, // Claude suggestion, // AI-generatedDeleted entirely
Fake issue numbersBUG-001, FIX-123, ISSUE-42Deleted (real project tickets kept)
Unicode long dashesU+2014Replaced with --
Unicode arrowsFancy arrowsReplaced with ->, <-, =>
Unicode bullets/quotesCurly quotes, bullet charsReplaced with ASCII equivalents
Trivial docsJavadoc/docstring restating method nameDeleted
Obvious comments// Initialize the list, // Loop through itemsDeleted
Formatting noise3+ blank lines, trailing whitespace, mixed tabsNormalized

What it keeps

PreservedWhy
”Why” comments (// Retry 3x due to flaky external API)Explain non-obvious behavior
Public API documentationExternal contracts matter
Real issue references (JIRA-456, GH-123)Project-specific tickets
Structural comments in SQL/YAMLSection organization
Complex algorithm explanationsNot trivially obvious

Language references

LanguageReferenceLoad when
Java/Kotlinreference/java.md*.java, *.kt, *.groovy, Spring, Maven/Gradle
TypeScript/JS/Reactreference/typescript.md*.ts, *.tsx, *.js, *.jsx, Node.js, React
Pythonreference/python.md*.py, Django, FastAPI, Flask

Output

Produces a Humanization Report at the end:

MetricDescription
Total filesNumber of files scanned
BlocksHow many parallel blocks were used
Haiku / Sonnet splitSimple files (config, data) vs complex files (logic, tests)
Comments removedCount per file
Docs simplifiedCount per file
Unicode fixedCount per file

Files are edited in place. Use git to revert if needed.

Tips

Start with a commit hash after an AI-assisted session — it picks up all changed files including YAML and config. Use custom instructions to narrow scope if needed.