Rex Ma (@RexMa9) header
Rex Ma (@RexMa9) profile picture

AI for biology & drug discovery | PhD @UofT

Toronto, Ontario
Joined April 2018
Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)Photo by Rex Ma (@RexMa9)
Pinned Tweet
Excited to see X-Scientist launch! Proud to be one of the core builders of its harness alongside an incredible team @Xaira_Thera. Here’s what building it taught me about domain-specific agents 👇 1, The model is general. The harness is where domain knowledge lives. Frontier models already “know” a lot of biology. What they lack is the scaffolding to think like a drug hunter: which evidence counts, what order to reason in, when to change course. Our key design choice was to separate scientific thinking from execution. Once coordination and verification are their own layer, they become something you can optimize, and that’s where domain knowledge gets encoded. 2, Tools > prompts. A drug discovery agent needs tools built for its domain. We built ours around our own models like X-Cell and X-Design, alongside bioinformatics and scientific analysis tools. Each tool has to return outputs the model can reason over, not raw dumps. 3, Your verifier is your moat. Coding has unit tests. Biology has noisy data and slow wet-lab loops. Deciding what “good” looks like at each step, and checking it automatically, is what keeps an agent grounded instead of drifting into confident nonsense. It’s also what lets scientists trust its output and step in where it matters. 4, The thinking layer learns. Because scientific reasoning is separated from execution, it can improve on its own. Every run leaves a trace of which strategies produced real evidence and which burned effort. We feed that back into how the agent plans, allocates and verifies. Each run makes the next one a better scientist. General-purpose agents will keep getting better. But in high-stakes science, the last mile belongs to whoever builds the best domain harness. 🚀
Meet X-Scientist: our step toward a self-improving virtual drug hunter! Today, we’re introducing Xaira’s agentic AI platform for drug discovery: 🧠 Beats Codex using the same Astra model by 7.4 percentage points on DrugDiscoveryBench. 🧬 Nominates targets ~10× faster than human curation, with a comparable wet-lab hit rate. 🔁 Conducts autonomous research, outperforming AutoResearch and AutoScientists in the PerturbQA benchmark. Here’s what we built, what we tested, and where we’re going. 🧵
3
5
24
2,334
Your heart, brain, and immune system share the same DNA sequence. So how can a single-letter change affect disease in some cells, while sparing the rest? AlphaGenome 2 is our new AI model that zooms in on specific cells to help scientists understand what drives disease. 🧵
241
425
220
2,790
425,003
Rex Ma retweeted
frontier models, with lots of test time compute, are becoming the engine of scientific discovery
415
402
150
7,508
568,042
We're using AI agents to automate everything. Except the engineering of AI agents themselves. That seemed backwards to us. What if you could train your own specialized AI agent with just 15 minutes of your time instead of months of AI engineering? Would you keep renting the same expensive generic models as your competitors, endlessly patching prompts and harnesses until you hit a wall? Today, we're launching the agent that builds, trains, and continuously improves AI agents. 🚀 Meet FAiE, our Frontier AI Engineer. Describe what your agent should accomplish, and FAiE designs evaluations, diagnoses failures, curates data, selects training strategies, and runs experiments. 15 minutes of your effort. A few hours of automated AI engineering. Your own specialized agent, with its model weights trained for your task. Already have an agent? Keep your harness. Connect it to @oumi_ai and train the model behind it with SFT, DPO, or GRPO (Private Preview). The agent that builds your best agent. Excited to see what you build: platform.oumi.ai/ Live demo today at 10 AM PT: oumi.ai/events/fall26
110
75
125
312
1,202,242
This is MCP for harnesses. the model used to be the thing you picked, now it's the harness. With this you can quickly find the most cost-efficient harness for your task and stop paying the harness tax teapaw.org/akshay_pachaar/status/…
Harness Engineering 2.0 is here! After protocols for tools, agent communication, and agent interfaces, harnesses now have one too. Developers just built UHP (Unified Harness Protocol), a standardized interface for running agent tasks across any agent harness. HarnessRouter is its open-source server implementation. Here’s how it works: - The product backend sends a task with a `harness_id`. - HarnessRouter starts the selected harness in its own session. - The harness runs its native agent loop and streams back progress. - Files, artifacts, failures, and the final output return through the same interface. Without UHP, integrating every harness needs separate handling for task execution, sessions, streaming, files, recovery, and output formats. With UHP, Codex, Claude Code, Gemini CLI, Hermes, Pi, and other harnesses can plug into the same product backend while keeping their native tools, skills, models, and agent loops. This means developers can: - Switch harnesses without rebuilding the product integration. - Run the same task across different harnesses. - Add new harnesses without maintaining another execution stack. HarnessRouter currently supports 30 harness bases. Here’s the repo: github.com/HarnessRouter/har… (don’t forget to star it ⭐) As per official benchmarks, changing only the harness while keeping the model fixed reduced costs by 25% to 64% across several healthcare compliance tasks. And changing both the harness and model widened the difference to 99.8% between the highest and lowest-cost configurations. Developers can test their own workloads across different configurations using Harness Arena. Alibaba Cloud's Qoder has also adopted UHP, making it available as an agent backend through the HarnessRouter API. If you want to dive deeper, I already wrote an article that explains why model routing is different from harness routing and what supporting multiple agent runtimes actually involves. It also covers UHP, the local setup, a working API call, and how sessions and files work. Read it below.
2
2
223
Agents built for productivity are converging on one design. From DeepSeek’s Superagent to personal assistants like Grok Bot, the shape is the same: a persistent, proactive agent up front, fanning work out to parallel workers. Our X-Scientist was designed around this from the start. A lead agent handles coordination and verification, and persistent workers do the execution. If the architecture is becoming standard, where does a custom harness get its edge? Sharing my thoughts in two points: 1. The "router" is where domain knowledge belongs. In DeepSeek’s Superagent, the router is deliberately thin. It’s the single front door for every human interaction. It hands each task to an isolated worker and keeps the global context, but it never executes or decomposes work itself. A light model is enough for that. X-Scientist’s lead agent plays the same coordinating role, plus one critical addition: verification. It checks each stage against explicit evaluation criteria. Then it decides whether the evidence supports continuing, trying another approach, or revising the plan. When several workers attempt the same task, it picks the result the evidence best supports. That shows where a domain-specific harness should invest. Execution is becoming a commodity, because any strong model can run a subtask. What doesn’t transfer across domains is judgment: what’s worth doing next, and what counts as “done.” That judgment belongs in the router layer and things can be creative with "router". 2. Human-in-the-loop: make human attention go further, don’t remove the human. Deepseek's blog points out that human attention has become the bottleneck on what agents can deliver. However simply cutting the human out isn't the fix for many domains. In drug discovery specifically, the human decision is the most important thing to keep. Scientists have to make calls on limited evidence, and those calls decide where months of work go. I see two directions: A) Ask at the right moment. Treat human attention as the scarcest resource in the system and schedule it carefully. Interrupt when a human answer is worth the most: high uncertainty, high cost, or a decision that can’t be undone. Batch or defer the low-stakes ones. B) Let expertise compound. Every time a scientist makes a call, the reasoning behind it usually gets lost in a meeting or a Slack thread. A harness can capture those decisions inside the agent loop and use them to train decision models or domain LLMs. Those models can then handle the recurring calls the way the team would. Scientists spend their attention on the decisions that are actually new. The architecture is converging. The edge is in how much domain judgment the harness can hold: in the "router", deciding what’s next and what counts as done, and in the loop with the human, deciding when to ask and learning from every answer. Get both right, and an organization stops renting general intelligence and starts owning its own. Read more on our X-Scientist blog: xaira.com/news/x-scientist-r…
4
2
11
583
The coding interview is dead, at least for my team at Anthropic. I've seen enough to know that it no longer provides signal. I removed it from loops this month. I have a spicy, optimistic take - I think there's an opportunity for junior engineers: felixrieseberg.com/hunger-be…
647
1,558
749
15,625
2,851,371
Rex Ma retweeted
The biggest bottleneck in AI for biology is still the wet lab. AI can generate more ideas than our labs can test. Closing that gap is how we turn better models into faster discovery. Today, we’re introducing X-Automate at Xaira: bringing agentic AI and physical robotics into the lab. 🧵
30
89
17
613
34,531
X-Automate + X-Scientist for closing lap in the loop 🧪
Meet X-Automate: our step toward a self-driving lab! We’re connecting @Xaira_Thera's agentic AI to the physical lab: 🦾 X-Bot operates instruments built for people. 🧠 X-Scientist coordinates sample preparation, transport, and analysis. ⚙️ 80% more plates analyzed over seven days vs. a modeled weekday 9-to-5 loading schedule. Here’s what we built, tested, and learned. 🧵
1
1
7
355
We’re betting our $5.5M seed round that the next leap in AI coding won’t come from OpenAI or Anthropic. It’ll come from a new feedback loop that learns from you. Introducing Beacon: open-source, self-improving memory for coding agents. Your sessions capture how you debug and solve problems. Today, that context gets lost and you have to re-explain things every time you switch tools. Beacon continuously distills your sessions into reusable skills across Claude Code, Cursor, Codex, and 20+ harnesses, so your next agent can learn from the last. Beacon is free and OSS 🌟 github.com/Asymptote-Labs/ag… Why should the frontier labs be the only ones winning with your sessions? You already did the work. Now let your coding agents learn from you.
329
167
141
1,572
633,028
Rex Ma retweeted
Cost and speed are the small prizes here , yet sovereignty is the big one. A pharma renting frontier intelligence is strategically exposed: access, pricing, and roadmap decided elsewhere, with its most sensitive data crossing a boundary it doesn't control. Meanwhile every major pharma already owns the one asset frontier labs can't replicate : decades of proprietary screens, assay readouts, and failed trials. Fine-tune open weights on that data and you own the whole stack: weights, inference, IP. That's AI sovereignty at company scale. The first pharma to internalize this compresses discovery timelines by years. The rest end up renting intelligence about their own molecules.
We were able to fine tune an open weight model (Qwen3.5-9B) on proprietary internal data at @coinbase, and it out performed frontier models, at much lower cost and speed, for a specialized task (fraud prevention in this case). I think we'll see more of this pattern inside companies. The frontier models are amazing generalists. But increasingly you'll see specialist models out perform on more narrow tasks, either working on teams, or by themselves. We're making it easy to fine tune models internally for our employees. We even have a skill for it in our internal harness that makes it easy to spin these up and start training them: "/fine-tune-and-serve-llm I want to fine-tune Qwen for payments risk review. help me get started" I imagine we'll have some backend services that could be replaced entirely by this new architecture.
3
8
44
4,480
Rex Ma retweeted
We’ve been quiet about protein design at @Xaira_Thera . Here’s what we’ve been building: Introducing X-Design, with results from two active drug programs that show what we think this field needs to deliver: speed to a useful lead, and access to targets that have resisted discovery. → 7 weeks from DNA synthesis to a preclinical lead on an oncology target, with the epitope and reagents already prepared. → A functional antibody antagonist against a challenging GPCR where conventional library screening AND llama immunization had failed. The bar we set for our model goes well beyond binding. The antibodies need to be human-like, functional, cross-reactive across species, and developable. Properties that have to come together in the same molecule for a program to move forward. That’s what makes these results exciting to me: designs tested in the lab, meeting the requirements of real programs in our pipeline. My bet is that the biggest impact of AI protein design will be expanding which diseases and targets we can pursue. We want to choose targets because the biology is compelling and to build the ability to make the right molecules. This is our first look at X-Design. Much more to come. See our blog: xaira.com/news/de-novo-desig…
20
24
6
182
18,477
Rex Ma retweeted
Nearly half a year of silence. We spent it studying one problem: how far RL can scale. MiMo-V2.6 is in the middle of its RL run right now. Three things we scaled: compute (~2B tokens per step, 1568 prompts × 16 rollouts, fully async), environments and harnesses (multi-task agentic RL, mixed across multiple harnesses in one run), and grader compute (agentic in-group credit assignment, with test-case and rubric-based rewards). We'll open-source the details piece by piece over the coming weeks. Streaming the run: mimo.xiaomi.com/rl/
423
974
554
9,879
3,139,265
Harnesses often get dismissed as just scaffolding, just prompt engineering, and not real research. But that couldn't be farther from the truth. The same model weights that score 30% on ARC-AGI score 95% with a better harness. So we gathered a group of researchers and founders working at the frontier to do a deep dive into the state of harnesses. We cover how we got to this point, the case for making your harness as expressive as possible, and what YC learned building an agent for every employee in the company. 00:00 - @FrancoisChauba1: Why harnesses matter 04:27 - Building an auto-researcher by accident 07:13 - A five minute history of harnesses 13:56 - Self-improving harnesses 18:35 - @sethkarten: Prime Agent, a self-improving RLM harness 21:50 - Context as an L1, L2, L3 cache 24:51 - From Turing machine to von Neumann computer 28:33 - Messaging between agents 30:04 - ARC-AGI results 33:09 - Emulator Bench and GPU kernels 37:30 - @JonSaadFalcon: OpenJarvis, personal AI on personal devices 38:26 - How far behind are local models 39:21 - The five primitives of a personal AI stack 42:47 - Letting cloud models optimize your local stack 43:53 - 800x cheaper than the cloud 45:58 - @josh__france and @jbellregan: QM, YC's agent harness for work 47:29 - A history of YC's internal agents 49:24 - OpenClaw and a fleet of 50 agents 51:04 - Pulling the brain out of the sandbox 54:43 - Letting the agent choose its own sandbox and model 57:16 - The grind tool: budgets on goals 58:50 - Agents don't understand social context
184
444
105
3,870
501,044
GPT-6 Astra, trained on ~100K+ NVIDIA Grace Blackwell NVLink72. From ChatGPT to o1 to Astra in 4 years. AGI has arrived. Congratulations @OpenAI team. 400K GPUs coming online next.
1,836
4,719
2,826
41,609
12,278,537
Rex Ma retweeted
Big news: Kimi-K3 by @Kimi_Moonshot is now #1 in the Frontend Code Arena with 1679 pts, surpassing Claude Fable 5. This is a 17-place jump from Kimi-k2.6 (#18 -> #1). In Frontend, Kimi-K3 ranked #1 in 6 of 7 domains: Brand & Marketing, Reference-Based Design, Data & Analytics, Consumer Product, Simulations, and Content Creation Tools, landing #2 only in Gaming behind Fable 5. The full model weights will be released by July 27. Congrats to the @Kimi_Moonshot team on this major milestone!
1,065
3,886
3,172
26,142
20,292,089
More AI investment should go to Canada!
1
8
265
Rex Ma retweeted
With our internal coding benchmark, we're able to confidently introduce open-weight models into our AI code reviewer w/o degrading code quality. Have the frontier model (Fable) to the hardest work, delegate lower-level work to Kimi K2.6 Better quality, cheaper cost.
Replying to @AIatDoorDash
Because of DashBench, we’re able to quickly discern which model combinations yield the best results and at the best cost. For example, with DashBench we’ve seen Kimi K2.6 + Fable 5 vastly outperform our current Sonnet 4.6 + Opus 4.8 harness at a cheaper cost. Having our own benchmark allows us to build confidence in leveraging the frontier intelligence and open-weight models without compromising on enterprise outcomes.
36
79
32
761
568,381