Physalia · Agentic AI for Life Sciences · 3–4 Dec 2026
Physalia Courses · Online · Claude Code

Agentic AI for
Life Sciences

From one agent to verified research systems

Jay Moore · Imperial College London / UK Dementia Research Institute

3–4 December 2026 · 3:00–6:00 PM CET
Opening Poll · Anonymous · 1–5 Scale

Two questions before we start

1. Upside

How much could AI help you do your work over the next 12 months?

2. Risk

How much risk could AI create for you in your work over the next 12 months?

We keep the two answers separate and repeat the exact same poll at the end of Day 2. There is no preferred answer.

Course Structure · 3 × 50 min + 10 min breaks

Two days, one arc

Day 1 · How one agent works (and fails)

  • 3:00 Stack, privacy, failure modes, Lancet 2026 audit
  • 4:00 Prompting, context, pricing & skills (Corpas 2026)
  • 5:00 Penguins demo + Exercise 1 Sandbox: Act, Fail, Check

Day 2 · From one agent to a research system

  • 3:00 RAG, MCP, governance + Single Cell Portal website demo
  • 4:00 Stop hooks, adversarial agents, swarms + Exercise 2 PubMed audit
  • 5:00 Rule files, Second Brain demo & lab AI policy
Day 1 · Part 1 · 3:00–3:50 CET

Introduction to
Agentic AI

What separates a coding agent from a chatbot, how the stack and privacy boundaries work, and why verification is the central problem.

State of the Field · December 2026

The bottleneck shifted from models to verification

1M-token windows

Frontier models (Sonnet 5.5, Opus 5.5, GPT-6.2, Gemini 4) hold whole codebases and dozens of papers at once.

Harnesses matured

Claude Code, OpenCode, Codex, and Copilot ship native subagents, SKILL.md, MCP, and lifecycle hooks.

New bottleneck

Models write fluent code and prose effortlessly. The hard part is now checking what they actually did.

Mental Model

The core loop: propose tool → execute → read result

Chatbot vs Agent

The model never touches your files directly — the harness executes each tool call and feeds the output back into the loop.

Architecture

You choose the harness, provider, and model independently

Agent Provider Model stack
Data Privacy & Governance

Provider choice determines where your data goes

Privacy comparison across providers

Rule of thumb: Never send patient data, unpublished clinical cohorts, or credentials to free or training-enabled endpoints.

Course Paper · Topaz et al., Lancet 2026

Fabricated citations across 2.5M biomedical papers

2.5MPMC Open Access papers scanned (2023–Feb 2026)
4,046Fabricated citations found in 2,810 articles
>12×Increase since 2023 (sharpest from mid-2024)
98.4%Affected articles with no publisher action

Discussion (5 min)

  • How would you check one reference? How would you check two hundred?
  • What does a missing PubMed record prove — and what does it not prove?
Failure Modes · Harness-Bench (2026)

Plausible output is the hardest failure mode

"An agent's silence about a decision is not the absence of one." — Workflow principle (biomarker & analysis audits)

1. Completed work

Did the file get written, and does it pass an independent check?

2. Process quality

Did it retrieve primary sources, or produce a fluent summary of an unread paper?

3. Resource use

How many tokens, turns, and retries did it burn getting there?

Failure Taxonomy · Life Sciences

Four ways agents fail on biological work

1. Silent data corruption

Coercing null/NA to 0, or dropping genuine zeros with truthiness checks — exits cleanly with wrong means.

2. Fabricated citations

Plausible authors, journals, and DOIs that do not exist (Topaz et al., Lancet 2026).

3. Statistical traps

Treating technical replicates as biological, omitting multiple-testing correction, or cherry-picking subgroups.

4. Reward hacking

Editing the test or checker script to make it pass instead of fixing the underlying analysis bug.

Day 1 · Part 2 · 4:00–4:50 CET

Prompting, Context,
Cost & Skills

How to steer before code is written, why long sessions rot, what tokens cost in late 2026, and the measured impact of writing a SKILL.md.

Steering the Agent

Use Plan mode before Build mode

Vague prompt (invites silent assumptions)

"Analyse my dataset and make some plots."

  • Agent guesses how to handle NA / zeros
  • Picks arbitrary statistical tests
  • Writes 200 lines before you see a plan

Structured prompt + Plan mode

Goal + Input + Constraints + Verification

  • Inspects files first, asks clarifying questions
  • Surfaces edge cases before touching disk
  • You approve the plan, then switch to Build
Context Engineering

Past ~70% full, early instructions get buried (context rot)

Context window breakdown

Inspect with /context · compress mid-task with /compact (~97% reduction) · reset between tasks with /clear.

Mental Model · Persistence

The model remembers nothing between sessions

Context window

Everything sent on the current turn: messages, tool outputs, file reads. Gone when you run /clear.

Rule files

CLAUDE.md / AGENTS.md in your repo root. Loaded automatically at the start of every session.

Memory on disk

Plain Markdown notes (memory.md, todo.md, Obsidian wiki) that the harness saves and reloads.

