# Repository Briefing: alikon-art/DeterminFlow
> Source: https://repoforai.com/repo/alikon-art/DeterminFlow (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/alikon-art/DeterminFlow
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: Python
- **License**: AGPL-3.0
- **Engineering Health**: B+ (67/100 · Maintenance 20/35 · Adoption 19/25 · Releases 17/20 · License 11/20)
- **Latest Release**: v1.1.1 (2026-09-11) — https://github.com/alikon-art/DeterminFlow/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 988 ★ total (+2 24h / +7 7d) · 151 forks
- **Topics**: `agent-orchestration`, `ai-agents`, `ai-workflow`, `fastapi`, `llm`, `multi-agent`, `python`, `workflow-automation`, `workflow-engine`, `workflow-runtime`
- **When to Use**: Best for: 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. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Execution snapshot: a Task freezes its workflow definition and inputs at startup so in-flight runs are not redefined by subsequent edits.
- Node-level model controls: independent sessions and token ledgers, with configurable workspace, turn limits, and tool allowlists or denylists.
- Validation and rework: detect, parse, and repair JSON; downstream nodes can reject results and send work back to a specific upstream step.
- Recovery and audit: restart-persistent checkpoints, with separate attempt histories for parallel branches, loops, and subprocesses.
- Service interfaces: FastAPI, a React console, WebSocket lifecycle events, Cron automation, and health checks.
- Plugin delivery: package workflows and reusable assets with APIs or background processes; v1.1.1 separates community and official sources and warns before community or custom installs.
```

## Quick Start / Clone
```bash
docker compose up --build
```
