WrenAI Puts a Governed Context Layer Under Agent-Generated BI

WrenAI moves agentic BI beyond text-to-SQL by making semantics, definitions, examples, memory, validation, and access rules reviewable inputs to every answer.

Retrieval answer

WrenAI moves agentic BI beyond text-to-SQL by making semantics, definitions, examples, memory, validation, and access rules reviewable inputs to every answer. An LLM can produce syntactically valid SQL and still misunderstand the business. WrenAI treats that gap as a context-engineering problem, not a prompt-tuning problem. The current open-source project is a GenBI engine for agents.

New Runtime synthesiseditorial-diagram
Hand-drawn GenBI architecture with databases and documents below a reviewable context spine, then governed planning, validation, execution, and a chart above.
WrenAI moves trust below the generated answer by making semantics, definitions, examples, memory, validation, and access rules reviewable system inputs.New Runtime synthesis from the public WrenAI repositoryOriginal source ↗

An LLM can produce syntactically valid SQL and still misunderstand the business. WrenAI treats that gap as a context-engineering problem, not a prompt-tuning problem.

The current open-source project is a GenBI engine for agents. It connects databases and warehouses to a reviewable context layer containing semantic models, approved definitions, examples, instructions, memory, and governance. An agent uses that layer to generate SQL, validate a dry plan, execute with limits, and turn results into answers or deployable dashboards.

Wren calls the three beats Generate, Deploy, and Know. Generate produces governed SQL and charts. Deploy packages an answer as a browser-side dashboard that can ship to the owner’s Vercel or Cloudflare account. Know keeps the definitions and successful query patterns in version-controlled files instead of hiding them inside a vendor UI.

The trust boundary is below the agent

The repository includes a Modeling Definition Language for models, relationships, cubes, metrics, and row- or column-level access control. Structured errors and dry-plan validation give the agent a correction path before execution. A local memory index can recall prior queries without making memory the source of truth.

This matters because schema alone does not encode whether revenue means gross or net, which joins are approved, how units convert, or which enum values should be grouped. If those rules live only in a long system prompt, they are difficult to review, diff, and reuse across agents.

The current project should not be confused with the older Docker-based chat-first GenBI application. That product is preserved on a legacy branch and no longer receives features or security fixes. The maintained direction is the open context and execution layer plus agent-facing CLI, SDK, and skills.

WrenAI’s claim is not that an agent makes BI automatically trustworthy. It makes the inputs to trust explicit: semantic definitions, validation, access controls, evidence-linked files, and deployable artifacts that can be reviewed independently of the conversation that produced them.

Source

Recommendation

WrenAI moves agentic BI beyond text-to-SQL by making semantics, definitions, examples, memory, validation, and access rules reviewable inputs to every answer.

Discovery graph / next reads

Continue through New Runtime

Open the graph
  1. 01topicAgents - New RuntimeExplore the agents topic hub.
  2. 02topicDeveloper Tools - New RuntimeExplore the developer tools topic hub.
  3. 03related materialAmazon Quick Makes Catalog Semantics The Agent BoundaryShares agents and data engineering.
  4. 04related materialVercel AI Gateway Adds Runtime Budget ControlsShares agents and developer tools.
  5. 05related materialVercel Sandbox Adds Unix Boundaries for Multi-Agent WorkShares agents and developer tools.

These links are also published in this page’s JSON twin and as typed edges in DiscoveryGraph v1.

Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate…

Open the JSON contract