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.
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.
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
Install with the command below.
go install github.com/sammcj/ingest@HEADRun
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.
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.jsonwithllm_model; the endpoint can be set withllm_base_urlor the documented API-base environment variable.
Steps
Set the model and, if needed, the compatible endpoint in the configuration file.
Run
ingest --llm /path/to/project.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.
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

