From 30,000 Samples to a Research OS. How Django, Cloud Compute, and Agentic AI are revolutionizing translational science. A glowing network of green and purple nodes rises out of a dark grid of spreadsheet cells. The architecture behind Foundry120.

Building a Research OS with Django and Agentic AI, a Visual Guide

TL;DR: In 2020, a research study needed to track about 30,000 biological samples, and the standard answer was Excel. A Glasgow gastroenterologist with no real programming background built a Django tracker instead. Six years later it's Foundry120, a research platform holding about 10 terabytes of clinical and genomics data, with an AI agent called Helix working on top of it.

How do researchers keep track of 30,000 tubes of blood, stool and saliva spread across three cities? In 2020, the usual answer was Microsoft Excel. The MUSIC study, an inflammatory bowel disease (IBD) study, projected about that many samples. IBD is the family of conditions that includes ulcerative colitis and Crohn's disease. Enterprise lab systems were expensive and slow to set up, so one of the study's own doctors, Shaun Chuah, opened the Django tutorial and wrote a tracker himself. His programming experience was hand-written HTML in Notepad and the odd R or Python script to make a graph.

Everything else follows from that decision. The sample tracker grew into a data platform, the data moved to Azure, and eventually the platform gained an agentic AI assistant that writes and runs its own analysis code. Foundry120 rests on three ideas: organize your samples, studies and participants in one database; centralize every data output in one place; then let AI operate on all of it.

Why does this matter if you don't work in medicine? Because the problems are familiar ones with the stakes turned up. You have to pick a framework when you can't afford to lose data, store terabytes of wildly different files, and let an AI agent near sensitive data without letting it wander wherever it likes. Then there's the question of what a person's job becomes once the agent writes the code.

This guide takes those in order, from the spreadsheet in 2020 to the agent in 2026.

Listen to the full episode

How to track 30,000 research samples when the default is Excel

The 2020 Dilemma: Tracking Biology in a Spreadsheet. The problem scope: 200 inflammatory bowel disease (IBD) patients, 3 cities, dozens of hospitals, follow-ups every 3 months. The output: 30,000 biological samples projected for the MUSIC study. The industry standard: Microsoft Excel.

A sample tracker is a small database with one job: every physical tube gets a unique ID, and the database always knows where that tube is. The MUSIC study needed one in 2020, in the middle of COVID, which had already hit hospital and research operations hard. The plan was about 200 people with IBD, recruited across three cities and multiple hospitals, each followed up every three months. At every visit the team would take extra blood, stool and saliva samples to run experiments on and work out what the immune system was doing.

A back-of-the-envelope total from that plan came to roughly 30,000 samples over a couple of years.

So how do research teams normally keep track of that many? The common answer is Microsoft Excel, which raises the obvious question of how big the workbook gets and how many tabs it ends up with. The alternative is a lab information system, but most research teams don't have one. Enterprise systems are expensive to buy, take something like six months to set up, and are built for hospital operations handling millions of samples, not a one-off study spread across lots of different places. A few off-the-shelf options were looked at and none fit, so the answer was a web app in Django.

The first version was plain and practical. Print a QR code, stick it on the sample label, and scan it to register the sample in the database. When a sample moves between sites, scan it again and the record updates. Here's a minimal Django sketch of that idea (an illustration of the pattern, not the lab's own code):

from django.db import models

class Sample(models.Model):
    barcode = models.CharField(max_length=64, unique=True)
    kind = models.CharField(max_length=20)  # blood, stool, saliva
    site = models.CharField(max_length=100)

def register(barcode, kind, site):
    return Sample.objects.create(barcode=barcode, kind=kind, site=site)

def move(barcode, site):
    return Sample.objects.filter(barcode=barcode).update(site=site)

The unique=True option is something a plain spreadsheet doesn't enforce by default. Django's docs say it is enforced at the database level and by model validation, so registering the same barcode twice raises an error instead of quietly creating a duplicate row.

The first version was a plain sample tracker, built inside a study with roughly a two-year window. The bigger platform grew out of it later, once the samples started turning into data.

“A simple back of the envelope calculation came to about 30,000 samples that we were going to generate over a couple of years.”

Shaun Chuah

Why a self-taught doctor chose Django for clinical research

The Framework of Necessity. Built by a doctor whose prior coding experience was writing HTML in Notepad. The choice: Python + Django, the web framework for perfectionists with deadlines. Three pillars hold up the Foundry120 Core: batteries included auth, built-in migrations, and an out-of-the-box admin.

