Practical overview
When it fits
Use Codegrab when preparing selected local-project code for an LLM prompt, or when a script needs to collect files according to configured filters.
Who it is for
- Developers who want to share selected source files with an AI assistant.
- Developers who need a filtered code-context bundle for a repeatable or scripted workflow.
Documented uses
- Browse a project and choose files or directories to include in a context bundle.
- Filter files and export their contents as Markdown, plain text or XML.
- Copy generated content to the clipboard or save it as an output file.
- Estimate token count or produce a file-tree-only view.
Requirements & limits
Codegrab is an open-source Go project under the MIT license. Its documentation lists installation through Homebrew, Go install, release binaries or building from source.
- Interactive mode supports fuzzy search, file and directory selection, and vim-like navigation.
- Filtering can respect
.gitignore, include hidden files, apply glob patterns and skip large files. - Non-interactive mode selects valid files according to filters and is described as suitable for scripting.
- The tool documents secret detection and redaction using gitleaks; its
-Soption skips automatic redaction. - Dependency resolution is available with
--deps; the usage documentation lists Go and JS/TS, while the feature overview also mentions Python.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Create an LLM-ready bundle from a local project
Select project files in the interactive terminal interface and generate a formatted output file.
Before you start
- Install Codegrab using one of the documented methods: Homebrew, Go install, a release binary, or building from source.
- A local project directory to inspect.
Steps
Open a terminal in the project directory and run
grab.Navigate the project with arrow keys or
h,j,k, andl; select files or directories with Space or Tab.Press
gto generate the output file, oryto copy contents to the clipboard.
Expected outcome
Codegrab generates `codegrab-output.md` in the current working directory by default. The output can be shared with an AI assistant; on macOS, the generated file is automatically copied to the clipboard.
Guide limitations
- The default output is Markdown; the tool also documents plain-text and XML formats.
- The documented macOS clipboard behavior applies to that platform; no equivalent automatic behavior is specified for other platforms.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 12 October 2026
- Original website title
- epilande/codegrab · Official homepage title · retained in its source language

