Lizzie BolithoLizzie Bolitho
Dec 03, 2026

Sandboxes for Biology: An Agent That Works in Your Environment, With Your Data, on Your Cloud


Most AI tools start every conversation from scratch. Seqera Co-Scientist doesn’t. Purpose-built for bioinformatics, it understands Nextflow, nf-core and the tools you rely on, and has context of your entire stack: pipelines, runs, code, compute and data. This context now extends into Studios, the interactive analysis feature of Seqera Platform. The result is an agent that doesn't just suggest what to do. It does the work in the right environment, next to your data, on your own cloud. In this post, we recap the session and walk through six live demos showing how Co-Scientist can reproduce failures, verify fixes, interpret results and automate post-run work inside a Studio.

Why an Agent Needs an Environment

An agent that can only answer in chat leaves most of the work to you. It suggests code, but doesn't run it. You still have to find a machine with enough CPU and memory, match the pipeline's container, copy or mount the data, install packages and rerun. When something breaks, the error comes back to the chat as pasted text, and the back-and-forth loss of context begins. That gap between conversation and results is where much of a bioinformatician's time goes. And it matters, because most failures aren't in the code: in our evals and usage data, about 70% of errors come from the environment or the data. To debug them properly, you need to replicate the exact state of the problem.

We want agents to work alongside bioinformaticians, not in place of them. That means agents need a real environment, and they should be able to set it up and manage it themselves, so you don't have to. A good agent should be able to:

  • →Replicate the pipeline, not a simulation of it. Run code in the pipeline's own container.
  • →Use real data. Mount the run outputs and work directories, instead of working on toy examples.
  • →Bring the right tools. Have IGV, DESeq2, SAMtools and the rest ready, next to the data you're actually working on.
  • →Work somewhere a human can log in. Use an environment you can open, review and keep working in, not an ephemeral sandbox nobody can inspect.

With Co-Scientist working inside Studios, the agent handles all of this, and conversation, development, debugging and analysis happen in one place, with no context-switching.

Co-Scientist Builds the Environment for You

If a 10-step pipeline fails at step four, Co-Scientist can recreate that exact step's environment, with the same container, inputs and resources, so you skip the back-and-forth. Normally, setting up an environment means making every choice yourself. Co-Scientist makes those choices for you, based on your question, the run and the data:

  • →Data: mounts the data links the task needs
  • →Software: uses the same packages as the pipeline
  • →CPU and memory: sized from recorded task usage
  • →Container: a verified run image, or a Wave build
  • →Compute: your workspace's Studio-compatible compute environment

Each choice comes with its reason, and you approve it. Nothing is created until the agent actually needs it.

You can also go straight from a run to a Studio. Selecting 'Start with Co-Scientist' creates the Studio with SSH enabled, waits for it to be running, and opens a new chat bound to it with a pre-written prompt ready (but not sent). For a failed run, the work directory and failed attempts are mounted so Co-Scientist can investigate. For a successful run, the outputs are mounted so it can explore them.

Co-Scientist, Studios and Sandboxes

Under the hood, three pieces make this work. Co-Scientist is the AI agent integrated directly into Seqera Platform. It reads pipeline runs, logs and data links, writes and executes code, and acts with your permissions. Studios are interactive environments, such as JupyterLab, R-IDE, VS Code or a full Xpra desktop, that run on your compute. Bringing the two together is the sandbox: the place where a conversation's code runs. Every conversation has one, either a throwaway scratch sandbox or a Studio (running, stopped, from a template or brand new). You ask a question in the Co-Scientist chat drawer and choose a sandbox yourself, or let Co-Scientist pick one with the sandbox picker. Co-Scientist plans, writes and runs code, and uses the Platform API to create or connect to a Studio in your compute environment over SSH. Compute and data stay in your cloud: data links are mounted, not copied. Because the agent works in a Studio, it follows the same admin controls as any Studio user.

6 Ways to Use Co-Scientist in Studios

Debug a failed task in its own environment

When a pipeline task fails, Co-Scientist can investigate it in the task's own environment, find the root cause and verify a fix before you relaunch. Take an nf-core/rnaseq run that failed at the DESEQ2_QC step. Instead of digging through logs or writing up a handover for a colleague, you open the Co-Scientist chat on the run and ask: “DESEQ2_QC failed in this run. Find the root cause and propose a fix. Don't relaunch.”

Co-Scientist works in an R-IDE Studio with the task's container and work directory mounted. It reads .command.err, reruns .command.sh inside the task's own image and checks the samplesheet. It then finds the root cause: sample WT_REP3 has near-zero counts because the samplesheet marks it as forward-stranded when the library is reverse-stranded. It comes back with the root cause, the evidence behind it and a summary. You can then ask Co-Scientist to apply the fix and rerun the step, and open the same Studio alongside the chat to watch its commands run live.

Because Co-Scientist works in the task's own container, there's no local reinstall and no version drift. It uses the same inputs too, with the work directory mounted through its data link. The Studio is rebuilt from the run record (container, inputs and resources), so there's nothing to guess. And you stay in control: the agent proposes and verifies the fix, and you resubmit with -resume.

Interpret results with IGV

Co-Scientist can also help you interpret results, including in desktop tools like IGV. For example, starting from a successful nf-core/sarek tumor/normal run, you pick an Xpra desktop template with IGV and ask Co-Scientist: "Load the tumor/normal BAMs and the Mutect2 VCF in IGV. Review the top 10 PASS calls and save a snapshot of each.”

You don't need to set up the Studio yourself: Co-Scientist spins it up from the IGV template the first time it needs it. The agent then loads the alignments and VCF into IGV, reviews each call and saves a snapshot of each. It reports that 8 of the 10 calls look real, with tumor-only support and balanced strands, and flags 2 for low mapping quality and supporting reads in the normal sample.

