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.
