Skip to content
项目

关于

AI-Native Verified Scientific Workflow Engine (Real-World Feedback is welcome!) https://traitome.github.io/oxo-flow/latest/

科学与工程

这些数字如何统计

30 星标3 复刻 +1 24小时

实测星标增长

24小时
+1
7天
+1
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
oxo-flow logo

oxo-flow

The verifiable bioinformatics workflow engine for AI-native science — declarative TOML compiled to a static DAG, machine-checkable evidence at every gate, and an AI companion whose generated pipelines must pass those gates.

Build & status CI GitHub release Docs License
Install Crates.io bioconda docker image MSRV Rust Platform
Adoption ghcr pulls GitHub downloads bioconda downloads cargo installs open vsx open vsx installs
Community Community workflows contributors GitHub stars Ask DeepWiki

Documentation · Workflow Gallery · Community · Roadmap · Contributing · Security


What is oxo-flow?

oxo-flow is a high-performance bioinformatics pipeline engine built in Rust. It compiles workflows into Directed Acyclic Graphs and orchestrates execution with native concurrency, per-rule environment isolation, and AI assistance grounded in engine APIs — all from a single binary.

🧬 Community: browse curated, rated, ready-to-run workflows — ports of popular nf-core & Snakemake pipelines, original designs, and community submissions — at oxo-flow-community.

  • 🤖 AI Companion & Scientist Team — Grounded on deterministic engine APIs: engine-validated pipeline generation and refinement, 31 domain diagnostic patterns, experimental repair proposals, and an opt-in Scientist Team multi-agent review profile. Powered by Claude, OpenAI, DeepSeek, or local Ollama.
  • 🔀 DAG-first engine — Full static planning before compute: automatic dependency resolution, topological ordering, cycle detection, and target-driven (-t) minimal rule scheduling.
  • 🛡️ Physical resource & disk guards — Multi-stage runtime disk-pressure guard (min_free_disk / reclaim_free_disk with cascade tombstone reclamation), global scratch directory isolation (tmp_dir / OXO_FLOW_TMPDIR), concurrency-aware CPU/memory scheduling, and declared GPU/disk requirements validated and translated for cluster backends.
  • 📦 8 isolated environment backends — conda, mamba, pixi, docker, singularity, venv, system, and HPC modules — with per-rule isolation and an opt-in content-addressable store (OXO_FLOW_ENV_STORE) reclaimed explicitly via oxo-flow env gc.
  • 🔒 Provenance and integrity controls — With --provenance, run evidence records SHA-256 output checksums on both the local and cluster execution paths, alongside configuration fingerprints, environment identities, and protected data tree audits (protected_data_trees); recorded checksums take precedence, with file modification timestamps (mtime) used only as a bounded fallback.
  • ⚡ Rust performance & safety — Compiled native binary with no embedded Python or JVM runtime, Tokio concurrency, and #![forbid(unsafe_code)] in every workspace crate; bioinformatics tools, containers, and environment managers remain explicit external dependencies. No absolute startup/memory figure is claimed: reproducible benchmarks with their limits live in BENCHMARKS.md and benches/comparative/, and deployment figures should be measured on your hardware (see Deployment Modes).
  • 🌐 Modern Web Studio & Desktop shell — Embedded React 19 SPA with interactive DAG canvas (React Flow + d3-dag), CodeMirror 6 TOML editor, and native desktop app (oxo-flow-desktop, wry + tao).
  • 🧩 First-party VS Code IDE — traitome.oxo-flow extension published on both Open VSX and the VS Code Marketplace: schema-driven completion, background diagnostics, canonical formatting, and one-click run/dry-run/graph/resume actions.
  • 📊 Reporting designed for clinical review — Deterministic HTML, JSON, Markdown, and PDF reports generated from checkpoint data; real tool QC metric parsing (fastp, STAR, bcftools, etc.), R-friendly TSV export (--r-data), and automated run snapshots. Clinical qualification is a separate evidence and governance process.
  • 🗄️ Checkpoint resume — JSON-persisted execution state; resume interrupted workflows from the last checkpointed rule, with reuse governed by recorded freshness, output-manifest content verification, and provenance checks.
  • 🚀 Three deployment modes — Personal workstation, team server with OAuth2 (ORCID/GitHub), or HPC cluster submit panel — all from the exact same binary.
  • 📚 Evidence-backed research — biological type contracts, self-healing runs, workflow transpiling, and run provenance each have a canonical report; the record index maps them.

