AgentRX
Drugs should be repurposed
The problem AgentRX solves
The Core Issue: The "Garbage In, Garbage Out" Trap in Drug Repurposing
Traditional pharmaceutical drug repurposing relies heavily on manual literature reviews, which are slow, prone to human confirmation bias, and often disconnected from real-world commercial viability. On the other hand, naive AI wrappers attempting to automate this process suffer from severe "Goal Fixation" and "Negation Blindness"—they will frequently misinterpret a drug's highly toxic side effect as a miracle cure simply because the biological pathways overlap in the literature. Furthermore, discovering a biological link is useless if the molecule is blocked by active patents or lacks a defensible Total Addressable Market (TAM).
The AgentRX Solution: Deterministic Multi-Agent Intelligence
AgentRX is a fully autonomous, Machine-to-Machine (M2M) orchestrator designed to eliminate bias and accelerate Phase 1 discovery. It transforms raw medical literature into VC-grade, risk-adjusted commercial business plans in under 60 seconds.
It solves the repurposing bottleneck by executing a rigorous, 6-agent pipeline:
Unbiased Discovery: Dynamically scrapes the PubMed Entrez API to establish a neutral literature baseline.
Dual-Track Biological Reasoning: Extracts biomedical relationships using NLP, strictly separating therapeutic efficacy (TREATS, PROTECTIVE) from toxicity risks (WORSENS, ADVERSE_EFFECT).
Live IP Whitespace Matrix: Automatically queries Europe PMC to ensure Freedom-to-Operate (FTO) and filters out candidates with active blocking patents.
Risk-Adjusted Commercial Modeling: Calculates a proxy TAM using epidemiological data and recommends 505(b)(2) novel formulation strategies if a generic molecule presents systemic toxicity or is already standard-of-care.
Automated Synthesis: Renders a comprehensive, mathematically grounded PDF intelligence report complete with risk/reward scatter plots and PubChem pharmacological profiles.
Challenges we ran into
Building an enterprise-grade multi-agent system meant fighting the core nature of Large Language Models—their tendency to please, hallucinate, and connect dots that shouldn't be connected.
- The "Evil Corp" Bug (Confirmation Bias)
The Challenge: Initially, the Web Intelligence Agent was instructed to "find repurposing candidates." Because of Goal Fixation, the LLM twisted negative data to satisfy the prompt. If it read that a drug caused dementia, it would aggressively pitch dementia as a $100 Billion target indication. It was acting like a hyped-up hype salesman rather than a cynical scientist.
The Overcome: I engineered a "Dual-Track Intelligence" architecture. I split the pipeline into two phases: an objective literature review, followed by strategic extraction. I forced the LLM to classify every relationship into one of 9 strict categories (e.g., TREATS vs. CAUSES). I then built a deterministic Python "Vacuum Guardrail" that violently quarantines any candidate flagged with an adverse effect, completely stripping the LLM's ability to commercialize toxic side effects.
- LLM Anchoring Bias & "Lazy Math"
The Challenge: When asked to generate a floating-point "Pathway Overlap Score" for multiple diseases, the LLM (Llama-3.3-70B) exhibited severe anchoring bias. To save compute power, it lazily copy-pasted 0.85 for every single indication in the JSON array, regardless of whether it was a proven cure or a loose correlation.
The Overcome: I realized you cannot trust an LLM to do qualitative math. I stripped the LLM of its scoring authority, restricting it purely to NLP Boolean fact extraction (e.g., "Is there in-vivo evidence?"). Once the LLM returns the Boolean flags, a hardcoded Python deterministic scoring engine calculates the final Efficacy and Toxicity Penalty scores. This enabled the accurate mapping of the Risk/Reward scatter plots.
- API Bloat and Pipeline Latency
The Challenge: I initially relied on the ClinicalTrials.gov API to determine trial complexity, but the rigid JSON structures required complex parsing and slowed down the pipeline execution time.
The Overcome: I recognized that massive language models already contain FDA approval histories and standard-of-care guidelines in their internal weights. By deprecating the rigid external API and relying on advanced prompt constraints for clinical saturation (e.g., detecting if a drug is already prescribed off-label), I shaved seconds off the execution time while making the commercial recommendations significantly smarter.
Tracks Applied (1)
BEST INNOVATIVE IDEA
HACKNEST
Technologies used
