Turn your codebase into AI-ready context

Smart filtering, relevance scoring, and token budgets. Extract only what matters.

View Docs
curl -sSL chain.sh/promptext/scripts/install.sh | bash

Built for efficiency

Smart Filtering

Automatically excludes node_modules, lock files, and build artifacts. Respects .gitignore patterns.

Relevance Scoring

Ranks files by keyword matches in names, paths, and content. Get the most relevant code first.

Token Budget

Set hard limits on token count. Automatically excludes lower-priority files to stay within budget.

Accurate Counting

Uses tiktoken cl100k_base tokenizer. Compatible with GPT-4, GPT-3.5, and Claude models.

Multiple Formats

PTX (default), TOON (30-60% savings), Markdown, or XML. Auto-detect from file extension.

Lightning Fast

Written in Go. Processes thousands of files in seconds. Zero dependencies after install.