Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

  tuvl
/ˈtuːvəl/  ·  തൂവൽ  ·  feather

Intelligent workflows. Deterministic execution.

Declare the workflow in YAML. tuvl checks it before it runs, bounds every model call,
journals every step and refuses anything the contract doesn't declare.
Python only where you need it. Served as REST, SSE and MCP.

Website  ·  Docs  ·  GitHub

Versions follow SemVer; every change is in the CHANGELOG.

A tuvl workflow is a graph of agents. Each agent has a typed contract — inputs, outputs, the signals it emits — and an engine that implements it:

Engine Determinism
code a Python function deterministic
tool a database, HTTP, blob storage or MCP operation deterministic
decide ordered rules, then an optional decision model deterministic → bounded
llm one structured model call bounded
loop a model using tools within hard budgets bounded
map a workflow run once for every item of a list as the child
parallel different read-only lookups at the same time as the branches
human a form for a person external
pending a contract waiting for an implementation —

Signals route to the next agent or a named end. tuvl lint project checks contracts, data flow, types and policy statically and prints each workflow's determinism profile and worst-case token cost. Every run is durable and journaled: it survives restarts, waits for people, can be paused, stepped and steered, and can be pinned and replayed as a zero-token test fixture.

kind: Workflow
version: tuvl/v2
metadata: { name: refund_flow, description: Handle a refund request }
spec:
  models: [Order, Refund]
  trigger:
    http: { path: /api/refunds, method: POST }
    input: { order_id: uuid, reason: str }
  agents:
    - id: load_order
      description: Load the order
      engine: tool
      inputs: { order_id: uuid }
      outputs: { order: Order }
      tool: { use: db, model: Order, op: read, where: { id: "{{ order_id }}" } }
      routes: { default: triage, not_found: END.missing, error: END.failed }
    - id: triage
      description: Decide how the refund is handled
      engine: decide
      inputs: { order: Order, reason: str }
      outputs: { lane: "enum[auto, review]" }
      decide:
        rules:
          - { when: "order.total > 500", then: review }
          - { when: "true", then: auto }
      routes: { auto: issue_refund, review: approval, error: END.failed }
    # … issue_refund (code), approval (human)
  outputs:
    default: { status: 200, body: { refund_id: "{{ refund.id }}" } }
    missing: { status: 404, body: { error: unknown order } }
    failed:  { status: 500, rollback: true, body: { error: refund failed } }

Install

uv tool install "tuvl[standard]"     # CLI + Insight (dev UI)
# or, in a project
uv add "tuvl[standard]"

tuvl alone is the engine and the production CLI: it parses the YAML, talks to the database and serves the API (tuvl serve app, run workflow, list runs, check system, generate key, ...). [standard] adds the tuvl-insight package: Insight (served only in dev mode) and the development tools (tuvl init, dev, ship, lint project, generate code, run tests, serve mcp). On a bare install those commands answer with how to install them. See Core and Insight. Features with their own packages are extras: tuvl[mcp], tuvl[redis], tuvl[vector], tuvl[otel-grpc]. tuvl ship installs only the ones a project uses.

Quick start

tuvl init demo --sample --preset gemini -y     # a ticket-triage project with a spec, tests and a lock
cd demo
tuvl lint project --strict                         # contracts, data flow, cost
tuvl run tests                                      # offline tests
tuvl dev --auto-login                          # Insight at http://localhost:8885/insight

Spec-driven

tuvl create spec refund-automation      # write the intent (Markdown, with checked Data and Flows)
tuvl lint spec                      # is the spec complete and consistent? (zero tokens)
tuvl verify spec                     # does the implementation match it, step by step?
tuvl list tasks                     # task statuses, derived — never typed in
tuvl generate code                         # schemas, code stubs, tests (no model)

The coding agent builds; tuvl referees. Every step above is deterministic and spends no tokens. Coding agents get the same operations over MCP (tuvl serve mcp) and a skill set in .agents/skills/.

The CI gate:

tuvl lint project --strict && tuvl generate code --check && tuvl verify lock && tuvl run tests && tuvl list tasks --strict

Authoring with your coding agent

Already have Claude Code, Codex or Gemini CLI? tuvl can drive it from an idea to a packaged project, and accept only what its own checks (no model in the loop) pass:

tuvl import idea brief.pdf           # IDEA-SK-0004: a numbered, immutable copy of the brief
                                     # (or --url <web page, Jira or GitHub issue>: a snapshot of it)
