1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 29, 2025 |
---|
#651 in Filesystem
8KB
177 lines
llmctx
llmctx
is a command-line tool designed to collect and process
file content for use as context in large language models (LLMs).
It provides a simple way to gather files, with options to control
output size, copy results to the clipboard, and/or include build
errors.
Installation
cargo install llmctx
Usage
llmctx [OPTIONS] [PATHS]
Options
Flag | Description | Short Flag |
---|---|---|
--max-tokens |
Maximum number of tokens for output | |
--copy |
Copy output to clipboard | -c |
--debug |
Enable debug mode (shows build info) | -d |
Examples
-
Basic usage (process current directory):
llmctx
-
Specify a directory:
llmctx ./src
-
Limit tokens and copy to clipboard:
llmctx --max-tokens 1000 -c
-
Debug mode (only works with rust currently):
llmctx --debug
Clipboard Integration
On macOS, llmctx
uses the pbcopy
command to copy output to the
clipboard. For other systems, this feature may require alternative
tools or configurations.
Dependencies
~145KB