Linux command
llmcat 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open
llmcat
Copy
llmcat [path/to/file.txt]
Walk
llmcat [./src]
llmcat --tree-only [./src]
Add
llmcat -i [*.log] -i [*.tmp] [./src]
Include
llmcat --hidden --no-ignore [./src]
Show
llmcat -p [./src]
说明
llmcat packages source files into a single LLM-friendly text blob and copies it to the system clipboard. Each file is wrapped with a header containing its path, so that a chat assistant such as ChatGPT or Claude can identify which file each snippet came from. Directories are walked respecting .gitignore by default, with additional ignore patterns added through -i. When invoked without a path, llmcat opens an fzf-powered fuzzy picker with a live preview pane, supporting multi-file selection via Tab. With a path argument, it bypasses the picker and processes the target non-interactively, which is useful inside shell scripts and editor integrations.
参数
- -i, --ignore _PATTERN_
- Add a glob pattern to the ignore list (repeatable; uses the fd glob format).
- -t, --tree-only
- Output only the directory tree, not file contents.
- -p, --print
- Print the copied output to stdout in addition to the clipboard.
- -n, --no-ignore
- Ignore .gitignore files when walking the tree.
- -H, --hidden
- Include hidden files and directories.
- -q, --quiet
- Silent mode — copy to clipboard without printing anything.
- -h, --help
- Show usage information.
- -v, --version
- Print the version and exit.
FAQ
What is the llmcat command used for?
llmcat packages source files into a single LLM-friendly text blob and copies it to the system clipboard. Each file is wrapped with a header containing its path, so that a chat assistant such as ChatGPT or Claude can identify which file each snippet came from. Directories are walked respecting .gitignore by default, with additional ignore patterns added through -i. When invoked without a path, llmcat opens an fzf-powered fuzzy picker with a live preview pane, supporting multi-file selection via Tab. With a path argument, it bypasses the picker and processes the target non-interactively, which is useful inside shell scripts and editor integrations.
How do I run a basic llmcat example?
Run `llmcat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i, --ignore _PATTERN_ do in llmcat?
Add a glob pattern to the ignore list (repeatable; uses the fd glob format).