Strips comments, removes blank lines, and shortens local identifiers to produce token-efficient source code that remains syntactically valid and semantically identical (all tests still pass). Supports Go, Python, TypeScript, JavaScript, and Rust. For a single file, compacted output is written to stdout. For a directory, files are written toDocumentation Index
Fetch the complete documentation index at: https://docs.supermodeltools.com/llms.txt
Use this file to discover all available pages before exploring further.
--output (default: ./compacted/).
Aliases: pack, minify
Synopsis
Flags
| Flag | Description |
|---|---|
-o, --output | Output directory for directory mode (default compacted) |
--dry-run | Print stats without writing files |
-h, --help | Help for compact |