PLynx is a local-first workflow engine for building and running reproducible DAGs. Workflows are plain YAML; operations are plain Python (Op or @op) running in isolated uv environments. Outputs are content-addressed and cached locally in .plynx/.
- Local-First: Runs against local files, SQLite (WAL), and a content-addressed blob store in
.plynx/. No database server or daemon required. - Isolated Environments: Custom Node Packs run in isolated
uvvirtual environments with pinneduv.lockdependencies. Built-instandard_ioops run with stdlib only. - Content-Addressed Caching: Cache keys hash the op entrypoint, op source file bytes, pack
uv.lock, input file/directory hashes, scalar parameters, and checkpoint answers, with automatic early cutoff. - Stage inputs: The browser and interactive CLI review editable inputs before each stage. Unattended runs use supplied values and Python defaults. Stage declarations and input review
- Human-in-the-Loop:
checkpoint()prompts and stage approval gates (require_approval: true) pause runs for terminal or web UI input. Each run retains its questions, answers and stage decisions in arrival order. Retrying the same submission returns its recorded result. Decision history - Web UI: Answer requests and review stage results in Stepper cards or the Graph properties bar. Both views retain drafts while you inspect the run. Graph also provides an editable React Flow canvas for authoring workflows.
- Scratch Debugging: Reproduce and fix any failed node in an isolated scratch copy with
plynx run-node <node_dir>, then resume withplynx resume <run_id>.
Prerequisites: Python 3.11+ and uv (required for isolated third-party Node Packs).
# Run directly without installing
uvx plynx --help
# Install globally with uv (recommended)
uv tool install plynx
# Or install with pip
pip install plynxInitialize a workspace in any directory:
mkdir my-project && cd my-project
plynx initCreate workflows/stage_example.yaml with two stages. The first exposes a suffix and features the draft. The second receives the draft through a wire and exposes an ending.
version: 1
name: stage_example
stages:
compose:
title: Compose message
inputs:
- ref: $join.b
label: Suffix
outputs:
- ref: $join.text
label: Draft message
finish:
title: Finish message
inputs:
- ref: $end.b
label: Ending
outputs:
- ref: $end.text
label: Message
nodes:
join:
op: standard_io/text:Concat
stage: compose
end:
op: standard_io/text:Concat
stage: finish
inputs:
a: $join.textplynx validate workflows/stage_example.yaml
plynx run --non-interactive --set join.a=Hello --set 'join.b=, world' --set 'end.b=!' workflows/stage_example.yaml
plynx runs
plynx uiThe unattended run supplies all three editable fields and produces Hello, world!. To review the fields at each stage, run plynx run workflows/stage_example.yaml in a terminal, or open the workflow in the browser and select Run. The launch form shows Suffix with its Python default and the required join.a input. After Compose message finishes, check Draft message in Results, then enter Ending and select Start stage.
The plynx wheel ships with 21 stdlib-only operations in standard_io:
Core / Text & Data:Echo,Concat,TemplateFormat,MathOp,JsonExtract,JsonMerge,CsvSummaryCore / Files:ReadText,WriteText,ListDirectory,BundleDirectory,MarkdownReportCore / Interactive:AskChoice,AskQuestionsCore / Agents:AgentPrompt,AgentText,AgentJson,AgentBool,StageSupervisorCore / Network:HttpGetJson,HttpPostJson
Run plynx ops --packs, plynx ops --pack <pack>, or plynx ops <op_id> --json in any workspace to discover built-in and custom operations progressively.
This repository includes optional demo packs (examples/custom_packs/: language_tools, media_studio, pedalboard_studio, podcast_studio) and showcase workflows in examples/workflows/:
| Workflow | Focus |
|---|---|
stage_example.yaml |
Labeled input review, a draft result and a final message. Uses only standard_io. |
foo_or_woo.yaml |
Minimal 2-node checkpoint workflow using standard_io. |
interactive_wizard_staged.yaml |
Multi-stage interactive survey with require_approval: true and Markdown report. |
adaptive_doc_review.yaml |
End-to-end agentic workflow with self.warn(), StageSupervisor graph repair, and batch multi-question checkpoint_batch(). |
maintenance_handoff.yaml |
A ticket export records the approved maintenance window in handoff notes. The template fails on missing fields. The supervisor proposes an extraction step between the ticket and the template and asks the operator to approve it. |
data_bundle_pipeline.yaml |
Data pipeline covering CSV, JSON, math, directory bundling, and Markdown output. |
generative_art_studio.yaml |
Procedural image generation (Mandelbrot, geometric patterns, filters, metadata). |
midi_groove_studio.yaml |
Multi-track MIDI sequencing, synthesis, mixing, and mastering. |
bach_prelude_c_major.yaml |
Acoustic piano synthesis and Pedalboard spatial effects. |
podcast_producer_macos.yaml |
macOS speech synthesis (say), sidechain ducking, and show notes. (macOS only) |
Stage validators can ask for a missing repair value, reuse a completed artifact and redirect a featured result to a fallback. In Stepper, open Technical details → Activity to read the validator report, the operator’s decision and any applied change. Validator repairs
plynx init installs and refreshes two bundled skills under .agents/skills/ (plynx-create-workflow for authoring/debugging workflows and Node Packs, and plynx-run-workflow for running, answering checkpoints/gates, and resuming workflows), mirroring them into .claude/skills/ when .claude/ or CLAUDE.md is present. From any workspace, print the full or section-scoped agent reference with:
plynx agent-guide
plynx agent-guide --section workflow
plynx agent-guide --section pack
plynx agent-guide --section run- Guide: Creating a Workflow
- Guide: Authoring a Node Pack
- Guide: Setting Up Agentic Workflows
- Guide: Debugging a Failed Node
- User Agent Reference
- Architecture & Invariants
- Protocol & Schema Specifications
git clone https://github.com/plynx-team/plynx.git
cd plynx
uv sync
cd ui && npm ci && npm run build && cd ..
# Launch the local web UI from the workspace (or: uv run python -m plynx.cli ui)
uv run plynx ui
# Run checks, tests, and wheel build
uv run ruff check && uv run ruff format --check && uv run mypy && uv run pytest
uv run python scripts/build.pyThe build verifies the new wheel before placing the distributions in dist/. Older releases can coexist there.
Apache-2.0