Architecture at a glance

                    ┌────────────────────────────────────────┐
                    │            Interaction Layer           │
                    │  CLI (40 subcommands) │ Web (React 19) │
                    │  VS Code Extension    │ Desktop (Wry)  │
                    └──────────────────┬─────────────────────┘
                                       │
             ┌─────────────────────────┼─────────────────────────┐
             ▼                         ▼                         ▼
 ┌───────────────────────┐   ┌───────────────────────┐   ┌───────────────────────┐
 │     oxo-flow-ai       │   │     oxo-flow-core     │   │     oxo-flow-web      │
 │ Multi-backend LLMs    │   │ Static DAG Engine     │   │ Axum REST API (100+)  │
 │ Embedded Bio-KBs      │◄─►│ Wildcard Expansion    │◄─►│ SSE Realtime Bus      │
 │ Agent Orchestrator    │   │ Checkpoint/Provenance │   │ SQLite / PostgreSQL   │
 │ Scientist Team Loop   │   │ 8 Environment Backends│   │ Diagnostics (31)      │
 └───────────────────────┘   └───────────┬───────────┘   └───────────────────────┘
                                         │
                                         ▼
                           ┌───────────────────────────┐
                           │      Execution Layer      │
                           │ Local Process (Tokio)     │
                           │ HPC: Slurm/PBS/SGE/LSF    │
                           │ k8s / AWS Batch / GCP     │
                           │ S3 / GCS Staging Engine   │
                           └───────────────────────────┘

Built for people and agents

The same engine serves both audiences — an agent calls the same gates a person does and gets the same evidence back. There is no shadow API and no "AI-only" execution path.

For people

  • One engine, four first-party surfaces: the CLI (with an embedded web server), the React 19 Web Studio (interactive DAG canvas + TOML editor), the VS Code extension, and a native desktop shell.
  • Guided static gates — validate → dry-run → lint — with stable E/W diagnostic codes and remediation suggestions, before any compute.
  • Readable execution: checkpoint resume, provenance records (--provenance, provenance verify), and HTML/JSON/Markdown/PDF reports generated from checkpoint data.
  • Physically grounded runtime: 8 environment backends, disk-pressure guard (min_free_disk / reclaim_free_disk), scratch isolation (tmp_dir), and content-addressed invalidation.

For agents

  • oxo-flow agent-docs scaffolds AGENTS.md, CLAUDE.md, and the full SKILL.md operating manual into a project — the manual ships inside the binary, so it works offline from the same single file you run.
  • Deterministic contract: every gate supports --json with stable diagnostic codes and exit codes; errors use the structured {code, message, detail, suggestion} shape.
  • AI-generated pipelines are compiler-validated, not trust-me: template --ai and the web copilot run the same PipelineGenAgent through an orchestrator whose output must pass the engine's own schema/validate gates.
  • Safety by construction: the skill's data-safety contract (inputs read-only, scratch confined to the project, append-only operation journal), [engine] protected_data_trees drift detection, and an explicit OXO_FLOW_AI_PROVIDER=disabled pin that no persisted tier can override.
  • Self-contained knowledge: Bioconda, bio.tools, nf-core module, and pipeline-graph indexes are embedded in the binary; no network round-trip is required to validate a workflow.

See AGENTS.md for the contributor/agent context and docs/guide/src/SKILL.md for the canonical operating manual.

Why oxo-flow?

