Medea Therapeutic Reasoning Agent

A four-module agent that plans experiments, runs omics analyses, reads literature and deliberates to find therapeutic targets and predict drug response.

Stars
★ 141
Last updated
4mo ago
FARS reviewed
Nov 24, 2026
License
Apache-2.0
Primary language
Python

At a glance

Works with
Universal · cross-platformOpenAI API · Claude API
You'll need
Python 3.10uvMedeaDB dataset (Hugging Face, via git-lfs)LLM API key (OpenRouter, Azure OpenAI, Gemini, Claude or NVIDIA DeepSeek)Shell / CLINetwork accessLocal filesystem
Typical use
Computational biology teams ranking candidate therapeutic targets for rheumatoid arthritis, type 1 diabetes, systemic sclerosis, hepatoblastoma or follicular lymphoma from CD4+ T cell single-cell data.
Main limitation
Requires a separate, sizeable MedeaDB download via git-lfs; without MEDEADB_PATH the analysis module cannot run.
Website
medea.openscientist.ai ↗ set on GitHub
Maintenance
Commits in the last 6 monthslast commit 2026-07-17

What does this agent do, and when should you use it?

Medea is an open-source biomedical research agent from the mims-harvard lab that answers questions of the form "which gene is the best therapeutic target for this disease in this cell type". It is built on the AgentLite framework and splits the work across four modules: ResearchPlanning drafts and audits an experimental plan while verifying disease, cell-type and gene context; Analysis generates and executes code over single-cell, cell-line and patient-level data with pre-run checks and post-run verification; LiteratureReasoning retrieves, filters and synthesizes papers with LLM-based relevance and evidence-strength judging; MultiRoundDiscussion runs a multi-model panel that reconciles the other modules and abstains when support is insufficient. It ships as a CLI (main.py) covering three evaluation tasks — targetID, synthetic lethality and immune therapy response — and as a Python package exposing medea(), experiment_analysis() and literature_reasoning(). Running it requires the MedeaDB dataset plus an LLM API key, with adapters for OpenRouter, Azure OpenAI, Google Gemini, Anthropic Claude and NVIDIA DeepSeek. The project also releases a previously unpublished S. cerevisiae E-MAP synthetic-lethality benchmark with labeled gene pairs under bleomycin and DMS conditions.

A full run chains four modules. ResearchPlanning uses ResearchPlanDraft, ContextVerification and IntegrityVerification to turn a user question into a plan, check the biological context (disease, cell type, genes) and audit feasibility up to max_iter rounds. Analysis then drives CodeGenerator, AnalysisExecution, CodeDebug and AnalysisQualityChecker: it writes analysis code, runs it against MedeaDB resources such as single-cell and cell-line data (optionally via single-cell foundation models like PINNACLE or TranscriptFormer), repairs failures and grades the result. LiteratureReasoning calls LiteratureSearch, PaperJudge and OpenScholarReasoning to pull papers, score relevance and synthesize evidence. MultiRoundDiscussion then has a panel of LLMs deliberate for debate_rounds to reconcile the modules, abstaining rather than guessing when evidence is thin. The call returns a dict with final (consensus answer), P (research plan), PA (plan plus analysis) and R (literature synthesis). On the CLI side, main.py reads source CSVs and evaluation_samples query CSVs from the evaluation folder, runs each item, and supports resuming from a --checkpoint string. Separately, medea.tool_space exposes 13 tools that can be registered inside the ToolUniverse framework.

  1. Computational biology teams ranking candidate therapeutic targets for rheumatoid arthritis, type 1 diabetes, systemic sclerosis, hepatoblastoma or follicular lymphoma from CD4+ T cell single-cell data.
  2. Cancer pharmacogenomics groups benchmarking synthetic-lethality prediction on Samson human cell lines (MCF7, A549, CAL27 and others) or on their own yeast E-MAP screen.
  3. Immuno-oncology researchers exploring which transcriptomic features track checkpoint-inhibitor response on IMvigor210-style patient TPM cohorts.
  4. Principal investigators who want literature evidence cross-checked against in-silico results before committing to a wet-lab direction.
  5. Developers building their own scientific agents who want to reuse Medea's 13 biomedical tools through ToolUniverse rather than running the full agent.
  6. Methods researchers who need a reproducible CLI harness to compare backbone LLMs and single-cell foundation models under fixed seeds.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • pip install uv
  • uv pip install -e
  • uv pip install openai==1.82.1
  • uv pip install -U huggingface_hub