You can also ask Co-Scientist to control the IGV session itself: “Jump IGV to the top-ranked somatic variant.” Open the Studio and IGV has moved to that region, with all your files still loaded. Co-Scientist isn't just interpreting the data: it's driving the IGV session for you, which saves the usual juggling of browser windows and quirky desktop software. Co-Scientist can drive any desktop tool that runs in a Studio, such as napari, Fiji, PyMOL and QuPath, and save the output as files.

Generate hypotheses from a dataset

Co-Scientist can take on open-ended exploratory analysis and turn the results into testable hypotheses. For example, with a single-cell dataset loaded in a JupyterLab Studio, you ask for an exploratory analysis covering QC, normalization, clustering and marker genes, written up in a Jupyter notebook with a figure for each step. Then you ask: “Propose 3 ranked, testable hypotheses, each linked to the cell and figure behind it.”

Co-Scientist builds the entire notebook from scratch. Because it's the same Studio the agent works in, you can open the notebook, inspect every step and change anything you want. The point isn't to replace the scientist. It's to give you a validated starting point, where every claim points to the notebook cell that produced it, so you can rerun the cell and check it yourself.

Build a Studio from a checkpoint

Picking a project back up after weeks or months usually means rebuilding the environment: moving files, redownloading packages, reinstalling dependencies. Studio checkpoints remove that work. Every time a Studio stops, Platform saves a checkpoint. From the Checkpoints tab, you can rename it and add it as a new Studio. Up until it starts, you can still change the template, compute environment, resources, name and SSH settings. You can also just ask Co-Scientist: “Build me a Studio from the hypotheses_v1 checkpoint of sc-explore, so I can test H1. Leave the original alone”. The new Studio starts with packages and the notebook restored, and data links mounted fresh. The original Studio stays unchanged.

  • →Hand off work: stopping a session saves a checkpoint, and a colleague or the agent can start a new Studio from it. Changes stay isolated from the original.
  • →Memorialize work: name the checkpoint by team, project, lab or date. Months or a year later, the packages and code that produced a result are still there.

A checkpoint restores installed packages, config and files on the Studio filesystem. Changes to mounted data aren't part of it, as those live in your bucket. You keep the result and the exact environment that produced it.

Publish results automatically after a run


One of the biggest bottlenecks in bioinformatics is what happens after a pipeline finishes, especially when you have hundreds of samples to review. Automations let an agent handle that first pass at scale. In Platform, Agents let you create a Co-Scientist agent with a set of instructions: either a prefilled one, such as fixing or summarizing failed runs, or your own. You can give it a service account, so it acts under its own identity with only the permissions you scope, and choose either a scratch sandbox or an existing Studio. Actions then link the agent to an event trigger, such as a pipeline completing or results landing in S3.


For example, a "Publish on RNA-seq complete" action can run a publish-results agent every time an RNA-seq run succeeds. The agent acts as svc-publish in a publish-env Studio, where an admin has set the publish target and QC thresholds as environment variables. It checks MultiQC, publishes the samples that pass, excludes and flags any that don't, and posts a summary. Every triggered session is logged with the exact instructions and trigger context, and you can fork the conversation to keep working. Admins decide what the agent can reach. The Studio decides where results go.

  • →Its own identity: a service account with only the role it needs, and all work is attributed to the agent.
  • →Config lives in the Studio: change where results go by editing environment variables, not the prompt.
  • →Limits by permission: what the agent can reach is enforced by its role, not by its instructions.


Open the agent's Studio as a colleague

Studios make it easy to hand work to a colleague, such as a domain expert who checks in once a month. Add them to the workspace as a collaborator, and they can connect to any collaborative Studio they have access to. For example, a collaborator can open the Studios list and connect to the Studio from the debugging use case. The collaborator sees everything just as the agent left it: the notebook, figures and rerun outputs, plus a HANDOFF.md file that Co-Scientist wrote to lay out its steps and flag its assumptions. Any workspace user with Studio access can connect and pick up where the agent stopped.

Your Data, Your Cloud, Your Rules

Co-Scientist is built with the guardrails that regulated science and large enterprises need. There's nothing new for admins to learn: Co-Scientist works under the same admin controls you already set for Studios, including role-based access, private sessions, read-only data mounts, session lifespan limits, checkpoints and workspace compute environments with resource labels.

  • →Your IP stays in your environment. When Co-Scientist works in a Studio, the data stays on your compute environment and is never sent to a third-party sandbox.
  • →The same admin controls as a human user. Credentials and environment variables are handled exactly as they are for people using Studios, so your existing VM security protocols apply to the agent too. Secrets, credentials and signed URLs are stripped from inherited environment variables.
  • →Acts as an identity. Co-Scientist uses your permissions in chat, and an agent's service account permissions in automations.
  • →Explicit stops. Selecting a sandbox creates nothing, and prompts never send automatically.
  • →Full audit trail. Co-Scientist calls and chats are kept in an audit log in Seqera Platform, so you can see who accessed what, and when.

Conclusion and Key Takeaways

Co-Scientist already worked across your pipelines, runs, code, compute and data. Now, it extends to interactive and downstream analysis. That means you can go from a finished run to a verified fix, a reviewed result or a testable hypothesis in one place, without rebuilding environments or switching tools. Every step is reproducible and auditable: checkpoints preserve the environment behind each result, and your data never leaves your cloud.


Interested in Seqera Co-Scientist?Co-Scientist works alongside you interactively or autonomously in the background. Whether you're launching your first Nextflow pipeline, debugging production workflows, or integrating custom AI agents, Co-Scientist lets you focus on discovery.