by dromara
Lightweight, fast, stable, programmable component-based rule engine — where AI Agents orchestrate just like ordinary components. Uniquely designed DSL: component reuse, sync/async & dynamic orchestration, multi-language scripting, nested rules, hot deployment and smooth refresh. If you can orchestrate LiteFlow, you can orchestrate AI.
# Add to your Claude Code skills
git clone https://github.com/dromara/liteflowLast scanned: 6/3/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-03T08:55:29.763Z",
"npmAuditRan": true,
"pipAuditRan": true
}No comments yet. Be the first to share your thoughts!
LiteFlow is a powerful, modern rules engine framework that combines the best of orchestration and rules engines. It can be used in the field of complex componentized business orchestration. DSL rules drive the whole complex business, and can achieve smooth refresh hot deployment, supporting the embedding of multiple scripting language rules. Help the system become more silky and flexible.
LiteFlow was officially open-sourced in 2020 and has since become an indispensable presence in the field of open-source rule engines in China. What's more, the most crucial aspect is that LiteFlow is an open-source project that continues to iterate at a high speed.
Starting from v2.16.0, LiteFlow even turns an AI Agent into a first-class citizen that can be orchestrated directly into your rules, standing shoulder to shoulder with your existing business nodes.
LiteFlow is a community-driven project with a strong emphasis on its large and active user community. We welcome you to raise any issues or suggestions you may have within the community.
You can find out how to join the community on the official website!
LiteFlow is a choreographed rules engine that is best at decoupling your systems. If you have a complex system with bloated code, the LiteFlow framework is a great solution.
LiteFlow uses regular expressions to drive the engine that you define. Have you ever thought about how to write multithreaded process choreography like the following?
These processes can be easily solved with LiteFlow! The framework has a very low threshold to learn the expression language, but it can accomplish extremely high complexity of the choreography.
LiteFlow has an extremely detailed and easy-to-understand documentation, it can help you solve more than 95% of your problems when using the framework.
LiteFlow has 2000 test cases and more. Complete documentation and comprehensive test case coverage guarantee the stability of LiteFlow framework!
Looking forward to your use!
Starting from v2.16.0, LiteFlow ships its own AI Agent module, liteflow-react-agent.
It is not a simple "LLM component". Instead, it wraps a full ReAct (Reasoning + Acting) Agent into a standard LiteFlow component — one component is one Agent. You only declare a component and implement a few simple methods; talking to LLM providers, multi-turn conversation memory, and the Skills system are all handled for you by the module.
Once an Agent becomes a LiteFlow component, it automatically inherits the full orchestration power of LiteFlow. You write rules exactly the way you always have — except one of the nodes is now a thinking AI:
// Sequential orchestration, the AI node naturally sits between business nodes
THEN(prepare, deepseekAgent, recordReply);
// Let two different LLMs analyze the same question in parallel
WHEN(deepseekAgent, qwenAgent);
// Route to different Agents based on a condition
IF(isMath, mathAgent, deepseekAgent);
// Multi-Agent collaboration: parallel analysis + aggregated decision
THEN(prepare, WHEN(analyzerAgent, riskAgent), summaryAgent, notify);
None of THEN, WHEN, IF, SWITCH or FOR here is newly invented for AI — they are the same orchestration operators LiteFlow has used for years. If you can orchestrate LiteFlow, you can orchestrate AI.
The module connects to mainstream LLM platforms — OpenAI, Claude, Gemini, DeepSeek, Qwen (DashScope), Kimi, GLM and more — and provides multi-turn conversation memory, the Skills system, workspace file tools, streaming output, and so on. Switching models is basically a one-line change to model().
Note: The AI Agent module is built on agentscope-java and requires JDK 21+ at runtime. See the official documentation for the full usage guide.
驰骋工作流引擎
FastBee物联网平台
速众 AI 低代码开发平台
Easysearch
DISCORD LINK
Discord Link: https://discord.gg/MpdBSBnFTu
WECHAT OFFICIAL ACCOUNT
Since the community group is over 200 people, you need to be invited to join the group. Follow the WECHAT OFFICIAL ACCOUNT and click Personal WeChat to add me, I can invite you into the group

Open source is not easy, please sponsor LiteFlow if you support it