Django is a Python web framework that ships the unglamorous parts of a database-backed app in the box. Three of them stand out: an authentication system, an ORM with built-in migrations, and an admin interface. Two of them, authentication and migrations, were enough to decide it. Django's docs describe the auth system as handling user accounts, groups, permissions and cookie-based sessions. Migrations are, in the docs' words, Django's way of propagating changes you make to your models into your database schema, like version control for the schema.

For a non-programmer handling patient data, those first two were enough to persuade. Authentication is the last thing you want to hand-roll. And in clinical research you can't afford to lose data, so a trustworthy way to handle database changes matters. The admin dashboard was a bonus, not the reason.

Migrations in practice are two commands. Add a field to a model, then:

python manage.py makemigrations   # writes a numbered migration file from the model changes
python manage.py migrate          # applies it to the database

Adding visit = models.PositiveSmallIntegerField(default=0) to a model and running those prints Add field visit to sample and applies the change to the table.

The framework's own tagline fit the situation too. The study had about two years to deliver, and there was no time to spend forever on infrastructure. At the time of recording, Django had also just announced a move to yearly releases with calendar-style version numbers, every one of them long-term support, which should make the versioning easier for newcomers to decipher.

The learning path was mostly documentation and books. Django's tutorial and docs came first. Obey the Testing Goat covers test-driven development, Designing Data-Intensive Applications covers the data side, and The Data Warehouse Toolkit came later once the project became a data problem. Books give you the fundamentals as a whole, so you don't end up with gaps. Michael Kennedy, who came to programming from math himself, points out that self-taught developers often have gaps around data integrity and things like foreign key relationships.

One of the steeper climbs was going from localhost to production. Production means infrastructure that is reliable, secure and accessible, with backups, and it meant learning Linux from a terminal. What made it manageable was CI/CD: GitHub Actions deploys continuously, so a fix reaches production in minutes instead of by hand. It's worth it for beginners, not only big teams, because pushing to GitHub and having the new version go live removes a lot of intimidating complexity.

“You want your authentication framework to be battle tested. Database and migration is incredibly important. You can't lose any data.”

Shaun Chuah

When research samples become terabytes of data

The Escalation from Physical to Digital Scale. One blood sample fans out into data: 5 to 10 GB of gzipped FASTQ data (cell-free DNA sequencing), and newer instruments generate up to 1 terabyte per sample. 10 terabytes of clinical and genomics data scattered across laptops, shared drives, and Excel files.

Tracking the tubes was the operational problem, and a big data problem came right after it. Every sample goes into an experimental pipeline, and what comes out the other end is data. Stool samples become microbiome data. Blood samples become genomics data. Each data type comes back in its own format, and some of it is very large.

One example makes the scale concrete: sequencing cell-free DNA, the fragments of DNA floating around in the blood. Each participant's sequencing file was about 5 to 10 gigabytes of gzipped FASTQ, and each one then had to go through a bioinformatics pipeline. That ran on a subset of participants, not all 30,000 samples. Other assays, like genotyping, covered the whole study population. Every assay brings its own data type and its own small details, and those details cause a surprising amount of operational trouble.

Today the total is about 10 terabytes. That is with only a fraction of the samples processed so far, because some pipelines take a person 12 hours to get through a couple of samples. A lot of work is still ahead.

Before the platform, that data was scattered. A microbiome project lived on someone's laptop. Other data sat on a shared drive on a university file server. Someone running a specific experiment might export the readings to an Excel file, and that file became the dataset. That scattering is, in one researcher's view, one of the big problems in biomedical research today.

It's going to get harder. Some newer technologies produce about a terabyte of data for a single sample. Reproducibility makes it worse: a paper can be stamped with the Excel file, the Parquet file and the Docker image that produced it, but at 100 terabytes, simply keeping the data around is the hard part.

Which data is worth keeping, then? You may not need the raw files at all if you keep the processed ones, since nobody wants to run another 100 terabyte pipeline anyway. When the lab costs out storage for a grant, it usually plans for 10 years, and beyond that it's an open question with no easy answers. Storage has generally got much cheaper, though as of mid-2026 not over the last year and a half, and the AI boom might not let that falling price curve continue as before.

“Some of the newer technologies are generating like a terabyte of data for a single sample.”

Shaun Chuah

Everything is a file: blob storage and metadata as a research data model