Environment variables
MEDEADB_PATH OPENROUTER_API_KEY
Config files
.env
Runtime
Python 3.10
Install notes cover
Windows · macOS · Linux

How do you install or deploy this agent?

You need Python 3.10, uv and network access to Hugging Face. Create the virtual environment and install the package, then clone the MedeaDB dataset with git-lfs.

git clone https://github.com/mims-harvard/Medea.git
cd Medea

pip install uv
uv venv medea --python 3.10
source medea/bin/activate  # On Windows: medea\Scripts\activate

uv pip install -e .
uv pip install openai==1.82.1

Then pull the MedeaDB dataset (Hugging Face account and git-lfs required):

uv pip install -U huggingface_hub
huggingface-cli login
brew install git-lfs  # macOS, or: sudo apt-get install git-lfs (Linux)
git lfs install
git clone https://huggingface.co/datasets/mims-harvard/MedeaDB

Finally create the config file and fill in the required values:

cp env_template.txt .env
MEDEADB_PATH=/path/to/MedeaDB
BACKBONE_LLM=gpt-4o
SEED=42
OPENROUTER_API_KEY=your-key-here
USE_OPENROUTER=true

How do you use this agent?

Copy env_template.txt to .env, set MEDEADB_PATH, BACKBONE_LLM and at least one provider key (the default path uses OpenRouter), then run a task from the CLI or compose the modules in Python.

Run the default evaluation (targetID task, rheumatoid arthritis, PINNACLE single-cell model):

python main.py

Pick a different task, disease and seed:

python main.py --task targetID --disease t1dm --scfm TranscriptFormer --sample-seed 44

Run the yeast E-MAP synthetic-lethality benchmark:

python main.py --task sl --sl-source yeast --condition BLEO --sample-seed 42

Or call the full agent from Python:

from medea import medea, AgentLLM, LLMConfig
from medea import ResearchPlanning, Analysis, LiteratureReasoning
from medea import (
    ResearchPlanDraft, ContextVerification, IntegrityVerification,
    CodeGenerator, AnalysisExecution, CodeDebug, AnalysisQualityChecker,
    LiteratureSearch, PaperJudge, OpenScholarReasoning
)

backbone_llm = "gpt-4o"
llm_config = LLMConfig({"temperature": 0.4})
research_llm = AgentLLM(llm_config, llm_name=backbone_llm)
analysis_llm = AgentLLM(llm_config, llm_name=backbone_llm)
literature_llm = AgentLLM(llm_config, llm_name=backbone_llm)

research_planning_module = ResearchPlanning(llm=research_llm, actions=[
    ResearchPlanDraft(tmp=0.4, llm_provider=backbone_llm),
    ContextVerification(tmp=0.4, llm_provider=backbone_llm),
    IntegrityVerification(tmp=0.4, llm_provider=backbone_llm, max_iter=2)
])
analysis_module = Analysis(llm=analysis_llm, actions=[
    CodeGenerator(tmp=0.4, llm_provider=backbone_llm),
    AnalysisExecution(),
    CodeDebug(tmp=0.4, llm_provider=backbone_llm),
    AnalysisQualityChecker(tmp=0.4, llm_provider=backbone_llm, max_iter=2)
])
literature_module = LiteratureReasoning(llm=literature_llm, actions=[
    LiteratureSearch(model_name=backbone_llm, verbose=True),
    PaperJudge(model_name=backbone_llm, verbose=True),
    OpenScholarReasoning(tmp=0.4, llm_provider=backbone_llm, verbose=True)
])

result = medea(
    user_instruction="Which gene is the best therapeutic target for RA in CD4+ T cells?",
    experiment_instruction=None,
    research_planning_module=research_planning_module,
    analysis_module=analysis_module,
    literature_module=literature_module,
    debate_rounds=2,
    timeout=800
)