Feature oxo-flow Snakemake Nextflow
Language Rust — compiled, type-safe, #![forbid(unsafe_code)] in the core, AI, CLI, and web crates Python Groovy/JVM
Startup & runtime Native binary — no interpreter or JVM to start Python interpreter startup JVM startup
Workflow format TOML (.oxoflow) — declarative, composable Snakefile (Python DSL) Nextflow DSL (Groovy)
Execution planning Pure DAG compiled & verified before compute; target-driven (-t) minimal subgraphs Dynamic DAG evaluated by Python runtime Dataflow channels dynamically wired at runtime
Reproducibility model SHA-256 output checksums with --provenance (local and cluster runs), config fingerprints, protected data tree audits; recorded checksums take precedence over file timestamps File modification timestamp (mtime), sensitive to clock/NFS drift Task hash cache (.nextflow/cache) built primarily from input content hashes
Disk & scratch safety Built-in runtime disk-pressure guard (Hold/Reclaim ladder) + global tmp_dir scratch isolation No engine-level disk-pressure guard; tools use the system temp directory by default Disk monitoring via Wave/Tower; no engine-level cascade reclamation
Environment support 8 backends — conda, mamba, pixi, docker, singularity, venv, system, modules — per-rule conda, singularity, docker conda, docker, singularity, modules
Web interface Built-in React 19 SPA + 100+ OpenAPI operations + SSE live events External Snakemake-UI / panoptes Nextflow Tower / Seqera Platform (commercial)
Editor & IDE First-party VS Code IDE (Open VSX + VS Code Marketplace) & native desktop shell Community editor plugins Community editor plugins
Reporting Built-in HTML/JSON/Markdown/PDF reports from checkpoint data + domain QC parser + --r-data TSV Via MultiQC Via Nextflow Tower / MultiQC
Cluster backends SLURM, PBS, SGE, LSF, Kubernetes, AWS Batch, GCP Batch, Tencent Batch SLURM, PBS, SGE, LSF SLURM, PBS, SGE, LSF, k8s, AWS Batch
Security Shell sanitization, path traversal prevention, rate limiting, and a dimensional tenant boundary: environment allowlist (always on), Linux CPU/memory/process rlimits, an opt-in kernel Landlock filesystem/TCP sandbox, and an opt-in per-run user + PID namespace (OXO_FLOW_WEB_ISOLATION=userns, Linux, fail-closed) that hides host processes and blocks run-to-host/cross-tenant signals (host-side signals still reach the run — that is how cancel works). Every mode is fail-closed when requested; UDP/ICMP, per-run uid, per-tenant containers, and the isolation-off mode remain residuals No built-in web auth/rate limiting No built-in web auth/rate limiting (Tower adds commercial auth)
AI Companion Architectural citizen — unified agent, 31 domain diagnostic patterns, Scientist Team Not built-in Not built-in
Testing Rust unit/integration suites, schema-drift checks, and deterministic AI-eval harness + gold gates in CI; provider-backed benchmark runs record git SHA and content hashes per capture pytest-based Spock / varied

Comparison statements describe architectural defaults, not measured benchmarks; performance and generation quality are evaluated separately in the eval/ harnesses.

Why a new engine for the AI era?

The dominant workflow engines were designed for humans writing code by hand — and that is precisely where they strain in an AI-authored pipeline world. Snakemake embeds arbitrary Python; Nextflow wires data through Groovy channel operators. Both are expressive for people, but in both the DAG is whatever the script computes at runtime: fully verifying dependencies, data contracts, or resources means executing the script itself, so a model's hallucination surfaces as a 3 a.m. failure on node 400 instead of a rejected file.

Dimension Nextflow (Groovy DSL2) Snakemake (Python-embedded) oxo-flow
AI generation difficulty High — closures, channel operators, runtime deadlocks Medium–high — embedded Python, hidden side effects Low — schema-validated declarative TOML with a hard syntax boundary
Static verification before compute Hard — graph is whatever Groovy evaluates Hard — input/output sets require executing Python Native — validate → dry-run → lint compile the static DAG before any job runs
Machine-readable failure contract Runtime stack traces Python tracebacks Stable E/W/SCI-*/TYPE-* codes, --json on every gate, structured {code, message, detail, suggestion} errors

These are structural comparisons, not measured benchmarks; generation quality and cost are tracked separately in the deterministic eval/frontier/ harness.

