About Generator
CTX is an open source context generator that decides exactly which parts of a codebase a language model is allowed to see. Rather than letting an assistant crawl an entire repository, a developer declares the sources in a YAML configuration file and CTX assembles them into structured markdown documents that are ready to paste into a chat session or serve directly to an assistant. Because codebases change constantly, the configuration can be rerun to regenerate current context on demand.
Sources include code files and directories matched by glob patterns, GitHub repositories, git commits and diffs, web pages addressed with CSS selectors, and plain text. Collected files can be filtered by pattern, content search, size or date, and modifiers can transform what is included, for example extracting function signatures without their implementations. The result is saved as context files in the project and can also be exposed through a built in MCP server so an assistant pulls context directly. The project frames this as a response to four problems with automatic codebase scanning: sensitive files such as environment variables and tokens being uploaded to cloud services, context dilution that lowers output quality, no control over what the model considers, and billing tied to how much a tool scans rather than what is needed.
The documentation site publishes no prices or plans. CTX is open source and self installed, and it works with local models for teams that do not want code leaving their own machines. Note that this listing carries the name Generator while the product is published as CTX.