Most "AI workflow builders" put a model call inside every step. We went the other way with FlowX: the workflow builder itself writes no code and never calls an LLM. Your coding agent (Claude Code, Codex, WorkBuddy or DeepSeek Harness) does the writing; FlowX defines the contract, checks the result, and runs it.
A build is a sequence of contract tasks:
code and test. Every task carries its own contract (instructions, rules, schema) and context (the requirement, the graph, upstream node sources, previous findings). The agent never has to remember the rules from an earlier build; they travel with the task.
When a node is submitted, FlowX audits it and runs its test under pytest. A rejected node comes back with findings (rule id, message, line, remediation) plus the test log, and a repair task. Only nodes that pass are versioned and published. When all nodes pass, FlowX renders the entrypoint as a FastAPI service.
The generated nodes are plain Python: fetch, select, validate, gate. Where a workflow needs human-quality text, it pauses at an input step and lets the agent (or you) answer, then validates that answer. This keeps runs reproducible, cheap, and testable with fixtures, and side effects such as publishing stay behind explicit review steps with a dry-run default.
Agents love to "just patch the file". FlowX treats the workflow folder as read-only for the agent and verifies SHA-256 digests on the files it owns. To change behavior you open an evolve: scope: node edits one node body and re-validates compatible downstream nodes; scope: graph changes topology and re-runs the affected tasks. If a digest check fails, the tooling stops instead of guessing.
Contract design is the hard part: too strict and good code gets rejected, too loose and tests prove little. Media steps run in dry-run mode during node tests, so a passing test does not prove provider behavior. We are still learning where those lines should be.
The code, the skill, and the contract definitions are on GitHub: https://github.com/AIpRoBuilder/FlowX, and the manual is at https://www.flow-x.work. If you have opinions on how an agent-facing build contract should look, issues and pull requests are where that discussion happens.
原文来源:dev.to