print(result['final'])
print(result['P'])
print(result['PA'])
print(result['R'])

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

FARS trust-control audit

Not found in source — apply before daily use
  • least-privilege scoping — Grant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • dependency security — Pin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • disclosed external effects — Establish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.

What are this agent's strengths and limitations?

Pros
  • Separation of concerns across four modules, with pre-run checks, CodeDebug retries and a quality checker inside Analysis and an explicit abstain option in the discussion panel.
  • Not locked to one model vendor: OpenRouter, Azure OpenAI, Gemini, Claude and NVIDIA DeepSeek are all documented, and each module can take a different backbone.
  • Ships a previously unpublished yeast E-MAP synthetic-lethality benchmark — 600 labeled gene pairs across BLEO and DMS conditions with pi, fdr, z and sd fields.
  • Both a CLI and a Python library entry point exist, and CLI evaluation runs support checkpoint resume for large batches or interrupted jobs.
  • 13 tools under medea.tool_space register directly into ToolUniverse, so they can be reused outside the full agent.
Limitations
  • Requires a separate, sizeable MedeaDB download via git-lfs; without MEDEADB_PATH the analysis module cannot run.
  • No hosted service and no GUI — interaction is limited to shell commands and Python code, which raises the barrier for lab scientists.
  • Tight dependency pinning: the README asks for openai==1.82.1 and the project tracks AgentLite 0.1.2, so upstream upgrades may break compatibility.
  • You must supply paid LLM API keys, and cost grows with debate rounds and the number of panelists.
  • Bringing your own immune-therapy cohort means hand-building source and evaluation_samples CSVs in the expected layout plus per-patient TPM files; the README documents formats but not a converter.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
Medea Therapeutic Reasoning Agent This agent 29 · Major gaps — ★ 141 4mo ago Python OpenAI API · Claude API
Qinyan Academic Skills 39 · Major gaps CLIFree + model costs ★ 1.1k 4mo ago Python Codex · Claude Code
Scientific Agent Skills 75 · Some gaps CLIFree + model costs ★ 58k 1d ago Python Claude Code
TradingAgents Financial Research Framework 74 · Some gaps CLIFree + model costs ★ 124k today TypeScript OpenAI API · Claude API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
29/ 100 5-point scale 1.5 / 5
Trust 5/29
Reliability 3/14
Adaptability 9/18
Convention 7/18
Effectiveness 4/13
Verifiability 1/8
Why each dimension lost points
Trust5 / 29 · 0.9/5

least_privilege 0: AnalysisExecution/CodeGenerator executes generated code and biological tools, with no visible sandbox, permission allowlist, or resource limits; user_confirmation 0: CLI and library calls run directly without pre-execution confirmation; data_flow_transparency 1: README documents API providers, environment variables, and MedeaDB download, but not which LLMs or third parties receive patient/expression data; sensitive_data_handling 0: patient TPM and clinical context are processed, with no visible de-identification, consent, or retention policy; dependency_security 0: many dependencies are range-pinned, with no lockfile/hashes/audit, and OpenAI versions conflict across README, pyproject, and requirements; external_effects 0: can download models/data, call external APIs, and write logs/checkpoints without external-effect safeguards; rollback 1: only SL tasks have checkpoint resume, not general rollback; source_attribution 2: cites the paper, datasets, AgentLite/ToolUniverse, and license, so attribution is relatively clear.

Reliability3 / 14 · 1.1/5

self_consistency 0: README, QUICKSTART, pyproject, and requirements contradict each other on license (Apache-2.0 vs MIT), OpenAI version, MedeaDB path, Python version, and numpy constraints; dependency_availability 1: dependencies are listed but there is no lockfile, and some package versions/availability are unverified; failure_messages 1: there is a psutil-missing warning and QUICKSTART troubleshooting, but coverage is limited.

Adaptability9 / 18 · 2.5/5

audience_and_scenarios 2: aimed at biomedical researchers, with CLI, library usage, three task types, and examples; capability_boundaries 1: describes four modules and task scope, but lacks explicit unsupported scenarios and input boundaries; trigger_precision 2: CLI arguments and task selection are fairly clear; environment_fit 1: Python/uv/pip and macOS/Linux notes exist, but GPU, external database, API, and model-download requirements are not systematized.

