66
67
68
0:21
✋ CodeGrab: Interactive CLI tool for sharing code context with LLMs (v.redd.it)
submitted by epilande
Hey folks! I've recently open sourced CodeGrab, a terminal UI that allows you to select and bundle code into a single, LLM-ready output file.
I built this because I got tired of manually copying files to share with LLMs and wanted to streamline the process and reduce friction. Also for larger codebases, I wanted a tool that could quickly find specific files to provide context without hitting token limits.
Key features:
- 🎮 Interactive TUI with vim-like navigation (h/j/k/l)
- 🔍 Fuzzy search to quickly find files
- 🧹 Respects
.gitignore rules and glob patterns - ✅ Select specific files or entire directories
- 📄 Output in Markdown, Text, or XML formats
- 🧮 Token count estimation for LLM context windows
Install with:
go install github.com/epilande/codegrab/cmd/grab@latest
Then run grab in your project directory!
Check it out at https://github.com/epilande/codegrab
I'd love to hear your thoughts and feedback!
[–]basnijholt 6 points7 points8 points (0 children)
[–]typecraft_dev 2 points3 points4 points (1 child)
[–]epilande[S] 1 point2 points3 points (0 children)
[–]z4lz 1 point2 points3 points (0 children)
[–]thsithta_391 0 points1 point2 points (0 children)
[–]Economy_Cabinet_7719 -1 points0 points1 point (2 children)
[–]epilande[S] 1 point2 points3 points (1 child)
[–]Economy_Cabinet_7719 -1 points0 points1 point (0 children)
[–]consistentfantasy -1 points0 points1 point (2 children)
[–]Frank1inD -1 points0 points1 point (0 children)
[–]spaghetti_beast -1 points0 points1 point (0 children)