SLayer, a semantic layer maintained by your agent
Details
- External ID
- 48095686
- Source
- HN
- Company
- —
- Product
- SLayer, a semantic layer maintained by your agent
- Website domain
- github.com
- Launched
- May 11, 2026
- Cohort
- —
- Upvotes
- 12
- Upvotes percentile
- 0.6397415185783522
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
Hello HN!If you want to connect your agent to a database (say, to build a data analyst chatbot or any kind of agentic app) today you have 2 options: an SQL MCP server or a semantic layer.SQL MCP is the easiest path to setup, especially if you also have a .md knowledge base which the agent can update. It gets quite messy quickly though, especially if there's many interactions or DB is large. Generated SQL is hard to review if you want to understand where the numbers came from, and related queries can be hard to align and compare.The natural alternative is a semantic layer, which is an inventory of what data is available/useful (data models) and an interface for querying it using a structured DSL — usually a list of measures, dimensions, filters, with joins etc. handled under the hood.When we needed a semantic layer at Motley for connecting to our customers' data, we first settled on Cube with custom wiring for multi-tenancy and updating the models on the fly. We quickly hit some limitations which led us to realize existing semantic layers just weren't built for the purpose: they're still a part of the BI world where you want an efficient backend for an essentially static set of human-curated dashboards, whereas agents need to iterate their way to the answer, learning in the process. That's when we built the first version of SLayer, which is now open-source.Using either SLayer MCP or CLI, agents (and humans) can:- Explore models, run queries, connect to multiple databases- Edit columns/measures or create new ones- Create custom models from SQL or from a query on other models- Learn from interactions: save and retrieve natural-language memories linked to models, columns or queries, to form a knowledge baseAgents evolve the semantic layer, reuse the results of past interactions, and make fewer mistakes going forward.A few more features:- Auto-creation of models from introspecting your DB schema for a warm start- Embeddability — doesn't need a server running- Python client for doing data analysis with dataframes- Schema drift detection and handling- Expressive DSL with compact, natural representations for arbitrarily deep multistage queries, custom aggregations, time shifts, combining metrics from multiple models, and other features that are tricky to get right in raw SQLOn the roadmap: access controls, caching, and more.Repo: https://github.com/MotleyAI/slayerDocs: https://motley-slayer.readthedocs.io/en/latest/
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Data infrastructure
- Audience
- B2B
- AI stance
- AI feature
- Project type
- Commercial product
- Normalized one-liner
- semantic layer maintained by ai agent
- Manually corrected
- False
Could you build this?
Yes A semantic layer abstraction over an existing database that exposes schema definitions, business metrics, and MCP endpoints for agents to query and update can be built directly with standard SQL and agentic tool libraries.
Discussion
3 comments analyzed.
Competitors mentioned: Traditional semantic layers, Text-to-SQL query tools
Feature requests: dbt SL facade for dashboard driving, Integration with favorite databases
Competitors
Other products that read as similar to this one — 159 launches clear the similarity bar, closest 8 shown.
Attention rank: #60 of 160 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 194 days after the earliest competitor.
- DeepSQL · hn · 2026-07-20 · 52 upvotes · similarity 0.49
- BetterDB, MIT Valkey-native context layer for AI agents · hn · 2026-06-26 · 5 upvotes · similarity 0.48
- I built a database for AI agents · hn · 2026-04-07 · 12 upvotes · similarity 0.47
- Risk Analysis Database of Every MCP Server · hn · 2026-02-05 · 22 upvotes · similarity 0.46
- JevSDSQL · github · 2026-09-23 · 23 upvotes · similarity 0.45
- Keen Code · hn · 2026-08-10 · 6 upvotes · similarity 0.45
- Declarative open-source framework for MCPs with search and execute · hn · 2026-02-24 · 11 upvotes · similarity 0.45
- Cube · hn · 2026-02-10 · 6 upvotes · similarity 0.45
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a data infrastructure tool for Media & entertainment yet.