oxo-flow's answer runs in three moves: collapse the input side (natural language in, engine-validated .oxoflow out — template --ai output must pass the engine's own gates), standardize the intermediate representation (.oxoflow is a deterministic, schema-gated IR from which the DAG, environment plan, and evidence record are all derived), and raise the output side (biological type contracts, scientific preflight, structured diagnostics, cryptographic provenance — the engine carries the checkable part of correctness, not the user's scientific judgment).

The trade-off is stated honestly: dynamic DSLs remain unmatched for free-form programmatic logic, and the ecosystem's domain knowledge (nf-core, community rules) is real. The full paradigm analysis, the scientific thesis behind these moves, and their explicit maturity labels live in the Vision page.

Design Principles

  1. DAG as pure declarative data — a workflow is a validated graph, not an imperative script; dependencies, wildcards, environments, and resources are declared statically (architecture).
  2. Content-addressed evidence over timestamps — SHA-256 output checksums, config fingerprints, and environment identities take precedence; mtime is a bounded fallback. This detects declared state changes, not biological correctness (provenance).
  3. Hard physical boundaries — CPU, memory, GPU, and disk constraints, scratch isolation, and a disk-pressure ladder are scheduling inputs (workflow format).
  4. Environment isolation — eight backends with optional content-addressable deduplication; it reduces tool conflicts and is not a host or tenant security boundary (environments).
  5. Rust-native performance and safety — no Python or JVM in the orchestration path; reproducible benchmarks and their documented limits live in BENCHMARKS.md.
  6. AI as an architectural citizen — engine-validated generation, advisory diagnosis, and experimental repair that requires a verified rerun (AI CLI).

Workflow Gallery

Learn oxo-flow incrementally with curated, validated example workflows — from a one-rule hello-world to reference-scale pipelines. Every workflow passes oxo-flow validate and is tested in CI. See the Workflow Gallery for the full catalog with detailed explanations, DAG visualizations, and CLI output.

Quick Start

Install from pre-built binaries

Download the latest release for your platform from GitHub Releases:

# Linux (x86_64)
curl -LO https://github.com/Traitome/oxo-flow/releases/latest/download/oxo-flow-latest-x86_64-unknown-linux-gnu.tar.gz
tar xzf oxo-flow-latest-x86_64-unknown-linux-gnu.tar.gz
sudo mv oxo-flow /usr/local/bin/

# macOS (Apple Silicon)
curl -LO https://github.com/Traitome/oxo-flow/releases/latest/download/oxo-flow-latest-aarch64-apple-darwin.tar.gz
tar xzf oxo-flow-latest-aarch64-apple-darwin.tar.gz
sudo mv oxo-flow /usr/local/bin/

Install with cargo

cargo install oxo-flow-cli

Install with Conda

conda install -c bioconda oxo-flow-cli

Version caveat — the bioconda recipe can lag a freshly cut release while the bot recipe update lands. Check conda search -c bioconda oxo-flow-cli for the currently delivered version; if it is behind the release notes you need, install from the pre-built binaries above or cargo install oxo-flow-cli (crates.io).

Run with Docker

Pre-built images are published to GitHub Container Registry on every release (and every push to main). Release images are multi-arch (linux/amd64 + linux/arm64, so Apple silicon and ARM servers pull a native image). :latest moves only after the release image passes a health smoke test; a rolling :<major.minor> tag (e.g. :0.32) tracks the newest patch of each minor line, and :main is a multi-arch dev build from source:

# Web UI at http://localhost:3000 (CLI is inside the same image)
docker run -d --name oxo-flow -p 3000:3000 ghcr.io/traitome/oxo-flow:latest

# Pin a release (or track a minor line)
docker run -d -p 3000:3000 ghcr.io/traitome/oxo-flow:0.32.0
docker run -d -p 3000:3000 ghcr.io/traitome/oxo-flow:0.32

# CLI one-shot usage (workflow files mounted from the host)
docker run --rm -v "$PWD:/work" -w /work ghcr.io/traitome/oxo-flow:latest \
  oxo-flow run my-pipeline.oxoflow

Health endpoint: GET /api/health returns "status":"ok" when the database is reachable.

Container configuration is env-only: the image sets OXO_FLOW_MODE=team, OXO_FLOW_HOST=0.0.0.0, and OXO_FLOW_PORT=3000 as defaults, and the CMD carries no CLI flags — so docker run -e OXO_FLOW_PORT=9090 … changes the actual bind port (the built-in healthcheck follows it). Personal mode inside a container needs --network host instead of published ports, because personal mode always binds loopback (docker run --network host -e OXO_FLOW_MODE=personal …); see Deployment Modes. Note the published image is built without the postgres compile feature: pointing DATABASE_URL at a postgres:// URL makes the container exit at startup (see the docker-compose.yml comment for how to build a feature-enabled image).

Build from source

git clone https://github.com/Traitome/oxo-flow.git
cd oxo-flow
cargo build --release --workspace

# Build the web SPA so `oxo-flow serve` has assets to serve
# (the committed index.html references gitignored build output):
make frontend-build   # or: cd frontend && npm install && npm run build

# Install the CLI to your local cargo bin directory:
cargo install --path crates/oxo-flow-cli

# Binaries are in target/release/
# - oxo-flow        (CLI, includes `oxo-flow serve` for web UI)
# - oxo-flow-web    (Standalone web server)

Skipping the frontend build is safe: oxo-flow serve detects the missing SPA assets and shows an actionable "SPA not built" page instead of a blank screen.

First workflow

# Create a new pipeline project (creates my-pipeline/ directory and my-pipeline.oxoflow)
oxo-flow init my-pipeline
cd my-pipeline

# Validate the workflow
oxo-flow validate my-pipeline.oxoflow

# Preview execution plan
oxo-flow dry-run my-pipeline.oxoflow

# Execute with 8 parallel jobs
oxo-flow run my-pipeline.oxoflow -j 8

# Visualize the DAG (use -f dot for Graphviz DOT output)
oxo-flow graph my-pipeline.oxoflow -f dot > dag.dot
dot -Tpng dag.dot -o dag.png

# Export a transit-map-style diagram via nf-metro
oxo-flow graph my-pipeline.oxoflow -f metro -o pipeline.mmd
# Render locally (requires nf-metro) or paste the .mmd content into the
# online playground: https://seqeralabs.github.io/nf-metro/latest/playground/
nf-metro render pipeline.mmd -o pipeline.svg

# Generate an HTML report
oxo-flow report my-pipeline.oxoflow -f html -o report.html

Cluster / HPC

oxo-flow supports job submission to HPC and cloud batch schedulers including SLURM, PBS/PBS Pro, SGE/UGE, LSF, Kubernetes, AWS Batch, GCP Batch, and Tencent Batch. The oxo-flow cluster subcommand manages the full submission lifecycle.

# Submit a workflow to a SLURM cluster
oxo-flow cluster submit workflow.oxoflow --backend slurm --queue short -o jobs/

# Per-instance status for a `run --profile` deployment (newest run dir by default)
oxo-flow cluster status
oxo-flow cluster status --run-dir .oxo-flow/runs/2026-01-01T12-00-00-000 --json

# Raw scheduler view (no ids: lists the user's jobs; --backend optional)
oxo-flow cluster status --all
oxo-flow cluster status --backend slurm <job-id>

# Logs for an id or rule instance: captured output, then accounting, then scontrol
oxo-flow cluster logs <job-id-or-instance> --tail 50

# Cancel a submitted job
oxo-flow cluster cancel --backend slurm <job-id>

Supported backends: slurm, pbs, sge, lsf, kubernetes/k8s, aws-batch, gcp-batch, tencent-batch. Cluster submissions are configured inline via oxo-flow cluster submit flags.

run --profile <name> is the everyday cluster path: jobs submit as native scheduler arrays, terminal verdicts fold into the checkpoint as each job settles (a crashed driver loses no completion state), and a restarted run re-queues interrupted rules instead of trusting their partially written outputs. [engine] dispatch_order = "sample" orders equal-priority ties by sample so each sample's stages run adjacent instead of in global phases (priority aging still applies). See Running on a cluster.

Workflows can also carry reusable config supplements (e.g. per-cluster thread and memory defaults) in profiles/<NAME>.toml next to the workflow:

# Run a workflow with a config supplement profile
oxo-flow run workflow.oxoflow --profile slurm

Workflow Format (.oxoflow)

oxo-flow uses a TOML-based workflow format that is human-readable, composable, and declarative:

[workflow]
name = "variant-calling"
version = "1.0.0"

[config]
reference = "/data/ref/GRCh38.fa"

[[rules]]
name = "fastp"
input = ["raw/{sample}_R1.fastq.gz", "raw/{sample}_R2.fastq.gz"]
output = ["trimmed/{sample}_R1.fastq.gz", "trimmed/{sample}_R2.fastq.gz"]
threads = 8
shell = "fastp -i {input[0]} -I {input[1]} -o {output[0]} -O {output[1]}"

[rules.environment]
conda = "envs/fastp.yaml"

[[rules]]
name = "bwa_align"
input = ["trimmed/{sample}_R1.fastq.gz", "trimmed/{sample}_R2.fastq.gz"]
output = ["aligned/{sample}.bam"]
threads = 16
memory = "32G"
shell = "bwa-mem2 mem -t {threads} {config.reference} {input[0]} {input[1]} | samtools sort -o {output[0]}"

[rules.environment]
docker = "biocontainers/bwa-mem2:2.2.1"

Wildcards like {sample} expand automatically via input file discovery. Features include reference directory conventions, environment groups, optional rules, and directory inputs. See the full Workflow Format Specification for details.

Editor Support (VS Code)

The first-party oxo-flow Pipeline extension (traitome.oxo-flow) makes VS Code a full .oxoflow IDE — and it is released in lockstep with the engine (VSIX with checksum attached to every GitHub release):

Note — the extension is published to both marketplaces: Open VSX (searched by default by VSCodium, Cursor, Windsurf and most forks) and the VS Code Marketplace (stock VS Code, live since v0.31.0). Install from either, or grab the release VSIX offline:

codium --install-extension traitome.oxo-flow              # Open VSX (forks)
code --install-extension oxo-flow-vscode-v<version>.vsix  # offline VSIX (any VS Code)

It provides [[rules]]-aware syntax highlighting (wildcards and {input[0]} placeholders), completion and hover docs generated from the canonical workflow JSON Schema, background validate/lint diagnostics anchored to the failing rule, canonical formatting, and one-click run / dry-run / graph / resume / AI-generate commands. See the VS Code Extension reference, or Editor Setup for other editors (Zed, Helix, Neovim, JetBrains, …).

CLI Commands

The oxo-flow binary provides 40 subcommands covering the complete workflow lifecycle. See the full CLI Reference for details.

Category Commands
Execution run, resume, dry-run (alias plan), test, batch
Development init, agent-docs, validate, format, lint, debug, template, import, export-dsl
Inspection graph, info, report, status, wait, config, diff, provenance, lock, audit, schema, verify-data, diagnostics
Knowledge knowledge (embedded Bioconda / nf-core / skills query)
Environment env, runs, export, clean, touch
Deployment serve, cluster, publish, pull
AI & System ai, completions, license

oxo-flow config stats (alias oxo-flow config check) summarizes a workflow's configuration.

See the full CLI Reference for detailed usage of each subcommand.

Web API

The oxo-flow serve command starts an axum-powered REST server with 100+ documented operations across 9 domains (workflow, execution, dag, AI, auth, collaboration, observability, chat, clusters). Full API reference at the Web API reference (GET /api/openapi.json serves the live OpenAPI 3.1 spec).

Architecture & Workspace Layout

oxo-flow is organized as a Cargo workspace with four crates, plus a fifth (oxo-flow-desktop) that lives in crates/ but is excluded from the workspace so headless builds never need GUI toolchains:

oxo-flow/
├── crates/
│   ├── oxo-flow-core/     # Core library: DAG engine, executor, environment mgmt,
│   │                      # config parsing, scheduler, wildcard expansion, reporting
│   ├── oxo-flow-ai/       # AI companion: provider abstraction, skill system, agents
│   ├── oxo-flow-cli/      # CLI binary ("oxo-flow") — Clap-based, 40 subcommands
│   ├── oxo-flow-web/      # Web server ("oxo-flow-web") — axum REST API + frontend
│   └── oxo-flow-desktop/  # Native desktop shell ("oxo-flow-desktop", wry + tao) —
│                          # excluded from the workspace (own Cargo.toml)
├── editors/
│   └── vscode/            # First-party VS Code IDE extension (traitome.oxo-flow)
├── frontend/              # Modern React 19 + TypeScript + Vite web workspace
├── examples/              # Example .oxoflow workflows
├── tests/                 # Integration tests
└── docs/                  # Documentation (MkDocs)
Crate Type Binary License
oxo-flow-core Library — Apache-2.0
oxo-flow-ai Library — Apache-2.0
oxo-flow-cli Binary oxo-flow Apache-2.0
oxo-flow-web Binary oxo-flow-web Dual Academic / Commercial
oxo-flow-desktop Binary oxo-flow-desktop Apache-2.0

Key modules

Module Crate Responsibility
dag.rs core DAG construction, validation, topological sort
executor/ core Task execution (local, cluster, cloud), checkpointing, staging
environment.rs core Environment management (conda, mamba, pixi, docker, singularity, venv, system, modules)
config/ core Workflow configuration and .oxoflow file parsing
rule.rs core Rule/step definitions with inputs, outputs, shell, resources
scheduler.rs core Job scheduling with resource constraints
wildcard.rs core Wildcard pattern expansion ({sample}, {chr}, etc.)
report.rs core Modular report generation (HTML, JSON, PDF via wkhtmltopdf)
format.rs core Workflow formatting and linting
diagnostics.rs core 31 failure-pattern diagnostics over stderr signatures and exit codes
plugin.rs core Plugin manifests with keyed-integrity checks (tamper detection, not an adversarial signature); a plugin runtime is future work — the workflow-level [plugins] section is parsed but inert
ai_provider.rs web Multi-provider AI abstraction (Claude, OpenAI, DeepSeek, Ollama)
domains/ai/ web AI translation, chat SSE streaming, agent orchestration
domains/execution/ web Run lifecycle, diagnostics, pause/resume, retry
domains/workflow/ web Pipeline CRUD, validation, DAG building, templating
provider.rs ai Multi-provider AI client abstraction with auto-detection
skill.rs ai Skill registry and discovery system
agent/ ai Agent orchestration and tool-calling framework
mcp.rs ai MCP (Model Context Protocol) server integration

Three-Mode Deployment

oxo-flow serve starts the web interface with an embedded REST API and React SPA. Run it without arguments for local experimentation:

# Mode 1: Personal workstation (default) — SQLite, localhost:8080, no auth
oxo-flow serve
# → Open http://127.0.0.1:8080 in your browser

# Mode 2: Team server — multi-user (env-var passwords + optional ORCID/GitHub OAuth2)
oxo-flow serve --mode team --host 0.0.0.0

# Mode 3: HPC submit panel — the scheduler (SLURM/PBS/SGE/LSF) is probed at
#   startup when the server itself runs on a cluster login node
oxo-flow serve --mode hpc

Serve flags: --mode (personal | team | hpc), --host (default 127.0.0.1), -p/--port (default 8080), --base-path, and --open (open the browser on startup). Each flag also has an OXO_FLOW_* environment-variable form, plus a platform config file layer — see Deployment Modes.

PostgreSQL: both oxo-flow serve and the standalone oxo-flow-web binary read the DATABASE_URL environment variable — a postgres:// URL (on a build with the postgres feature) enables the PostgreSQL backend for storage-backed web domains; the default (sqlite://oxo-flow.db in the working directory) stays SQLite. Note that the published Docker image is built WITHOUT the postgres feature — rebuild with cargo build --features postgres to enable it. Run execution and lifecycle bookkeeping route through the unified StorageBackend trait. A 2026-11-26 campaign measured two instances on one host and in separate Linux network namespaces, full/asymmetric partitions, connection exhaustion, clean and SIGKILL crash restarts, per-user quota isolation, and owner-lease reconciliation of a killed web process (evidence). Separate physical hosts, production scale, per-query network timeouts, database media corruption, and cross-host clock skew remain unproven; do not treat the trait implementation or this single-host campaign as production-parity evidence.

Documentation

Full documentation is available at traitome.github.io/oxo-flow/latest/.

📖 Documentation Quick Links

If you are... Recommended Start
New to oxo-flow Quick Start · First Workflow
A Bioinformatician Workflow Gallery
A Pipeline Engineer Workflow Format Specification · CLI Reference
A DevOps/Cloud Admin Environment Management · Running on Cluster
A Bioinformatics Core Workflow Gallery · Environment Management

MkDocs source lives under docs/guide/src/.

Development

# Build all workspace crates
cargo build --workspace

# Run all tests (unit + integration)
cargo test --workspace

# Run the full CI suite (fmt + clippy + unwrap-tripwire + build + test + schema-drift + skill-drift + version-check + audit + deny + aws-legacy-tripwire + issue-id-tripwire + npmmirror-tripwire + truthset-stamp + claims-check + secrets + docs + docs-lint + frontend-lint + eval-tests + eval-lint + provenance-check + reports-regen + bench-docs-check + extension-test)
make ci

# Individual CI steps
cargo fmt -- --check                             # Check formatting
cargo clippy --workspace --all-targets -- -D warnings  # Lint (zero warnings)
cargo build --workspace                          # Compile
cargo test --workspace                           # Test

# Format code
cargo fmt

A bare cargo build at the repo root builds only the root oxo-flow library package (the integration-test crate) — not the CLI or web binaries. Pass --workspace whenever you want target/*/oxo-flow and target/*/oxo-flow-web.

Tech stack

Component Technology
Language Rust (2024 edition)
Async runtime tokio
CLI framework clap (derive)
Web framework axum
Serialization serde + TOML
Graph library petgraph
Templating tera
Error handling thiserror (lib) / anyhow (bin)
Logging tracing

License

This project uses a split licensing model:

Crate License Details
oxo-flow-core Apache-2.0 Free and open-source
oxo-flow-ai Apache-2.0 Free and open-source
oxo-flow-cli Apache-2.0 Free and open-source
oxo-flow-web Academic / Commercial Free for academic and non-commercial use; commercial use requires a separate license

The core library, AI companion, and CLI are licensed under the Apache License 2.0 — you are free to use, modify, and distribute them without restriction.

The web interface (oxo-flow-web) is available under a dual license: free for academic and non-commercial use under the Academic License, and requiring a commercial license for commercial deployments. See LICENSE-ACADEMIC and LICENSE-COMMERCIAL for details.

Contributing

Contributions are welcome! Please see:

Before submitting a PR, ensure all checks pass:

make ci

Citing

If you use oxo-flow in academic research, please cite:

Shixiang Wang, oxo-flow: compiled, memory-safe bioinformatics workflow orchestration, bioRxiv, 2026, https://doi.org/10.64898/2026.06.11.731578

Jia Ding, Yun Peng, Ruochen Wei, Boquan Wang, Jian-Guo Zhou, Shixiang Wang, BLIT: an R package for seamless integration of command-line bioinformatics tool universe, Bioinformatics Advances, Volume 6, Issue 1, 2026, vbag088, https://doi.org/10.1093/bioadv/vbag088

Community

🧪 Real-World Feedback

oxo-flow aims to work reliably across diverse computing environments — laptops, HPC clusters, GPU nodes. We cannot replicate every deployment scenario in CI. If you use oxo-flow, please share your experience (success or failure) as a GitHub Issue with the prefix [Real-World Testing]. Your feedback directly shapes our priorities.

Additional Resources


Built with 🧬 by Traitome


Contributors

Thanks goes to these wonderful people:

Shixiang Wang Andrew Budge Peng

Run make contributors to refresh the contributor list from git history.

探索相关项目

加载中…