alikon-art/DeterminFlow
About
A production-oriented AI workflow runtime for building, validating, recovering, and shipping complex AI workflows as dependable services.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +9
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalDeterministic workflows for probabilistic AI.
Build, validate, recover, and ship complex AI workflows as dependable services.
Why DeterminFlow · Case study · Features · Quick start · Plugins · Community
English · 简体中文
A real chapter-production workflow: direction, context, specialist writers, synthesis, validation, rendering, and persistence.
DeterminFlow is a production-oriented AI workflow runtime. It turns LLM calls, scripts, APIs, database operations, and human approvals into versioned, validated, retryable, recoverable, and auditable workflows.
Each Agent owns one clearly bounded node: it receives only the context and tools needed for that step and returns a verifiable result. DeterminFlow owns control flow, data flow, retries, and recovery.
DeterminFlow has already been validated in the real AI novel production pipeline behind NovelBuilt.
Why not just use Codex, Claude, or another single-agent framework?
Codex, Claude, and similar single-agent frameworks are excellent when the path is unknown. Once a process is clear, asking one Agent to reread the full context, remember every step, and call every tool usually makes the job slower, more expensive, and harder to maintain.
| Problem | Codex, Claude, and similar single-agent frameworks | DeterminFlow |
|---|---|---|
| Change the process | Edit prompts, skills, and natural-language constraints | Change versioned nodes, variables, branches, and subprocesses |
| Isolate context | Long runs typically carry a growing history forward | Each Agent Node sees only its local context |
| Enforce structured output | Rely on the model to keep following the agreement | Structured outputs, script validation, automatic repair, and targeted retries |
| Handle failures | Decide manually where to restart | Resume from the failed node without rerunning completed work |
| Limit permissions | One Agent typically receives the tools needed by the whole process | Each node receives only the tools it needs |
| Audit cost | Usage is typically aggregated around the whole task | Account for every node, attempt, and model call separately |
| Ship the result | Build an additional delivery layer | Package it as an API, background service, Automation, or Plugin |
The difference is practical:
- Faster development: Combine reliable nodes, validate the flow, then connect it to an API or service.
- Easier maintenance: Processes, parameters, and outputs have a stable structure instead of living in one large prompt.
- More stable execution: Models handle judgment while the Runtime owns control flow and data flow.
- No full restart after failure: Audit, retry, and recover any node without rerunning a long process from the beginning.
- Fewer tokens: Each model reads only the context it needs instead of repeatedly carrying the full history.
- Smaller permissions: Tools can be narrowed per node, with stronger LLM workspace sandboxing on the Roadmap.
Case study: saving 70%–89% of tokens in AI novel chapter production
NovelBuilt uses DeterminFlow to coordinate a chapter-production pipeline with directors, world-state and character maintenance, specialist writers, synthesis, validation, rendering, and persistence.
One completed production task used 11 isolated model sessions. A single run in DeterminFlow consumed 176,584 tokens. If the same process were handled by one long-chain Agent carrying repeated context, tool results, and repair loops, estimated token usage could reach 9.1× that of DeterminFlow:
| Single-agent scenario | Estimated total tokens | Relative to DeterminFlow | DeterminFlow saving | Terra API equivalent | Sol API equivalent |
|---|---|---|---|---|---|
| Highly optimized, almost no extra tool loops | ~595K | 3.4× | ~70% | $0.90 | $2.26 |
| Typical tool calls and context growth | ~970K | 5.5× | ~82% | $1.47 | $3.68 |
| Validation repair, retries, or long context | ~1.61M | 9.1× | ~89% | $2.43 | $6.08 |
Estimated from the real Workflow token ledger plus repeated context, tool output, and repair-loop overhead in a long-chain Agent; API prices reflect the rates used at the time of estimation.
In this real production workflow, node-level context isolation is estimated to reduce token usage by roughly 70%–89%.
DeterminFlow's core capabilities
Workflow authoring
- Visual Workflow Editor with variables, conditions, parallel branches, loops, approvals, and subprocesses
- Agent, Script, Approval, and Subprocess Core Nodes
- Per-node inputs, outputs, model selection, and failure policy
- A general Core Node abstraction for contributors and forks that need new node types
Reliable execution
- Frozen Workflow definitions and inputs for every running task
- Automatic retry, manual retry, skip, and resume from the failed node
- Persistent checkpoints across process restarts
- Independent attempt history for parallel branches, loops, and subprocesses
LLM boundaries
- Isolated sessions and token ledgers for every Agent Node
- Per-node tool allowlists, denylists, workspace configuration, and maximum turns
- JSON detection, parsing, repair, and model retry
- Directed upstream rejection when a downstream node needs a specific result corrected
Delivery and operations
- Usage and status views across Workflow, Task, Node, attempt, and model call
- FastAPI endpoints, React control plane, Cron Automation, WebSocket events, and health checks
- MCP tools, Prompt and Agent templates, Skills, and Rules as reusable Workflow building blocks
- A standalone Core that does not require any product plugin
Resource marketplace and shared account
- Discover, install, update, and publish community Skills; this release distributes Skills only
- Check updates from the Skills page with source, version, and content verification
- Use one account for the marketplace and public model service, with browser authorization and desktop return
One workspace around the Workflow
Conversation, Workflow authoring, Cron, Skills, Rules, and Plugins live in one control plane.

