jieyefriic/rp-engine

YAML-native agent workflow execution engine, written in Rust

What it solves

Writing agent workflows by hand in code is tedious and hard to visualize. This engine lets you describe an entire workflow — nodes, edges, prompts, data sources, and tools — in one YAML file, then runs it for you. It handles dependency resolution, LLM calls, scripts, database queries, MCP tools, iteration, and multi-agent coordination.

How it works

You define a graph in YAML: nodes with types like generate, transform, iterator, supervisor, subgraph, data_connector, skill_set, and MCP tools, plus edges that connect them. The engine parses the YAML, resolves dependencies, and executes the graph in order. Each generate node can call a configured LLM provider with a prompt template, variables from earlier nodes, streaming, tool calls, and structured output. Transform nodes run Rhai scripts; iterator loops over data; supervisor routes between sub-agents; data_connector talks to PostgreSQL, MySQL, MongoDB, Redis, Qdrant, S3, or REST APIs. A harness layer injects workflow-level instructions into every generate node and supports persistent memory. Results include the source YAML so downstream tools can render topology and per-node results, and long workflows support checkpoint/resume.

Who it’s for

Developers building agent-based applications who want a declarative, versionable workflow definition rather than hand-written orchestration code. It also powers RicePrompt, a visual IDE where users design workflows graphically without writing YAML.

Highlights

  • YAML-native: whole workflow in a single file
  • Multi-provider LLM support: OpenAI, Anthropic, Gemini, DeepSeek, Qwen, Zhipu, Moonshot, MiniMax, xAI, Huoshan, and OpenAI-compatible endpoints
  • Rich node types including generate, transform (Rhai), iterator, supervisor, subgraph, data_connector, skill_set, MCP
  • Built-in data connectors for common databases and object storage
  • Harness layer with workflow-level instructions and persistent memory
  • Self-describing ExecutionResult with source YAML
  • Checkpoint/resume for long workflows

Related

  • Project
  • Project
  • Project
  • Project