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

Ingest

Ingest is a Go command-line tool that collects text files, source code and web pages into Markdown context for AI and LLM workflows. It supports file-tree output, glob-based selection, optional Tree-sitter code compression, token counting, and prompt submission to OpenAI-compatible APIs.

Independent OpenViST project profile, based on linked sources.

Ingest — Preparing filtered codebase context for AI-assisted code review or explanation
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Ingest when you need to gather selected local code, files or web content into a consolidated prompt or export, or when you want to pass that generated prompt to a configured OpenAI-compatible API.

Who it is for

  • Developers preparing codebases or selected files as context for an LLM.
  • People assembling web pages or PDFs into Markdown for AI-assisted research.
  • Users who want to review or export prompt material before submitting it to a compatible API.

Documented uses

  • Select files from a directory with include and exclude patterns and consolidate them into Markdown.
  • Add a directory tree, Git diffs or logs to code context.
  • Produce structurally compressed code context with Tree-sitter.
  • Crawl web pages or convert PDFs into Markdown for ingestion.
  • Count tokens locally or use Anthropic's API for token counting.
Before you choose

Requirements & limits

The project is available as a public GitHub repository under the MIT license. The README recommends Go installation and also documents manual installation from a release. Anthropic API token counting requires an API key.

  • Tree-sitter compression is marked experimental and omits implementation details.
  • Offline token counts are approximate; Anthropic API counting requires an API key.
  • LLM submission requires a configured model and uses an OpenAI-compatible endpoint.
  • Output can be copied to the clipboard when available, exported to a file, printed, or emitted as JSON.

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 a Markdown prompt from selected Python files

Generate a prompt using Python files from a project directory.

Before you start

  • Ingest installed; Go is required for the recommended go install method.
  • A project directory containing files to process.

Steps

  1. Install with the command below.

    Documented command
    go install github.com/sammcj/ingest@HEAD
  2. Run ingest -i "**/*.py" /path/to/project.

Expected outcome

Ingest generates a prompt from files matching the Python glob pattern.

Guide limitations

  • The example documents selection by include pattern; it does not specify a destination for the generated output.
Source-based practical guide

Send a generated project prompt to an OpenAI-compatible API

Submit a generated prompt for processing through a configured compatible API.

Before you start

  • Ingest installed.
  • A configuration file at ~/.config/ingest/ingest.json with llm_model; the endpoint can be set with llm_base_url or the documented API-base environment variable.

Steps

  1. Set the model and, if needed, the compatible endpoint in the configuration file.

  2. Run ingest --llm /path/to/project.

  3. Optionally add a prompt suffix, for example ingest --llm -p "explain this code" /path/to/project.

Expected outcome

Ingest sends the generated prompt to an OpenAI-compatible API for processing.

Guide limitations

  • The README describes compatibility with OpenAI-compatible APIs but does not document a specific additional provider.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
16 November 2026
Original website title
sammcj/ingest · Official homepage title · retained in its source language