OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Codegrab

Codegrab is a Go command-line tool with an interactive terminal interface for selecting project files and bundling their contents into a formatted output for use as LLM context.

Independent OpenViST project profile, based on linked sources.

Codegrab — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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 -S option 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.

Source-based practical guide

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

  1. Open a terminal in the project directory and run grab.

  2. Navigate the project with arrow keys or h, j, k, and l; select files or directories with Space or Tab.

  3. Press g to generate the output file, or y to 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.
Evidence and transparency

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