https://github.com/nuuner/contextfind
Quickly get content of files for the LLM
https://github.com/nuuner/contextfind
cli go llm prompt-engineering
Last synced: 8 months ago
JSON representation
Quickly get content of files for the LLM
- Host: GitHub
- URL: https://github.com/nuuner/contextfind
- Owner: nuuner
- License: mit
- Created: 2025-07-22T05:17:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-29T15:43:11.000Z (11 months ago)
- Last Synced: 2025-07-29T18:06:46.330Z (11 months ago)
- Topics: cli, go, llm, prompt-engineering
- Language: Go
- Homepage:
- Size: 575 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
ContextFind
A CLI tool for selecting files with fzf and outputting their contents. Includes context management for saving and reusing file selections.

## Prerequisites
- Go 1.24+ installed
- [fzf](https://github.com/junegunn/fzf) (install via `brew install fzf` on macOS)
- [markitdown](https://github.com/microsoft/markitdown) for binary file conversion
- [bat](https://github.com/sharkdp/bat) (optional, for syntax highlighting in preview - install via `brew install bat` on macOS)
## Installation
Install directly via Go:
```bash
go install github.com/nuuner/contextfind/cmd/cf@latest
```
Or clone and build locally:
```bash
git clone https://github.com/nuuner/contextfind.git
cd contextfind
go build -o cf ./cmd/cf
```
## Usage
### Basic File Selection
```bash
cf [directory] # Select files from current or specified directory, automatically saves as last selection
cf | pbcopy # Copy output to clipboard
```
### Last Selection
```bash
cf last # Output files from the last selection
cf save-last [name] # Save the last selection as a named context (prompts if no name provided)
```
### Context Management
```bash
cf save [name] # Save current file selection as named context (prompts if no name provided)
cf from [name] # Load files from saved context
cf update [name] # Update existing context with new files
cf delete [name] # Delete saved contexts
```
If no name is provided for commands like `from`, `update`, or `delete`, fzf will open for interactive selection. Context configurations are stored in `.contextfind.toml` files.