The Universal Data Model. Treat everything as a file; even tabular data stays as CSV or Parquet. Azure Blob Storage replaces restrictive university quotas with pay-as-you-go: you have a bill instead of a limit. A metadata and relationship map sits over the files so AI agents can run across datasets.

How do you put endoscopy videos, MRI scans, digital pathology slides, genomics output and spreadsheets of clinical readings into one common model? The answer the platform landed on is almost disappointingly simple: all data exists as files.

That includes tabular data. Loading tables into the database was tried in the past, but going forward tables stay as CSV files. Each type of data has its own file structure, and files are the universal denominator. What makes them useful is a layer of metadata and relationship data kept on top. Coupling the two gave the lab a model that generalizes across all the datasets it uses. There's a second payoff: if everything is a file, an AI agent can run across all the files and pull out the data it needs.

The files live in Azure Blob Storage, Microsoft's object storage service, which its docs describe as optimized for storing massive amounts of unstructured data. Data goes into containers, which organize blobs much like directories, and a container can hold an unlimited number of blobs. That replaces the university setup, where a shared drive had a quota of maybe a terabyte and getting it raised meant emailing someone in IT. With blob storage there is no hard limit, just a bill at the end of the month.

Files are also friendlier to query than they sound. DuckDB is an embedded SQL database built for analytical queries, and it can read Parquet and CSV files in place. Parquet is an open source, column-oriented file format designed for efficient data storage and retrieval, and the platform uses it too. As a generic illustration (made-up file and column names, not the lab's), DuckDB can join a Parquet file to a CSV file like this:

SELECT p.participant, s.kind, p.crp
FROM read_parquet('crp.parquet') AS p
JOIN read_csv('samples.csv') AS s USING (participant);

SQLite, a whole database in a single file, is an interesting fit for the same idea. The platform's users are scientists who live in Excel and CSV, though, so the formats stay the ones everyone already knows, with more specific ones possible later.

Are limits all bad? In his university days, Michael Kennedy's math department shared a Silicon Graphics machine with no quotas. A grad student chasing a bug added logging, accidentally got the code into an infinite loop and left it running overnight. By morning the log had filled the hard drive to the very last byte, the operating system couldn't get the temp files it needed, and it took a day or two to bring the machine back. Quotas exist for a reason.

“So we put files, and the thing that makes the files useful is putting a layer of metadata and relationship data on top of the file.”

Shaun Chuah

Chatbots vs. agentic AI: what's the difference for research?

Chatbots vs. Agentic AI. The chatbot, the search engine paradigm: predicts the next word and answers questions statically. Agentic AI, the digital colleague: receives a task, evaluates its toolset, writes and executes Python code, reads errors, self-corrects, and loops until the goal is achieved.

"AI" covers at least two different things, and people talk past each other because they use the same word for both. One person asks a chatbot a math problem and it gets the answer wrong. Another builds serious software with something that's also called AI, and it gets the math right because it writes Python to work the answer out.

A chatbot is what most people have met. You open a page, ask a question and get an answer back, a lot like a Google search: directions to a place, a recipe. An agentic system runs on a different paradigm. You hand it a task. It looks at the tools it has and at what you're trying to do, then goes away and works at it until it has an answer. Claude Code and Codex are the familiar examples, and Helix, the assistant inside Foundry120, is built the same way. One rough estimate is that 95% of people's experience of AI is still the search-engine kind, which leaves a wide gap in understanding what the agentic kind can do. It's also the agentic work that makes some people think AI may not be a bubble at all.

So how does an agent like Helix know anything about a lab's research data? Was the model trained on it? No. The system grounds the model with tools instead. The model does the reasoning, and the tools query the database and run code, which grounds its answers in the data. The verification section later in this guide covers why the answers still need checking.

Why not train a model on the research files? Supervised fine-tuning, or reinforcement learning on top of a base model, costs a lot of money. It also needs training data, which isn't easy to produce, and the result doesn't generalize. Skipping it has a payoff: the base model becomes a part you can swap. When one of the big labs ships a better model, you update to it and pick up the improvements without retraining anything.

Is that RAG? It depends on what you mean by RAG. Retrieval-augmented generation retrieves relevant documents at query time and passes them to the model as context, and it does not retrain the model. The grounding here is tool use, in the style of Claude Code, and the model is not retrained on the lab's files. The next section walks through what that loop looks like on a real question.

“In agentic AI, you give the AI a task, it looks at its tool set, it looks at what you're trying to do, and then it goes away and works at it until it gives you an answer.”

Shaun Chuah

How Helix, an AI research agent, answers questions about samples

Meet Helix: The Agent in Action. The prompt: what plasma samples do we have for Crohn's disease, and plot CRP against cell-free DNA. A loop runs task, select tool, evaluate, execute code, output: query, join, execute matplotlib code, self-correct. The result: days of data joining completed in minutes.

How does an agent answer a question about a research collection? Start with a concrete one: do we have any samples from a participant who's been treated with a particular drug? Done by hand, that means taking the clinical dataset, joining it with the sample database, filtering the result and finding the samples, which usually took a couple of days. It's a good fit for an agent. Pull the data into a sandbox, write the code for the join, and hand back the answer, with none of the steps in between.

The shape of an agent loop is simple. It gets a task, picks a tool, runs it, reads the output and decides what to do next, then repeats until it has an answer. In the Helix screencast that shows up as a rhythm: a tool call to get samples, a pause, some Python code, then more data access and more code.

The first question in the demo asks which plasma samples exist for the MUSIC study, broken down by disease group. To answer it, the agent has to join the clinical data frame with the sample database, work out which samples are unused and what type they are, and inspect the clinical data to see which disease groups exist. Then it does the join and the grouping. In the demo it comes back with about 4,000 samples from Crohn's disease patients and about 2,000 from patients with ulcerative colitis.

The second question asks for a plot of CRP, a blood test, against cell-free DNA, an experimental output. The agent finds the clinical data frame, joins it with the science data, writes matplotlib code (matplotlib is a Python library for creating visualizations) and returns a graph along with what it found. Partway through, it runs into an error. It reads the tool's output, corrects its approach and carries on.

Notice what it doesn't do: read the raw data. A model's context window is limited, so the whole collection can't be dumped into it. The agent orchestrates tools and code instead.

Those tools are deterministic, and designing them is hard. How many do you expose? What should each one do? What makes a logical set, and how do you make sure the AI picks the right one? Tool design is a big topic in its own right. Because the tools run on the back end, they're also where access rules can be enforced, which the next section picks up.

“The tools are deterministic. And actually designing the tools is one of the most challenging things to do”

Shaun Chuah

Keeping an AI agent away from data it shouldn't see

The Architecture of Trust. Helix sends requests through a Django security gate to a raw data vault. The risk: these AIs are sneaky; an agent will use an authenticated GitHub CLI or an open SSH port to get a better answer. The solution: role-based access control enforced in Django. Helix inherits the asker's permissions.

An agent that can reach more data gives better answers, so it will use whatever it can reach. That's the problem to design around, and it isn't about malice. They're trying to solve the task you gave them, and they'll use whatever they can reach to get a better answer.

Here's a firsthand example. Michael was working with Claude on a question about his code, and it mentioned that he had two GitHub issues about the problem. He had never given it access to GitHub. It had noticed the GitHub CLI was installed and already authenticated from an earlier login, and it simply used it. It also offered to check something on his production server, having worked out from the code that it could SSH in. The same eagerness could just as easily end with "we fixed the problem by resetting the database." Oh no, you didn't.

Now put patient data behind an agent like that. The answer in Foundry120 is to put Django between the agent and the data. Django enforces the permissions on the back end. When the agent wants to stage data or run code, the request goes through Django first. The agent never calls directly into the files or into a compute environment, and Django screens the code before it activates a virtual machine.

The tools run on the back end rather than inside the model, so the same role-based access controls that apply to a person apply to the agent. When a team member asks a question, the agent can only see the files that person already has access to. Django's auth system has this check built in. Here's a generic sketch of the idea, an illustration rather than Foundry120's code:

from django.core.exceptions import PermissionDenied

def read_for_agent(asking_user, path):
    # The agent never opens files itself. It asks, and the check
    # runs as the person who asked.
    if not asking_user.has_perm('files.view_datafile'):
        raise PermissionDenied
    return path  # hand the file over only after the check passes

has_perm takes a permission in the form <app label>.<permission codename> and returns True only if that user has it. The point of the pattern is whose identity the check uses: the asker's, not the agent's. This is a model-level permission, so per-file or per-study access needs object-level rules on top.

Treat it as a guardrail rather than proof of safety. It narrows what the agent can reach, and it only holds if every route to the data and the compute runs through the guard. The design was driven by the governance rules around the data, and it's why the lab regards its data-access security as solid. Here the limits are enforced in Django's code on the back end, not inside the model.

“So we've actually put Django in as a security guard between your AI and the raw data and the compute environments”

Shaun Chuah

Sandboxing AI-generated analysis code in a VM

The Execution Sandbox. 1. Stage: Django intercepts the AI's requested code and data target. 2. Isolate: data is dropped inside a sandbox VM. 3. Execute: the AI's analysis code runs inside the perimeter. 4. Extract and destroy: the result is saved back to Blob Storage and the VM vanishes.

What happens when an agent wants to run an analysis on a file? The flow has a few clear steps, and the point is that the AI-written code runs inside a VM rather than on the storage itself.

  1. The files live in Azure Blob Storage.
  2. When the agent wants to process a file, the request goes through Django, which screens the staged code and activates a virtual machine (a software-defined computer that can be started for a job).
  3. The file is transferred from blob storage into that VM.
  4. The agent sends its analysis code into the VM, whether that's Python or another language, and the computation runs there.
  5. The output goes back to the agent, and the results are stored back in blob storage.

Why build it this way? The VM puts a sandbox guardrail around the agent for security purposes: the code runs against the file inside a separate environment. But it also lets the agent do real work. It can process data, generate new files and store them, and all of it stays inside the institution's own Azure environment. The same arrangement enforces the role-based access controls described in the last section. That design is specific to this setup, because of the governance requirements around the datasets.

The limits matter too. A sandbox is one layer, and nothing here amounts to a guarantee of zero risk. It limits where AI-written code runs. Django's screening of the staged code and its access checks decide what goes into the VM in the first place, and the sandbox does nothing about whether the analysis is right.

The same machinery scales up. A heavy genomics job can fan out across many machines, which is where the next section picks up.

“So by doing that, we put the sandbox guardrail around the AI agent for security purposes.”

Shaun Chuah

Cloud bursting vs. a university cluster for genomics and AI

Cloud Bursting for Embarrassingly Parallel Biology. The old way: local genomics pipelines and $2M GPU racks sitting idle. The Foundry way: Django orchestrates compute jobs on Azure. The math: 200 participants at 5GB each, spin up 200 virtual CPUs, process, tear them down. Minimal cost, maximum on-demand impact.

Cloud bursting means renting many machines for a short, heavy job and releasing them when it finishes. Why does that suit university research better than a cluster of its own? Because so much analysis is a one-off. You might process a huge dataset once, and then a year or two passes before there's that much new data to process. Hardware in a basement pays off for a steady workload, and research computing isn't steady. Rerunning everything with a different algorithm is still a burst, not a constant load.

AI strengthens the case. A single rack from NVIDIA costs roughly a couple of million dollars, and it needs an enormous amount of power. In this view, universities won't build their own AI data centers, so cloud adoption looks inevitable. The exception is studies with specific governance requirements, and even then a university might contract a local AI company to run it and share it between businesses and universities.

There's a counter-scenario. If a $100 a month AI subscription ever became $2,000 a month, a $10,000 workstation that can run serious local models starts to look like a bargain. Small models keep getting more capable, and not every workload needs a frontier model, so local AI has a role either way.

In Foundry120, bursting works like this. The platform has access to about 350 CPUs on Azure. A request for a heavy analysis, say on a big transcriptomics dataset, goes through Django, which orchestrates a compute job. The job spins up as many CPUs as it needs, processes the data and reports back when it's done. That can take half an hour or a couple of hours.

Many biology problems are naturally parallel. With 200 participants at 5 gigabytes each, you might as well spin up 200 machines, process everything at once and tear it all down. The aim is minimal cost for maximum impact.

Why not push some of that work into the browser? Pyodide is a Python distribution for the browser based on WebAssembly, and JupyterLite is a JupyterLab distribution that runs entirely in the browser. Neither fits here. The files run to gigabytes, genomics pipelines need a lot of RAM and CPU, and pulling five-gigabyte files to every laptop would add bandwidth costs.

One more reason to keep the computing on the server: sample collection runs in hospitals across Scotland, where the front-line IT isn't always the best. Some of those computers go back to 2010, and a server-side app keeps things fast regardless.

“I can't see any university building their own AI data center in the future.”

Shaun Chuah

Django REST Framework with TypeScript and React for an AI app

The Full Stack Synergy for Async AI. A Python and Django REST Framework back end, the data science ecosystem, connects to a TypeScript and React front end for an interactive async UI. The platform started as pure Django with HTML templates; AI generation is inherently asynchronous.

When does a server-rendered Django app stop being enough? The first version of the platform was pure Django. Django templates handled registration and the create, read, update and delete workflows that a sample tracker is mostly made of, and for that job a page per request is a good fit.

AI changes the shape of the screen. A registration form is one request and one response. An AI conversation or agent loop is many calls in a row, each one slow (sometimes it feels like forever), and the page has to stay responsive and keep updating while it waits. TypeScript and JavaScript tend to suit that kind of interactive, async-heavy client better, so the platform now runs both: TypeScript and React in the browser, Django on the server.

What connects them is Django REST Framework, a toolkit for building web APIs on top of Django. Its serializers turn model instances into JSON and validate the JSON that comes back, and its viewsets and routers generate the list, create, retrieve, update and delete endpoints from a queryset. As an illustration (generic, not the lab's code), a sample tracker's API is this small:

from rest_framework import permissions, routers, serializers, viewsets

class SampleSerializer(serializers.ModelSerializer):
    class Meta:
        model = Sample
        fields = ['id', 'barcode', 'site']

class SampleViewSet(viewsets.ModelViewSet):
    queryset = Sample.objects.all()
    serializer_class = SampleSerializer
    permission_classes = [permissions.IsAuthenticated]

router = routers.DefaultRouter()
router.register('samples', SampleViewSet)
urlpatterns = router.urls

Here Sample is an ordinary Django model with barcode and site fields. With that wired into the URLs, /samples/ refuses anonymous requests and returns JSON to signed-in ones, and a React component fetches and renders it however it likes. The permission class sits on the server, which matters because Django is also where this platform keeps its data permissions and its orchestration of compute jobs. IsAuthenticated only checks that someone is signed in, so who may see or change which records needs permission classes or queryset filtering on top.

React is a library for building user interfaces from components, and TypeScript is JavaScript with static types, so the front end gets its own tooling and its own ecosystem. The trade-off for any team is two languages and an API contract between them. The payoff is that the Python data science ecosystem stays on the server while the whole TypeScript and JavaScript ecosystem handles the interactivity in the browser.

“It gives us access to the entire Python data science ecosystem, while also giving us all the TypeScript and JavaScript ecosystem for handling all these asynchronous work”

Shaun Chuah

GDPR, data residency and why Foundry120 has no MCP server

The Governance Imperative. A map of Europe circles Azure data centers in UK South and Sweden. All AI inference must happen within GDPR-compliant Azure data centers; patient data cannot be sent to Anthropic endpoints; no public MCP servers for clinical data. Foundry120 runs on the University of Glasgow's Azure tenancy.

Where does the data live, and where does the AI run? For clinical research those are design questions, and many choices in the platform trace back to them.

Foundry120 runs on the University of Glasgow's Azure tenancy. Each study's data has to be located in specific places, so most workloads run in the UK South data center and work that needs EU compliance runs in Sweden. All AI inference happens inside Microsoft Azure too, which the team calls GDPR compliant and says is important for research in the UK. The platform controls of Azure let the team say where everything happens, and being able to say where everything happens is what allows the team to let the AI operate on the data.

That also helps explain why MCP is a hard fit. An MCP server would let people point their own AI tools at the platform and ask what Foundry says about something. MCP, the Model Context Protocol, describes itself as an open standard for connecting AI applications to external systems. It's interesting, but it runs into the same wall: the team isn't allowed to put data into a tool like Claude Code and send it across to Anthropic. Inside the platform, the tools the agent calls run on the back end, which is also where role-based access control is enforced.

Governance shapes who can join, too. The platform is early stage. Over the last six to twelve months the foundation was made general enough to work beyond one group and beyond one disease, which meant team management and permission assignment so a new group doesn't need the original team to set people up. Onboarding is still hands-on, because it depends on what data a team handles, how much, and of what kinds. Clinical research has strict rules about how data is handled, where it can sit and where it can be processed, all subject to each study's research ethics approval. The platform's team wants to review all of that before a team joins.

So it isn't a simple sign-up-and-pay-monthly product. The Foundry120 site offers a platform walkthrough instead, and the team says it is willing to do the review work to bring other groups on.

“we are not allowed to just put data into a Claude Code and send it across to Anthropic”

Shaun Chuah

From writing analysis code to verifying it: can you trust an AI research agent?

The Paradigm Shift in Scientific Labor. Manual execution (writing Pandas/R scripts, formatting CSVs) gives way to strategic supervision and verification (directing AI, validating biological magnitude, smelling the data). AI models still make mistakes, so the human's value shifts to verifying the output.

When an agent writes the analysis code, what is left for the researcher to do? The job moves from writing the script to checking that the answer is right. Getting a graph out of an Excel file used to mean learning enough Python or R to do it. Now that work can be handed to an agent that writes the code, and the human supplies the strategic view: knowing what the result should look like.

Can you trust what comes back? Only with checking. Coding agents aren't 100% reliable today, and even the best models, Opus and Fable among them, still make mistakes. Reliability will hopefully go up over the coming years, but for now it hasn't crossed the threshold where you can stop looking. That makes understanding the problem more important than it was five years ago, because supervising an AI means knowing what you were trying to do in the first place.

There's a fair counterweight: the alternative is a person doing the work, and people aren't 100% reliable either. Part of the tension is that software is usually deterministic, so if it works once it keeps working, and people expect a computer to be perfect. An AI isn't like that, but then people aren't either. A recently recalled dispute over using an AI to pre-screen contributions to the Linux kernel is one example, though the details were hazy: one side argued it is at least as good as the people doing that job.

One useful model is a colleague who writes code much faster, and often better, than most people, but still needs a human to supply the strategic view and direct it. Three habits follow from that:

  • Smell-test the numbers. If you expect a value in a certain magnitude range, check that you got one, because sometimes the AI goes off and does funny things.
  • Ask for proof. Asking the AI to verify its work and write code to back it up beats just asking for the answer, though you still keep a little skepticism, as you would with a colleague or a grad student. No professor sends a student's paper off to a journal unread.
  • Match the checking to the stakes. For disposable work, let the AI do more of it. For critical workflows, make sure every single step is correct.

“So instead of you as a researcher writing the analysis code, You get the AI to do the analysis for you. And then what you have to do is verify that it is correct.”

Shaun Chuah

Recap: organize, centralize, then let AI operate

Synthesis: The Research OS Blueprint. Three overlapping circles meet at accelerated discovery. 1. Organize: Django, with strict RBAC and migrations. 2. Centralize: Azure Blob Storage, where every image, video, and sequence is a file. 3. Operate: Helix agentic AI writes code in isolated sandboxes over governed data.

A research operating system, as Foundry120 describes it, comes down to three ideas:

The agent works on data that was organized and centralized first, and the permissions live in Django rather than in the model, which limits what the agent can reach. Even then, the answers still need a person to check them, as covered in from writing analysis code to verifying it.

Most scientists have never used a coding agent: what comes next

The Gap is Yours to Close. Most of the world has never touched a coding agent; work that took months now takes minutes. Python developers can build the bridge between frontier AI and front-line research. Take these principles, build your own infrastructure, or partner with Foundry120. foundry120.com

Where does agentic AI go in research? Drug discovery is a very long process, and agentic AI has a real role in shortening some of its bottlenecks. It's expected to change how science is done and how clinical work operates, though the real world will take a while to catch up to where the capabilities are today.

The gap is mostly about exposure. One guess is that most developers on a podcast like this have used a coding agent, while almost everybody else in the population has never touched one. For a lot of the scientists who see a demo of Helix, it is the first agentic system they've seen, and the reaction is excitement, with scientists saying work that used to take them months, or a long chain of emails, now takes minutes. There's still a lot of teaching ahead - how to use these systems, what they can do, where their limits are, and how to apply them to the work.

Does Foundry120 itself generalize? Nobody knows yet - it might turn out to be hyper-personal software for one team. Either way, its principles have been shared widely, other institutions are free to take the ideas and build their own systems, and anyone who wants to explore a partnership can start at the Foundry120 site. The personal site linked below has an email address, a GitHub profile and the writing about a journey into coding.

To build the pieces yourself, Talk Python Training's Django: Getting Started covers the authentication and migrations that made Django the right framework here, plus models and the admin. Agentic AI Programming for Python is about working effectively with coding agents like Claude Code and Codex, and LLM Building Blocks for Python covers programming against LLMs from Python, including tool use, the foundation of an agent like Helix.

“So please feel free to just take the idea and run with it.”

Shaun Chuah

Talk Python's Mastodon Michael Kennedy's Mastodon