Re:Show HN: Ktx – Open-source executable context layer for d...
by lucamrtl on Thursday May 28, 2026 @08:52PM
(#48317611)
Just to clarify what semantic layer is: you can think of it as a set of functions
So you define the definitions of metrics like "monthly revenue" once, and that definition is runnable. If an agent asks for "monthly revenue by region", the semantic layer will compile that request into SQL and run it (the same way everytime so that calculation method is consistent)
Re:Show HN: Ktx – Open-source executable context layer for d...
by lifeisstillgood on Saturday May 30, 2026 @11:00AM
(#48336986)
Thank you … one can see how “semantic layer for whole enterprise” is a PowerPoint slide that can make McKinsey drool
Re:Show HN: Ktx – Open-source executable context layer for d...
by andreybavt on Saturday May 30, 2026 @12:29PM
(#48337993)
Hopefully more agents and fewer PowerPoints and McKinsey folks in the future :)
The second (equally important) part of ktx is similarly self-organizing executable semantic layer.
It allows agents to send simple declarative "I want X sliced by Y" requests instead of imperative "X sliced by Y that has to be queried this way and joined the other way ..."
To answer your questions:
> who writes the wiki / business rules most is create after `ktx ingest` pulls raw data from your data stack, it can be edited/created manually, but it's rarely necessary. Also if you plug ktx to your agent it allows that agent to send extra memories for ingestion to keep the context up to date
> Can they be reverse engineered from existing query stack Yes, that's the case when we analyze historic SQL queries or scan Looker or Metabase dashboards for example