Token Economics · November 2026

Every turn re-sends the whole window — context is a billing issue

Cost per message vs context size

50 messages × 150k input tokens: $15.00 on Claude Sonnet 5.5 · $60.00 on Fable 5.2 · $0.38 on DeepSeek V4.1 Flash.

Skills · Measured Evidence (Corpas et al., 2026)

A SKILL.md beats upgrading the model

44,550Pharmacogenomic questions across 9 frontier & open models
62.8% → 91.0%Weakest model with a skill beat the strongest free-prompted model (90.7%)
28.0 → 8.5Point spread between weakest and strongest models shrank by 3×

A skill is not code and not a tool — it is a plain Markdown specification in .claude/skills/<name>/SKILL.md that changes how the agent uses its existing tools.

Skills in Practice

Half the tokens, zero failed calls, fewer round-trips

With vs without skill
Live Demo 1 Skills in Action

Journal Club Slides: raw prompt vs /pptx skill

/pptx Make a 5-slide journal club presentation for:
https://www.nature.com/articles/s41588-024-01919-z
Keep word usage low, include main figures, summarise key takeaways.

Takeaway: Write down your lab's figure standards, analysis conventions, and slide rules once in .claude/skills/ — commit them to Git so they travel with the code.

Day 1 · Part 3 · 5:00–6:00 CET

Acting, Failing
& Verifying

Live demo of Plan → Build on Palmer Penguins, then our Day 1 hands-on exercise and group debrief.

Live Demo 2 Plan → Build

Palmer Penguins: steer before it writes code

Make publication-ready scatter plots comparing bill length and flipper length
across penguin species in penguins.csv, and export summary statistics.

1. Plan mode

Inspects penguins.csv and asks clarifying questions before touching disk.

2. Build mode

Writes and runs the script, fixes errors, outputs figures + table.

3. Check

Inspect sample counts (NA rows) and verify numbers against the CSV.

Safety · Isolation

The permissions ladder: match isolation to blast radius

1. Read-only

Read, Grep, Glob only. Ideal for reviewers and literature triage.

2. Empty folder

Start the agent inside a dedicated project folder — never your home directory.

3. Git branch

Every edit is diffable and reversible with git diff / git restore.

4. Disposable VM

Multipass or Docker for untrusted code or autonomous loops (no host credentials).

Never bypass permissions in a folder containing credentials, raw clinical data, or unbacked-up manuscripts.

Exercise 1 · 20 min + 15 min Debrief Day 1 Hands-On

Sandbox: Act, Fail, Check

Setup (3 files from jaydata.bio/education)

  • samples.json — one null (failed well) and one genuine 0
  • analyse.py — silently counts null as 0
  • check.py — independent checker

Four steps

  1. Run analyse.py, check.py, and shasum check.py
  2. 2a: Vague prompt (no checker) — does it catch the bug?
  3. 2b: Repair against check.py (watch the 0 trap!)
  4. Re-run shasum check.py to confirm no tampering
Day 2 · Part 4 · 3:00–3:50 CET

Tools, MCP &
Interactive Data Portals

Connecting agents to external databases safely, and building shareable web tools from real single-cell data.

External Tools · MCP

MCP connects agents to real systems — controls are on you

"The controls are bolted on, and nothing stops you if you skip them." — Read-only MCP server design (audit logging, allowlists, no raw patient PII)

RAG vs MCP

RAG retrieves static text chunks; MCP exposes live, typed tools (PubMed, GitHub, internal DBs).

Fixed overhead

Every registered MCP tool consumes context tokens on every turn — only enable what you need.

Data boundary

Keep clinical/unpublished data off free or training-enabled endpoints; log every query.

Domain Example · Regulatory Boundary

Exploratory research tooling ≠ validated clinical software

Where agents shine (e.g. ClawBio)

  • Combining genomic variants with CPIC pharmacogenomic guidelines
  • Drafting target dossiers, literature sweeps, and exploratory figures
  • Writing reproducible pipelines you rerun yourself

Where you must stop (GxP / clinical boundary)

  • Never treat an LLM output as a validated clinical decision or GxP record
  • Never upload identifiable patient VCFs to public endpoints
  • Always check curated source review status (ClinVar, CIViC, OncoKB)
Live Demo 3 · Website Demo Interactive Research Tool

Single Cell Portal from a 416 MB .h5ad

  • Dataset: Allen Institute Adult Human Brain Atlas — midbrain snRNA-seq (59,505 cells × 58,232 genes, 11 cell types)
  • Prompt (Plan mode): Build an interactive viewer for my single-cell RNA data
  • Publish: Push to GitHub via gh CLI for lab-wide access
Single Cell Viewer
Day 2 · Part 5 · 4:00–4:50 CET

Loops, Subagents
& Swarms

Moving from one conversation to verified multi-agent workflows — and knowing what each pattern costs.

Loops Inside the Harness · Claude Code Stop Hooks

The agent cannot finish until a reviewer passes the figure

1. Agent exits

Writes plot.py, renders figure.png, and tries to stop.

