ktx teaches agents how to query your warehouse accurately. It learns your metric definitions, joinable columns, and business knowledge, then writes them as reviewable YAML and Markdown in git. Apache 2.0. Run locally.