wren-engine

作者 Canner已验证

The open context engine for AI agents support 15+ data sources. Built on Rust and Apache DataFusion.

663
Stars
199
Forks
Java
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Canner/wren-engine

快速入门

使用 wren-engine 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

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 AI logo

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.

before Wren Engine Challenge

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.

with_wren_engine

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.

engine-architecture

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?"

It is asking, "Which business concept, metric, or governed slice of context do I need to answer this task correctly?"

Built For Agent Builders

Wren Engine is especially useful for the open source community building agent-native workflows in tools like:

  • OpenClaw
  • Claude Code
  • VS Code
  • Claude Desktop
  • Cline
  • Cursor

If your environment can speak MCP, call HTTP APIs, or embed a semantic service, Wren Engine can become the context layer behind your agent.

Use it to power experiences like:

  • natural-language analytics with trusted business definitions
  • AI copilots that can answer questions across governed enterprise data
  • agents that generate dashboards, reports, and workflow decisions
  • code assistants that need real business context, not just schema dumps
  • internal AI tools that should be grounded in semantic models instead of ad hoc SQL

This is especially important in developer-facing agent environments, where the assistant may understand your codebase but still lacks the business context required to answer data questions correctly.

Supported Data Sources

Wren Engine is built to work across modern data stacks, including warehouses, databases, and file-based sources.

Current open source support includes connectors such as:

  • Amazon S3
  • Apache Spark
  • Apache Doris
  • Athena
  • BigQuery
  • ClickHouse
  • Databricks
  • DuckDB
  • Google Cloud Storage
  • Local files
  • MinIO
  • MySQL
  • Oracle
  • PostgreSQL
  • Redshift
  • SQL Server
  • Snowflake
  • Trino

See the connector API docs in the project documentation for the latest connection schemas and capabilities.

Get Started

Use Wren Engine through AI Agents

If you want to use Wren Engine from a Claude Code or other AI Agents, start here:

The MCP server includes:

  • a local Web UI for connection and MDL setup
  • read-only mode for safer agent usage
  • manifest deployment and validation tools
  • metadata tools for remote schema discovery

Learn the concepts

Wren Engine vs. Other Data Tools

People often compare Wren Engine to catalog services like DataHub, raw database MCP servers, BI semantic tools, or text-to-SQL agents.

The simple difference is:

  • those tools usually help an agent find data or generate SQL
  • Wren Engine helps an agent understand business meaning and produce the right query through a context engine
Tool typeWhat it gives the agentWhat Wren Engine adds
Data catalog servicesTables, columns, lineage, owners, descriptionsBusiness models, metrics, relationships, and governed query planning
Raw database or schema accessDirect access to schemas and SQL executionA business layer above raw tables so the agent does not have to guess intent
BI or semantic toolsCurated metrics and entities for analytics workflowsAn open context layer designed for MCP and agent workflows
Text-to-SQL agentsFast SQL generation from natural languageBetter accuracy by grounding generation in explicit business definitions

Many teams will want both:

  • a catalog to inventory and document the data estate
  • Wren Engine to turn that data into agent-ready context

Why that matters:

  • more accurate answers because joins and metrics are defined instead of guessed
  • more consistent answers because every agent uses the same business definitions
  • safer data access because governance can be carried into query planning
  • less prompt engineering because the context lives in the engine, not in the prompt

Without Wren, an agent may know where the data is but still not know how to answer the question correctly.

Repository Map

This repository contains the core engine modules:

ModuleWhat it does
wren-coreRust context engine powered by Apache DataFusion for MDL analysis, planning, and optimization
wren-core-baseShared manifest and modeling types
wren-core-pyPyO3 bindings that expose the engine to Python
ibis-serverFastAPI server for query execution, validation, metadata, and connectors
mcp-serverMCP server for AI agents and MCP-compatible clients

Supporting modules include wren-core-legacy, example, mock-web-server, and benchmarking utilities.

Developer entry points

Local Development

Common workflows:

# Rust context engine
cd wren-core
cargo check --all-targets

# Python + connector server
cd ibis-server
just install
just dev

# MCP server
cd mcp-server
# see module README for uv-based setup

Project Status

Wren Engine is actively evolving in the open. The current focus is to make the context engine, execution path, and MCP integration stronger for real-world agent workflows.

If you are building with agents today, this is a great time to get involved.

Community

Wren Engine is for builders who believe AI needs better context, not just better prompts.

常见问题

What is wren-engine?

wren-engine is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Canner. The open context engine for AI agents support 15+ data sources. Built on Rust and Apache DataFusion. It has 663 GitHub stars.

Is wren-engine safe to use?

Yes. wren-engine passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install wren-engine?

Clone the repository with "git clone https://github.com/Canner/wren-engine" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is wren-engine written in?

wren-engine is primarily written in Java. It is open-source under Canner on GitHub, so you can review or fork the full source.

Are there alternatives to wren-engine?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh wren-engine against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

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

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

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

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

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

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

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

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

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

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情