2. Cheap checks

figure-gate.py checks file exists, is newer than plot.py, plausible size.

3. Fresh reviewer

Spawns claude -p to inspect the PNG against review-criteria.md.

4. Block or pass

Returns {"decision":"block"} with faults — up to a hard 4-round budget.

Every loop needs two things: an independent stopping check and a hard attempt limit.

Claude Code Conventions · .claude/

A skill is instructions; an agent is a separate remit

.claude/skills/reproducible-analysis/SKILL.md

---
name: reproducible-analysis
description: Use when writing analysis
  scripts that produce a number or figure.
---
## Pin inputs and random seeds
Record exact input paths and set a seed.
## Stop conditions
If units or metadata are missing, stop.

.claude/agents/adversarial-statistician.md

---
name: adversarial-statistician
description: Reviews an analysis from the
  position that it is probably wrong.
tools: Read, Grep, Glob
---
Check sample independence, NA/zero handling,
and multiple testing. Report file + line.

An agent that agrees with you is not doing the job. Give reviewers read-only tools only.

Live Demos Multi-Agent Patterns in Claude Code

Subagent → Orchestrator → Swarm

A. Single Subagent

Spawn 1 read-only adversarial-statistician on Day 1's analyse.py + samples.json. Main context stays clean; returns a 5-line verdict.

B. Orchestrator (1 → 3)

Launch adversarial-statistician, reproducibility-auditor, and data-governance-reviewer in parallel. The output is the disagreement.

C. Sharded Swarm

Split references.txt into 3 shards (1–5, 6–10, 11–15). Separate output TSVs (no shared writes); final pass merges & verifies.

▶ Open Interactive Visualiser (jaydata.bio/education/multi-agent-demo.html)
Exercise 2 · 25 min + 10 min Debrief Day 2 Hands-On

Audit a reference list against PubMed

Closing the loop on Topaz et al. (Lancet 2026) using references.txt (15 entries: real papers, 1 title typo, 1 arXiv preprint, 1 fabricated 2025 citation).

StepPatternWhat to watch
1One agent, no loopBaseline time and /context growth
2Subagents (groups of 5)Each writes its own results_<group>.tsv; compare main context
33-round retry loopRe-query unresolved rows by author+year & title; recovers #13, never guesses a PMID
4Manual verificationOpen 3 "found" PMIDs yourself — did any match the wrong paper?
Field Notes · Six Battle-Tested Lessons

What real life-science workflows teach you

WorkflowThe lesson
Variant → decisionCurated sources need their review status, or they mislead
Target dossierExpression is the weakest evidence and the most cited
Biomarker briefAn agent's silence about a decision is not the absence of one
Paper → claimInsist on retrieval; a fluent summary of an unread paper is the danger
Adversarial reviewThe output is the disagreement, not the consensus
Internal MCPThe controls are bolted on, and nothing stops you if you skip them
Day 2 · Part 6 · 5:00–6:00 CET

Research Workflows,
Governance & Second Brain

Standing rules, a personal research wiki, and a practical AI use policy for your lab.

Live Demo 4 Standing Rules & Research Wiki

CLAUDE.md + Karpathy-style Second Brain

  • Rule files: CLAUDE.md / AGENTS.md in project root — standing instructions loaded every session.
  • Second Brain: Drop PDFs into raw/ → Claude compiles linked wiki/ notes → view graph in Obsidian.
  • Worked example: Akbari et al. & Barton et al. (2026) ancient-DNA papers linked by shared authors, methods & concepts.
Obsidian Second Brain graph
Publishing · Reproducibility

What to commit alongside an agent-assisted manuscript

In your Git repository

  • Pinned input paths, random seeds, and environment lockfiles
  • CLAUDE.md + .claude/skills/ + .claude/agents/
  • Independent checker scripts (check.py / unit tests)

In your Methods section

  • Which coding harness and model were used (e.g. Claude Code / Sonnet 5.5)
  • What was human-verified (statistics, figures, every citation)
  • Confirmation that no restricted data left approved infrastructure
Adoption · What to Do on Monday

A 30-day adoption plan for your lab

Week 1

Pick one active repo. Add a 10-line CLAUDE.md and use Plan mode before coding.

Week 2

Write your first SKILL.md (e.g. lab figure standards or QC checklist).

Week 3

Add one read-only adversarial reviewer in .claude/agents/.

Week 4

Commit .claude/ to Git and agree on a 1-page lab AI use policy.

Governance & Closing Poll

Four rules for a lab AI use policy

Practical baseline

  1. Data boundary: No patient or unpublished data on free/training tiers.
  2. Independent checks: Every number, figure, and citation verified outside the generating turn.
  3. Shared conventions: Commit CLAUDE.md, .claude/skills/, and .claude/agents/ to Git.
  4. Transparency: Record which models, skills, and checks were used.

Closing Poll (1–5)

1. How much could AI help your work over the next 12 months?

2. How much risk could AI create for your work over the next 12 months?

Q&A · All slides, demos & downloads stay live at jaydata.bio/education.