Convention7 / 18 · 1.9/5

information_architecture 2: README has a table of contents, docs, examples, and package-structure pointers; install_notes 1: installation steps are detailed but contain version/path contradictions; naming_stability 1: package and CLI names are stable, but there is no deprecation policy; examples_and_faq 2: multiple code examples and a QUICKSTART, with a thin FAQ; known_limitations 0: no known-limitations section; license 1: LICENSE is Apache-2.0 but pyproject says MIT, a metadata conflict; versioning_changelog 1: version 1.0.0 exists but no changelog; maintenance_responsibility 1: author team and paper are present, but no maintainer contact or security policy, and publisher identity is unverified.

Effectiveness4 / 13 · 1.5/5

output_usability 2: returns a final/P/PA/R dictionary and prints configuration, which is usable; marginal_value 1: integrates planning, analysis, literature, and multi-model discussion, but the files contain no quantitative baseline comparison; cost_benefit 0: multiple LLMs, debate rounds, heavy dependencies, and model downloads imply significant cost, with no cost/latency estimate or optimization guidance.

Verifiability1 / 8 · 0.6/5

claim_traceability 1: cites the paper, datasets, and benchmark table, but claims such as “previously unpublished” cannot be verified from the packaged files; cross_source_corroboration 0: README, QUICKSTART, pyproject, and requirements contradict each other, so cross-source corroboration fails; fact_inference_separation 0: documentation mixes product claims, installation instructions, and inference without separating fact from inference.

Risks and how to mitigate them
  • Not found in source: least-privilege scopingGrant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
  • Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
  • Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
  • Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
  • Not found in source: disclosed external effectsEstablish which external systems it writes to, sends to or changes, and verify with test accounts or repos before production.
  • AnalysisExecution/CodeGenerator can execute generated code and biological tools, with no visible sandbox, permission allowlist, or pre-execution confirmation; add isolation and human confirmation before production or sensitive use.
  • The project processes patient TPM and clinical context, but provides no visible de-identification, consent, retention, or third-party LLM data-flow statement; perform privacy and compliance review before using patient data.
  • License metadata conflicts: LICENSE is Apache-2.0 while pyproject.toml says MIT; clarify before distribution or enterprise adoption.
  • There are many dependencies without a lockfile or hashes, and OpenAI versions conflict across README, pyproject, and requirements; pin and audit dependencies.
  • README/QUICKSTART disagree on MedeaDB path, Python version, and install commands, so following the docs may fail.
  • No known-limitations section, cost/latency estimate, or general rollback mechanism is provided; multi-LLM debate and model downloads may be costly.
Evidence confidence: Low Reviewed Nov 24, 2026 Reviewed revision 49a7abbfddd7
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/medea.svg)](https://followagents.com/en/agents/medea)
<a href="https://followagents.com/en/agents/medea"><img src="https://followagents.com/badge/medea.svg" alt="FARS review"></a>

FAQ

Is Medea Therapeutic Reasoning Agent open source?
Yes. The source code is on GitHub (mims-harvard/Medea) under the Apache-2.0 licence.
Is Medea Therapeutic Reasoning Agent safe to use?
FollowAgents' FARS review (Nov 24, 2026) scored Medea Therapeutic Reasoning Agent 5/29 on trust and safety. The review did not find these safety controls in the source: least-privilege scoping, confirmation before acting, sensitive-data handling, dependency security, disclosed external effects. Before giving it real accounts or data: Grant only what the task needs: a dedicated account or read-only token, scoped to specific directories and repos.
Is Medea Therapeutic Reasoning Agent still maintained?
Development has slowed: the latest commit on GitHub is from 2026-07-17, within the last six months but not the last 30 days.
Who makes Medea Therapeutic Reasoning Agent?
Medea Therapeutic Reasoning Agent is published on GitHub by the account mims-harvard. FollowAgents has not verified which person or company is behind that account.
What is Medea Therapeutic Reasoning Agent's official website?
The project's GitHub repository lists https://medea.openscientist.ai as its website. That link is set by the repository owner; the source code itself is on GitHub (mims-harvard/Medea).
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts