alikon-art/DeterminFlow
Self-hosted AI workflow runtime with node-level validation, retries, and recovery
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
DeterminFlow separates workflow control from model judgment. API, event, or manual input starts a Task that freezes the versioned workflow definition and its inputs. The runtime coordinates four core node types: Agent, Script, Approval, and Subprocess. Agent nodes receive scoped context and tools; Script nodes handle deterministic operations such as file conversion, API calls, and database writes. Attempts, artifacts, and checkpoints are persisted for inspection and recovery.
The Python backend pins langgraph==1.2.8, langchain-openai==1.3.3, langchain-anthropic==1.4.1, and mcp==1.28.1. FastAPI and Uvicorn serve the API, a React console provides the UI, and WebSocket events expose runtime updates. Core runs without business plugins. Plugins can bundle workflows, agents, prompts, skills, and rules with API endpoints, managed background processes, script libraries, or database migrations.
Key Capabilities & Differentiators
The visual editor supports variables, conditions, parallel branches, loops, approval gates, and subflows. Agent nodes have independent sessions and token ledgers, with per-node tooling, workspace, and turn limits. The runtime can detect, parse, and repair JSON, retry model calls, or direct an upstream node to rework an output rejected downstream. Operators can inspect usage by workflow, task, node, attempt, and model call, then retry, skip, or resume from a failed node.
The manifest includes OpenAI and Anthropic integrations, and the source setup shows a DeepSeek API key referenced from model configuration. The bishu-novel plugin is a concrete reference implementation: its public local-file workflows include 7 workflows, 84 nodes, 33 Agent/Prompt combinations, and 15 reusable script modules. In one production writing run, 11 independent model sessions used 176,584 tokens. The 70–89% savings figure compares that measured run with estimated single-agent consumption, not a measured head-to-head benchmark.
Trade-offs & Limitations
Compared with a single agent, explicit workflow nodes take more upfront work: teams have to define inputs, outputs, validation, and failure paths. That work pays off when steps repeat and operators need to recover one step without rerunning the rest. Determinism here applies to orchestration, not model output. Against n8n Cloud, the choice is whether node-scoped model controls and recovery justify running the service yourself. If managed hosting and existing integrations are the priority, evaluate n8n Cloud first.
The supplied Compose topology is one app service with local executors and bind mounts; it does not establish multi-host failover. Test restart recovery and make external writes idempotent rather than assuming checkpoints guarantee exactly-once execution. Tool lists narrow agent access but are not a strong sandbox; stronger workspace isolation is on the roadmap, and plugins can run on the same host with the same permissions. Review plugin code and provenance before installing it. AGPL-3.0-only obligations matter for modified network deployments and for distribution.
Hardware & Deployment Guide
On a host with Docker Compose, run docker compose up --build. Compose serves the Web UI at http://localhost:8020 and API documentation at /docs; GET /api/plugins exposes plugin status. It bind-mounts ./data, ./logs, and ./config into /app. The default detached-task setup uses four local executor processes. Set DETERMINFLOW_WORKFLOW_EXECUTOR_MODE=inline and DETERMINFLOW_WORKFLOW_EXECUTOR_COUNT=1 for single-process execution. The Compose port mapping binds beyond loopback by default, so restrict exposure to the intended network.
Source runs require Python 3.11+, Node.js 22.12+, and npm. Install requirements.lock, copy the environment and model-config templates, and start python run.py. Self-hosting the runtime does not make external model calls offline. The v1.0.10 release added default Windows executor processes with task affinity for retry and rework; v1.1.0 added Apple Silicon installers, and v1.1.1 added a separate community plugin source with an install warning. The Windows x64 and Apple Silicon desktop packages bundle the runtime; Core ships without plugins, Full preinstalls two, and macOS packages are ad-hoc signed rather than notarized.
Teams turning repeatable, multi-step AI pipelines into self-hosted services that need validated outputs, human approvals, observable usage, and recovery at the failed step.
Your work is mostly exploratory, a managed integration product already meets your needs, or you require verified multi-host failover or strong isolation for untrusted plugins without adding those controls yourself.
Quick Start & Installation
docker compose up --build
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| DeterminFlow ★ | 988 | +7 | Python | AGPL-3.0 | Self-hosted AI workflow runtime with node-level validation, retries, and recover |
| windmill | 19k | +236 | Rust | — | PostgreSQL-backed orchestration for code-first workflows, apps, and AI agents |
| Vibe-Trading | 39.6k | +490 | Python | MIT | A self-hosted trading agent for evidence-linked research and inspectable backtes |
| paperclip | 119.3k | +1.6k | TypeScript | MIT | Self-hosted control plane for coordinating AI agents, tasks, approvals, and spen |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/alikon-art/DeterminFlow.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about DeterminFlow
How should a business service integrate with the runtime and handle retries?
/docs and WebSocket events for live status. A Task freezes its workflow and inputs at startup, and checkpoints support recovery after a process restart. For Script nodes that write to external systems, use idempotency keys or application-level deduplication: restoring a checkpoint does not by itself guarantee exactly-once delivery.Does self-hosting require a GPU, and how should I size the server?
Can I run it commercially as an internal or customer-facing service?
When should I pick DeterminFlow over n8n Cloud or a single-agent framework?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy