llmctx

Crates.iollmctx
lib.rsllmctx
version0.6.0
created_at2025-04-29 00:33:55.049868+00
updated_at2025-06-03 01:57:50.23348+00
descriptionLLM context builder
homepage
repositoryhttps://github.com/joshvoigts/llmctx
max_upload_size
id1652837
size19,588
Josh Voigts (joshvoigts)

documentation

README

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
--test Run tests and include output -t

Examples

  1. Basic usage (process current directory):

    llmctx
    
  2. Specify a directory:

    llmctx ./src
    
  3. Limit tokens and copy to clipboard:

    llmctx --max-tokens 1000 -c
    
  4. 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.

Commit count: 27

cargo fmt