What problem does it solve? AI agents often generate incorrect SQL against data warehouses because they lack knowledge of approved metric definitions, joinable columns, and business terminology. ktx solves this by building a self-improving context layer that ingests dbt models, wiki content, and warehouse metadata, then serves that unified context to agents like Claude Code, Codex, and Cursor via CLI and MCP tools. ## Core Features & Use Cases - Context Ingestion: Ingests dbt projects, MetricFlow, LookML, Looker, Metabase, and Notion sources, deduplicating knowledge and flagging contradictions. - Semantic Layer Modeling: Defines metrics, dimensions, and join relationships in YAML, resolving chasm and fan traps through a join graph. - Agent Integration via MCP: Exposes tools like ktx_search_semantic_layer, ktx_get_metric_definition, and ktx_validate_query so agents retrieve accurate definitions before writing SQL. - Use Case: A data team configures ktx with their Snowflake warehouse and dbt project, runs ktx ingest, starts the MCP server, and Claude Code can then answer "what is our MRR definition" and generate validated revenue queries. ## Quick Start Ask the agent to run ktx setup in your analytics project, then start the MCP server with ktx mcp start so it can search the semantic layer for metric definitions.