Skip to content

Wren Engine

This repository has been merged into Canner/WrenAI under the core/ directory

Install: git clone https://github.com/Canner/wren-engine

Install

$git clone https://github.com/Canner/wren-engine

Install command taken from the project's README or registry entry. Always review code before running it.

Wren Engine — Archived

This repository has been merged into Canner/WrenAI under the core/ directory and is now archived (read-only).

New issues and PRs → Canner/WrenAI Full migration details (path mapping, archived modules, rationale) → discussion #1592


Wren Engine

The open context engine for AI agents

Wren Engine is the open foundation behind Wren AI: a semantic, governed, agent-ready context layer for business data.

https://github.com/user-attachments/assets/037f2317-d8e5-41f2-9563-1e0bce4ef50c

Why Wren Engine

AI agents can already call tools, browse docs, and write code. What they still struggle with is business context.

Enterprise data is not just rows in a warehouse. It is definitions, metrics, relationships, permissions, lineage, and intent. An agent that can connect to PostgreSQL or Snowflake still does not know what "net revenue", "active customer", or "pipeline coverage" actually mean in your company.

This is not just our thesis. In Your Data Agents Need Context, a16z argues that data agents break down when they only have connectivity and SQL generation, but lack business definitions, source-of-truth context, and the operational knowledge that explains how a company actually runs.

Wren Engine exists to solve that gap.

It gives AI agents a context engine they can reason over, so they can:

  • understand models instead of raw tables
  • use trusted metrics instead of inventing SQL
  • follow relationships instead of guessing joins
  • respect governance instead of bypassing it
  • turn natural language into accurate, explainable data access

This is the open source context engine for teams building the next generation of agent experiences.

The Vision

We believe the future of AI is not tool calling alone. It is context-rich systems where agents can reason, retrieve, plan, and act on top of a shared understanding of business reality.

Wren Engine is our open source contribution to that future.

It is the semantic and execution foundation beneath Wren AI, and it is designed to be useful well beyond a single product:

  • embedded in MCP servers and agent workflows
  • connected to modern warehouses, databases, and file systems
  • expressive enough to model business meaning through MDL
  • robust enough to support governed enterprise use cases
  • open enough for the community to extend, integrate, and build on

If Wren AI is the full vision, Wren Engine is the open core that makes that vision interoperable.

What Wren Engine Does

Wren Engine turns business data into agent-usable context.

At a high level:

  1. You describe your business domain with Wren's semantic model and MDL.
  2. Wren Engine captures the context agents need: models, metrics, relationships, and access rules.
  3. It analyzes intent and plans correct queries across your underlying data sources.
  4. MCP clients and AI agents interact with that context through a clean interface.
  5. Teams keep refining the model as business logic and systems evolve.

This is the practical open source path from text-to-SQL toward context-aware data agents.

That means your agent is no longer asking, "Which raw table should I query?"

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

Explore related