promptext

promptext extracts code context for AI assistants to use when responding to development questions.

github.com/1broseidon/promptext
promptext homepage screenshot

About promptext

promptext is an open-source command-line tool, written in Go, that turns a codebase into context suitable for AI assistants such as Claude, ChatGPT and other LLMs. It scans a project, filters out unnecessary files, ranks the remaining files by relevance, and packages them into a token-efficient prompt that is copied to the clipboard by default.

It enforces token budgets so output stays within a chosen limit, and offers preview and dry-run options before generating anything. Output formats include PTX (the default), TOON-strict, Markdown and XML, with the format auto-detected from the output file extension. Token counting uses the cl100k_base tokenizer, described as compatible with GPT-4, GPT-3.5 and Claude. Configuration is available through a project-level .promptext.yml file and global settings, and a Go API allows the extraction capabilities to be embedded in other applications. No pricing information is given.

Key features

  • Filters out files such as node_modules and binaries automatically
  • Ranks remaining files by relevance for focused context
  • Enforces token budgets and supports preview/dry-run
  • Outputs PTX, TOON-strict, Markdown or XML formats
  • Counts tokens with cl100k_base tokenizer (GPT-4, GPT-3.5, Claude compatible)
  • Go API for integrating code extraction into other tools
Best for: Developers who need to feed relevant parts of a codebase to AI coding assistants while staying within token limits.
Good for
  • Open source with a Go implementation intended to process large codebases in seconds
  • Combines automatic file filtering, relevance ranking and enforced token budgets
  • Configurable per project or globally, with multiple token-efficient output formats
Watch out for
  • Installation requires a separate install step, and the Go install method needs Go 1.19 or later
  • Automatically checks for new releases once per day
  • No pricing information is provided on the repository page

promptext at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

promptext alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 8 alternatives

Popular in AI Chatbots & Assistants

Well-known listings from the same topic.

All 238

promptext FAQ

What output formats does promptext support?
PTX is the default; TOON-strict, Markdown and XML are also available, with the format auto-detected from the output file extension.
How does it keep output within token limits?
It enforces a specified token budget, and options such as preview and dry-run let you inspect file selection and token counts before generating output.
Can promptext be used programmatically?
Yes. A Go API is provided for integrating code extraction into AI/ML workflows and custom applications.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing