Open source · Apache-2.0 · Pre-alpha

AI agents inside your Nextflow pipelines. With evals and lineage.

baqueano is an open source toolkit for running AI agents inside Nextflow pipelines, with provenance and evals, in your own cloud account. The lineage tools are released as 0.1.0. Agent modules are planned for v0.2.

Diagram of the baqueano data flowA Nextflow run calls an agent step. The agent step calls a model through baqueano-replay. The same run writes a lineage store. baqueano-mcp reads that store and serves it to an MCP client.Nextflow runAgent stepbaqueano-replayLineage storebaqueano-mcpMCP client
Model answers are recorded once and replayed in tests, so no API key is needed. The lineage server is read-only.

Built on

  • Nextflow
  • Rust
  • MCP
  • Docker
  • nf-core (v0.2)
  • nf-test (v0.2)
  • Rig (v0.2)
  • OpenTofu (v0.4)

Compute targets

  • Local Docker (demo)
  • AWS (v0.4)
  • Google Cloud, Azure, Kubernetes (v0.6)

Try it in 5 minutes

You need Docker (running) and bash. No API keys, no Rust toolchain and no Nextflow install. The demo replays recorded model answers, so no model is called.

1. Run the demo

git clone https://github.com/pingedbrain/baqueano.git && cd baqueano && demo/run.sh

The script runs one pipeline with an agent step twice, with --greeting helloand then --greeting bonjour. It then asks the lineage server what changed. The first run builds both images (about 3 minutes); later runs take about 24 seconds.

2. Ask Claude Code about the runs

claude mcp add --transport stdio baqueano-lineage -- docker run -i --rm --network none -v "$PWD/demo/.run:/demo:ro" baqueano-mcp:demo --store /demo/.lineage

The server is read-only and has no network access. Ask "What changed between my last two runs?" The full transcript and troubleshooting are in the docs.

demo/run.sh output, abridgedsynthetic data, research use only
1. list_runs: run A agitated_raman (lid://b39e82b0…), run B agitated_gilbert (lid://2385fd14…)
2. diff A -> B: params.greeting: "hello" → "bonjour" (nothing else changed)
3. AI step QC_NOTE: model openai/gpt-5-mini, answer "no" (confidence 0.9) to "any lowercase letters?"
4. provenance of run B summary.txt: SUMMARIZE ← TRANSFORM ← GENERATE ← seed.txt
5. check run A summary.txt: Valid (/demo/results-hello/summary.txt)
6. check again after appending a line to it: Mismatch (the file no longer matches its lineage)
tour passed: 6/6 answers as expected

Three layers, one contract each

Use one layer or all three. Each has a stable interface, so others can add modules, storage backends and compute targets without changing the core.

01 · Rust

Lineage and tooling

Read Nextflow's lineage store from local disk, S3, GCS or Azure. Diff and check runs, trace outputs back to their inputs, and expose it to agents as read-only MCP tools. Model answers are recorded once and replayed in tests.

baqueano-lineage · baqueano-mcp · baqueano-replay

v0.1, released

02 · Nextflow

Agent modules

nf-core-compatible processes such as RUN_METHODS and QC_REVIEW. Each one has typed JSON input and output schemas, and ships with evals and a pass threshold.

meta.yml · JSON Schema · A2A

v0.2, planned

03 · OpenTofu

Infrastructure

One compute contract per target, in the user's own cloud account. AWS is the first target. A secure profile maps controls to NIST SP 800-171 and generates evidence for each release.

infra/compute/<target> · infra/profiles/secure

v0.4, planned

Pluggable by design

Your cloud, your models, your storage

AWS is the first compute target. Each target is a plug-in with a small contract, so adding a cloud is one module, not a fork.

Compute

  • Local Docker (demo)v0.1, released
  • AWS Batchv0.4, planned
  • Google Cloud Batchv0.6, planned
  • Azure Batchv0.6, planned
  • Kubernetesv0.6, planned

Models

  • OpenAI-compatible endpointsv0.1, released
  • Amazon Bedrockv0.4, planned
  • Local, OpenAI-compatibleplanned

Lineage storage

  • Local diskv0.1, released
  • Amazon S3v0.1, released
  • Google Cloud Storagev0.1, released
  • Azure Blob Storagev0.1, released

Bring a new cloud: one OpenTofu module that outputs a queue, a work directory and a Nextflow config.

Read the extension points

Principles

Stays in your account

Your data stays in your account. There is no third-party telemetry by default.

Read-only lineage

The lineage MCP server is read-only. It lists, views, diffs and checks runs. It does not modify data or launch runs.

Evals for every module

Planned for v0.2: each agent module ships with labelled cases, a pass threshold and an eval job.

Tests without API keys

Recorded model answers let pull request tests run without API keys and without network access.

Agent modules

Research use only. No module makes clinical claims.

Agent modules, status and eval score
ModuleWhat it doesStatusEval score
RUN_METHODSWrites a methods section from lineage. Every cited tool and version is checked against the run.Planned, v0.2pending
QC_REVIEWReviews MultiQC output against a labelled case set of at least 30 cases.Planned, v0.2pending
SAMPLE_CHECKSample-level check, with evals on expert-labelled cases.Planned, v0.5pending
VARIANT_SUMMARYVariant summary for a research report, with evals on expert-labelled cases.Planned, v0.5pending

NF-AgentBench

A public benchmark of agents on pipeline tasks

Labelled cases for QC review, methods writing and failed-run diagnosis. Every model is scored the same way, with a runner planned on nf-evals. The benchmark is planned for v0.3.

Leaderboard

Planned for v0.3

Proprietary and open-weight models, with cost per case and variance across repeated runs. Scores: pending.

Who it's for

Bioinformaticians

Ask what ran, with which versions, and what changed. Answers are traced to the run record. QC review and methods modules are planned for v0.2.

Platform engineers

One compute contract per cloud target, AWS first (v0.4). The default configuration is planned to send no data or telemetry outside your account, checked by a policy test.

Compliance and security

Hardened profiles with evidence generated for each release, planned for v0.5. Profiles are technical controls and evidence, not a certification.

Lineage explorer

Browse a run in your browser

A browser explorer compiles baqueano-lineage to WebAssembly, so a run can be walked from any output back to its inputs. Planned for v0.6.

Planned for v0.6

Not available yet. The command-line and MCP tools cover the same questions today.