/\\_/\\
( o.o )
> ^ < LLMCat
A simple CLI that transforms your code into clean, structured text for feeding into LLMs.
๐ค Why LLMCat?
Copying, pasting, and formatting code for AI tools is annoying and slow. LLMCat automates the boring parts so you can stay focused on actually building things.
โจ Features
- โก Automatic Formatting โ Turns messy code into clean, structured text
- ๐งน Code Cleanup โ Removes unnecessary comments and whitespace
- ๐ Multi-file Support โ Works on single files or entire directories
- ๐๏ธ Customizable Output โ Tailor formatting to your workflow
- ๐พ Persistent Settings โ Save configs and reuse them anytime
- ๐ Easy Integration โ Lightweight CLI that fits anywhere
๐ Installation
๐ macOS & ๐ง Linux (One-liner)
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/NoahCristino/llmcat/releases/download/v1.3.1/llmcat-installer.sh | sh
๐บ macOS (Homebrew)
brew install NoahCristino/tap/llmcat
๐ช Windows (PowerShell)
powershell -ExecutionPolicy Bypass -c "irm https://github.com/NoahCristino/llmcat/releases/download/v1.3.1/llmcat-installer.ps1 | iex"
๐ ๏ธ From Source
git clone https://github.com/NoahCristino/llmcat.git
cd llmcat
cargo build --release
cargo install --path .
See releases for more installation options.
โถ๏ธ Usage
Run LLMCat on a single file:
llmcat file.py
Run LLMCat on a directory:
llmcat ./src
โ๏ธ Configuration
LLMCat can be configured using a .llmcat.toml file. There is an example in examples/code:
[settings] remove_comments = true remove_whitespace = true [paths] include = ["*.py", "*.js"] exclude = ["tests/*", "docs/*"]
Run:
llmcat .
Example output:
Using config: /home/user/llmcat/examples/code/.llmcat.toml
===== FILE: hello.js [8 lines] =====
function fib(n) {
if (n <= 1) {
return n;
}
return fib(n - 1) + fib(n - 2);
}
console.log(fib(10));
===== FILE: world.py [2 lines] =====
def foo(bar):
print(f"Foo {bar}")
c - copy | q - quit
:
Then: Press c ๐ to copy output Press q โ to q
๐ Rules
- โ Files must match [paths].include
- ๐ซ Files matching [paths].exclude are ignored
- ๐ .llmcat.toml is always excluded
- โ๏ธ [settings] controls processing behavior
๐ค Contributing
Got ideas or improvements?
- Open an issue ๐ก
- Submit a PR ๐
License
MIT License โ see LICENSE for details.









