Menu

I Built repo-pack: A Single-Binary Rust CLI & MCP Server to Pack Repos for LLMs
📰

I Built repo-pack: A Single-Binary Rust CLI & MCP Server to Pack Repos for LLMs

DEV Community: rust·Juanmidev·about 5 hours ago
#iRrmJK1W
#devtorust#devto#dev#repo#pack
Reading 0:00
15s threshold

When working with LLMs on real codebases, feeding the right context without blowing up your token budget (or waiting seconds for heavy runtimes to boot) is half the battle.

Tools like Repomix are great, but I wanted something that shipped as a single native binary with zero Node/Python runtime dependencies, ran in a few milliseconds offline, and could strip function implementations at the AST level when I only needed architectural context.

So I built repo-pack in Rust.

What makes it different?

1. Single binary, zero runtime overhead

repo-pack compiles down to a single static binary (~8 MB with Tree-sitter grammars included, or under 3 MB with --no-default-features ). It walks your project respecting .gitignore and .ignore (even outside git repos), skips binaries and lockfiles automatically, and outputs structured XML or Markdown in milliseconds.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.