Project Info
Inspiration
Baricitinib. It's an arthritis pill. Costs about $70 a month. In 2020, an AI system figured out (in 48 hours) that this drug could treat COVID-19. It went through an emergency trial. It reduced deaths by 38%. The FDA fully approved it. But here's the thing: Baricitinib had been sitting in pharmacies for YEARS before anyone made that connection. How many other drugs are sitting on shelves right now that could save lives for diseases they were never tested on? We built the system that finds them.
What it does
RescueRX is a multi-agent AI system that uncovers pre-existing drugs that could treat new diseases. Given a disease, we mine “unsuccessful” late-stage clinical trials to surface promising drugs that were shelved for non-scientific reasons, then produce a ranked set of repurposing opportunities with evidence.
How we built it
RescueRX runs a parallel team of 9 specialized agents across 3 layers, where each agent works together to solve the drug repurposing question. Agent 1: Knowledge Graph Discovery Performs graph-based biological plausibility modeling using a large-scale heterogeneous biomedical knowledge graph: 97,000+ entities 5.87M typed relationships 107 interaction categories 97,000+ entities 5.87M typed relationships 107 interaction categories Uses custom neural relational embeddings (trained on GPU infrastructure) to estimate drug–disease association likelihoods via rotations in 200 dimensional embedding space. Enables latent pathway inference across complex multi-hop biological interactions and produces the initial candidate pool. Once a high-confidence candidate pool is established, the remaining agents execute concurrently as independent validation modules. Agent 2: Trial Scanner Ingests and classifies 500,000+ ClinicalTrials.gov trials, focusing on Phase 2 / Phase 3 terminations caused by non-scientific reasons (e.g., sponsor bankruptcy, enrollment failure, epidemic-related disruption). Implements a hybrid classification pipeline: Deterministic rule-based filtering Contextual intent inference Deterministic rule-based filtering Contextual intent inference Produces three labels: Rescuable Non-Rescuable Ambiguous Rescuable Non-Rescuable Ambiguous Agent 3: FAERS Inverse Signal Performs pharmacoepidemiological signal analysis over the FDA’s FAERS database. Computes inverse reporting odds ratios (ROR < 1) to identify statistically significant protective signals (reverse-signal mining), leveraging real-world patient safety data to uncover population-scale therapeutic correlations. Agent 4: Literature Review While the Knowledge Graph Agent can explain that there is a correlation, the Literature Review Agent is used to determine WHY the correlation exists. Executes retrieval-augmented literature synthesis via the Perplexity Sonar Research Agent, querying 2.3M PubMed-indexed publications Extracts evidence across four dimensions: Mechanistic rationale Prior clinical validation Regulatory trajectory Recent translational developments Mechanistic rationale Prior clinical validation Regulatory trajectory Recent translational developments All outputs are citation-linked to prevent hallucination and ensure traceability. Agent 5: Molecular Similarity Performs cheminformatics validation using: 2048-bit Morgan fingerprints Tanimoto similarity scoring 2048-bit Morgan fingerprints Tanimoto similarity scoring Quantifies structural similarity between candidate compounds and FDA-approved therapeutics, leveraging the similarity-property principle to estimate shared target engagement potential. Runs via high-throughput, vectorized computation for molecular-level plausibility assessment. Agent 6: Orchestrator + Safety Arbitration Aggregates outputs across agents and enforces a strict safety override protocol. Cross-validates: Contraindications Adverse event frequencies Black-box warnings Contraindications Adverse event frequencies Black-box warnings Automatically excludes any candidate with historical safety concerns or positive risk signals in FAERS, ensuring safety constraints supersede predictive optimism. Agents 7–9: Adversarial Court Agent 7 (Advocate): constructs the strongest possible case for repurposing viability. Agent 8 (Skeptic): performs systematic critique: identifying statistical weaknesses, cross-agent inconsistencies, and evidence gaps. Agent 9 (Judge): synthesizes both arguments into a calibrated final verdict with a transparent reasoning chain. This adversarial architecture reduces confirmation bias, improves calibration, and transforms predictive scoring into defensible scientific argumentation.
Challenges we ran into
Orchestrator complexity! Stitching outputs from multiple agents into a cohesive, readable final verdict required robust output contracts and formatting logic. Scale + heterogeneity of bioclinical data! Normalizing, cleaning, selecting meaningful biological features, and deciding what signals to trust vs. ignore.
Accomplishments we're proud of
Built an end-to-end multi-agent system that turns messy biomedical data into actionable ranked hypotheses.
What we learned
We learned a lot about making multiple agents work together, and even more about how the whole process of drug repurposing worked!
What's next
Adding more data to the knowledge graph to incorporate more drugs and diseases Expand RescueRX to model drug combinations instead of only mapping single-drug impact. Add human-in-the-loop feedback so clinicians/researchers can correct mappings and teach the system over time.
RescueRX
🏆 Winner: Best Use of Clinical Information in TreeHacks 2026
How many drugs have been shelved that could save lives for diseases they were never tested on? We use AI to find drugs abandoned for business reasons & pinpoint diseases they're best suited to fight.
Overview
RescueRX is a multi-agent drug repurposing system that finds high-potential, previously-shelved drugs for a target disease and explains why they’re worth pursuing.
It combines:
- Knowledge graph discovery (biological plausibility)
- Clinical trials scanning (why drugs were dropped)
- Real-world safety signals (FAERS inverse signals)
- Literature grounding (citations-backed mechanisms)
- Molecular confirmation (fingerprints + optional docking)
- Adversarial “evidence court” (Advocate vs Skeptic → Judge verdict)
The result is a ranked list of candidates with tiered confidence, safety considerations, and transparent reasoning clinicians can inspect.
How It Works (3 Layers • 9 Agents)
Layer 1: Discovery
- Knowledge Graph Agent: scores drugs vs. the disease using learned graph embeddings (RotatE-style scoring)
Layer 2: Evidence Wall (runs in parallel)
- Trial Scanner: queries ClinicalTrials.gov for terminated/withdrawn trials and classifies whether failure was scientific vs non-scientific
- FAERS Inverse Signal Agent: asks “what does this drug prevent?” via reporting odds ratios
- Literature Agent: produces citation-backed mechanism + prior evidence summaries
- Molecular Similarity Agent: Morgan fingerprints + Tanimoto similarity vs known treatments
- Safety Arbitration: excludes candidates with strong risk signals / contraindication concerns
Layer 3: Adversarial Court
- Advocate: best case for rescuing the drug
- Skeptic: best case against rescuing the drug
- Judge: weighs both sides then assigns a final Rescue Score and recommended next steps
Built with ❤️ during TreeHacks 2026
Analysis
View
Metric
- 2
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- HTMLIn code
- JavaScriptIn code
- PythonIn code
- ReactIn code
4 of 4 appear in the indexed code.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
799 KB
Source files
64
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
Donglomur/TreeHacks
108 files · 2.7 MB · @ 6f330b8
Structure
Interface
1 file · 1%Screens, components and styles rendered to the user.
Application logic
56 files · 52%Domain rules, services and shared utilities.
+5 more
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- Markdown48%
- Python39%
- JavaScript13%
- Shell1%
- HTML0%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
drugrescue-frontend/package.json
npm · 4- react
- react-dom
- +2 more
pyproject.toml
pypi · 4- numpy
- +3 more
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.