How it works
flowchart LR
I["API / Event / Manual Input"] --> W["Versioned Workflow"]
W --> A["Agent Node<br/>local context + minimum tools"]
A --> V["Output validation"]
V -->|"invalid"| A
V -->|"valid"| S["Script / API / Database"]
S --> C["Checkpoint + audit trail"]
C --> O["API / Service / Plugin Output"]
- Freeze the Workflow, parameters, and node inputs when a task starts.
- Run each Agent Node in an independent session with only the tools it needs.
- Repair, retry, skip, or request human input when an output fails validation.
- Use Script Nodes for deterministic work such as file conversion, API calls, and persistence.
- Store every attempt, error, token record, artifact, and checkpoint so execution can resume safely.
Extension: deliver complete AI products as Plugins
DeterminFlow handles process execution. Plugins package the process with everything it needs to ship. Common use cases include:
| Use case | What a Plugin can ship with it |
|---|---|
| Let a team or community install a mature process | Workflows, Agents, Prompts, Skills, Rules, and preset phrases |
| Turn a process into a callable business service | APIs, managed background processes, configuration, health checks, and lightweight pages |
| Deliver a stateful product workflow | Script Libraries, database migrations, persistence, and recovery logic |
Official plugins and an open-source case study
Official plugins live in
DeterminFlow-Plugins. The
bishu-novel
package is an open-source AI novel Workflow case drawn from NovelBuilt's production pipeline. Its
current public release contains:
| Production Workflows | Orchestration nodes | Agent / Prompt pairs | Reusable script modules |
|---|---|---|---|
| 7 | 84 | 33 | 15 |
It covers book setup, characters, story planning, volume and near-term outlines, chapter production, post-hoc state updates, and polishing. The public plugin uses local files and checkpoints in the user workspace; it does not require a database, separate API service, or migrations.
The optional public-api
plugin provides the public model service on Windows and macOS and shares the Core account session.
Community plugins
Community submissions live in the separate
DeterminFlow-Community-Plugins
repository, not the official plugin repo. Core ships that community source so you can browse and
install from the Plugins page. Listing only means the package passed structural checks; it is not an
official security endorsement or a maintenance promise. Community plugins run with the same
privileges as the DeterminFlow process and are not sandboxed. Confirm the risk before installing.
You can also add your own Git repository.
[!NOTE] Plugins compose Workflows from existing Core Nodes. Developers who need a new node type can fork Core and extend the general Node abstraction.
Security note: Plugins currently run as trusted local code without sandbox isolation. Install only trusted sources. Stronger per-node LLM and workspace sandboxing remains on the Roadmap.
Quick start
Desktop installers
Download from GitHub Releases or the website download page. Installers include the runtime; Python, Node.js, and Git are not required to start the desktop app.
| Platform | Core | Full |
|---|---|---|
| Windows x64 | DeterminFlow_1.1.1_x64-setup.exe |
DeterminFlow_1.1.1_x64-full-setup.exe |
| macOS Apple Silicon | DeterminFlow_1.1.1_aarch64.dmg |
DeterminFlow_1.1.1_aarch64-full.dmg |
Core bundles no plugins. Full includes bishu-novel 0.2.2 and public-api 0.1.37.
Use the first-run guide to configure your own model API or try the public model service.
The macOS app is ad-hoc signed and has not been notarized by Apple. Drag it into Applications. If macOS blocks opening it, use System Settings → Privacy & Security → Open Anyway and confirm. macOS updates currently require downloading and installing the new package manually.
Upgrades preserve user data, model configuration, and installed plugins. Full does not overwrite existing plugins. Check for plugin updates in the app and restart after updating. Official plugins support signed HTTPS downloads, with Git as a fallback.
Run from source
Python 3.11+, Node.js 22.12+, and npm are required. Choose the commands for your system.
macOS / Linux
git clone https://github.com/alikon-art/DeterminFlow.git
cd DeterminFlow
python -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.lock
cp .env.example .env
cp config/models_config.example.json config/models_config.json
python run.py
Windows PowerShell
git clone https://github.com/alikon-art/DeterminFlow.git
Set-Location DeterminFlow
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.lock
Copy-Item .env.example .env
Copy-Item config\models_config.example.json config\models_config.json
.\.venv\Scripts\python.exe run.py
You can start first and enter the API key on the Settings page. Alternatively, set
DEEPSEEK_API_KEY in .env; the model configuration reads it through
${DEEPSEEK_API_KEY}.
Then open:
- Web UI:
http://localhost:8020 - API docs:
http://localhost:8020/docs - Plugin status:
GET /api/plugins
Or start with Docker:
docker compose up --build
New configuration uses the DETERMINFLOW_* prefix. Existing AI_COMPANY_* environment variables
and the ai_company.extensions entry-point group remain supported as compatibility aliases; the new
name wins when both are set. Community builds default to four local Workflow Executor processes for
ordinary detached Workflow Tasks. Fall back to a single process with
DETERMINFLOW_WORKFLOW_EXECUTOR_MODE=inline and DETERMINFLOW_WORKFLOW_EXECUTOR_COUNT=1.
Documentation
Development
python -m pip install -r requirements-dev.lock
python -m pytest -q
(cd web && npm run lint && npm run test:extensions && npm run build)
docker compose -f docker-compose.yml config -q
Community and collaboration
| If you want to... | Start here |
|---|---|
| Report a bug or suggest a feature | GitHub Issues |
| Discuss usage, Workflows, and Plugin development | Join the QQ or WeChat group below |
| Request custom Workflow or Plugin development, private deployment, or product integration | WeChat Reactive404 · Email |
Join the group chat
| QQ group | WeChat group |
|---|---|
![]() |
![]() |
Group ID: 945515407 |
The fixed image URL is updated when the QR code expires |
Roadmap
- Complete the remaining internal compatibility-name migration to DeterminFlow
- Add stronger per-node workspace and LLM execution sandboxes
- Provide reusable templates for publishing a Workflow as an independent API or service
- Add more reproducible production Workflow examples
License
DeterminFlow is licensed under the
GNU AGPL v3 (AGPL-3.0-only).
Created and maintained by alikon-art.
Built from the production workflow needs behind NovelBuilt.
Explore related projects
Loading…

