fusefiles
A Rust CLI tool that concatenates files into a single prompt for use with LLMs. Inspired by Simon Willison's files-to-prompt but faster and with more features, like including a file tree at the top of the single file.
CLI command: fuse (clean and simple!)
How to Use
Installation
Install from crates.io
This installs the fuse command.
Build and Install from Source
Clone the repository and install:
This installs the binary to ~/.cargo/bin/fuse, making it available system-wide.
Build Only (for development)
The executable will be in target/release/fuse.
How do I use it?
# Process a directory
# Process multiple paths
# Only include Python and Rust files
# Output in markdown format with code blocks
# Output in Claude XML format
# Save output to a file
# Exclude test files
# Include hidden files
# Add line numbers
# Add a table of contents tree
# Table of contents with directories only
# Table of contents with files and directories
# Ignore files only (not directories) with pattern
# Ignore .gitignore rules
# Pipe file paths from another command
|
# Use with null-separated paths
|
Development
Running Tests
# Run all tests
# Run specific test by name
# Run only unit tests
# Run only integration tests
Linting and Formatting
# Format code
# Lint with clippy