| Crates.io | llmctx |
| lib.rs | llmctx |
| version | 0.6.0 |
| created_at | 2025-04-29 00:33:55.049868+00 |
| updated_at | 2025-06-03 01:57:50.23348+00 |
| description | LLM context builder |
| homepage | |
| repository | https://github.com/joshvoigts/llmctx |
| max_upload_size | |
| id | 1652837 |
| size | 19,588 |
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.
cargo install llmctx
llmctx [OPTIONS] [PATHS]
| 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 |
--test |
Run tests and include output | -t |
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
On macOS, llmctx uses the pbcopy command to copy output to the
clipboard. For other systems, this feature may require alternative
tools or configurations.