tuvl generate spec --idea IDEA-SK-0004    # your agent drafts SPEC-SK-0004-01 on a branch; a person approves it
tuvl approve spec SPEC-SK-0004-01 && tuvl generate tasks SPEC-SK-0004-01
tuvl generate code --spec SPEC-SK-0004-01 --all   # models and skeletons first, then your agent, one PR per task
tuvl review code && tuvl ship --format both      # gate, image and a runnable archive

tuvl dev shows the same path in a terminal UI, and every step is in a local audit ledger. Details: docs/authoring.md.

Surfaces

  • REST + SSE: each workflow's route, POST /api/workflows/{name}/runs, runs, journal events, approvals, operator control; OpenAPI generated from the contracts.
  • MCP export: trigger.mcp.enabled lists a workflow as a tool on /mcp.
  • TypeScript: @tuvl/client with npx tuvl-client generate for typed inputs and outputs.
  • Insight: specs and task board, workflow canvas, runs with breakpoints, step mode and approvals, change-engine checks against pinned fixtures, judge calibration.

Production

tuvl generate lock && tuvl ship --tag registry/app:prod    # gates, Dockerfile (pinned tuvl + only the extras you use), Helm chart
tuvl serve app --role api        # or: worker — scale HTTP and execution separately

Ed25519-signed JWT auth, default-deny triggers, scoped CRUD, approvals with no self-approval, secure fields kept away from models, optional Postgres row-level multi-tenancy.

Documentation

tuvl.dev · in this repository: agentic manual, runtime, engines, decide, loop and tools, judges, storage, models, spec-driven, Insight, API, CLI, security, observability.


Verifying a release

From 2.0.0, tuvl and tuvl-insight are published to PyPI by a GitHub Actions workflow in this repository, using PyPI Trusted Publishing, and each file carries a signed provenance attestation naming this repository and publish.yml.

PyPI may show "The repository or configuration that created this release differs from a previous release". It compares each release's publisher with the previous one, and earlier releases came from elsewhere:

Release Published from
Releases before 2.0 A build server, without provenance
2.0.0b1 to 2.0.0b10 A private repository (tuvl-io/tuvl-private), with provenance for some of them
2.0.0 and later This repository, tuvl-io/tuvl

The publisher changed once, when the source moved here. The notice does not mean a release was altered. To check one yourself, run this in the folder you downloaded to:

pip download tuvl==2.0.0 --no-deps
pypi-attestations verify pypi --repository https://github.com/tuvl-io/tuvl pypi:tuvl-2.0.0-py3-none-any.whl

More in the installation guide.

License & contributing

tuvl is licensed under the Apache License, Version 2.0 — see LICENSE and NOTICE. It is free to use, modify and distribute, with an express patent grant. The name "tuvl" and the logos are not licensed for use as a brand (Apache-2.0 §6).

Releases before 2.0.0b5 keep the terms they were published with. From 2.0.0b5 tuvl is Apache-2.0; see the changelog.

The source of every release is published at tuvl-io/tuvl, tagged with the release version. Bug reports, feature proposals and patches are welcome; see CONTRIBUTING for how a change lands and the code of conduct. Security reports go to security@tuvl.io, never to a public issue; see SECURITY. Anything else: developer@tuvl.io.

Metadata

Release files for tuvl 2.1.0b4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tuvl 2.1.0b4
File Size Uploaded Provenance Actions
tuvl-2.1.0b4.tar.gz 5.3 MB With provenance Details for tuvl-2.1.0b4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tuvl 2.1.0b4
File Interpreter ABI Platform Actions
tuvl-2.1.0b4-py3-none-any.whl Python 3 none any Details for tuvl-2.1.0b4-py3-none-any.whl

Total release size: 5.7 MB

Release files / tuvl-2.1.0b4.tar.gz

Download URL tuvl-2.1.0b4.tar.gz
Size 5.3 MB
Tags Source
SHA-256 checksum
How to use checksums
4a72d817a9e786a2be67099403960dbc4f6f23574b98c7b1924e451a39862d25
BLAKE2b-256 checksum
How to use checksums
fdecc2f1e66a859845abf18a5451862acbcc80924d933652704c7a77e401bc11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / tuvl-2.1.0b4-py3-none-any.whl

Download URL tuvl-2.1.0b4-py3-none-any.whl
Size 424.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e8e1cfb2196fa6ef30c9f3c19b547347a2e579aede96834d5d1c6e674cc7102
BLAKE2b-256 checksum
How to use checksums
aae29e37c735aa55598023b396fb6f9be10121310ecb0df12261f1503ba0132f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for tuvl 2.1.0b4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tuvl-2.1.0b4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page