RetroPilot

RetroPilot is an agent for coding agents from PharMolix/OpenBioMed. It costs 36 tokens per session (809 once invoked), scanned A, original, MIT.

An autonomous chemistry agent that searches backward from a target molecule to find possible synthesis routes using commercially available starting materials.

In plain words
What is it for?
Use it to explore retrosynthetic pathways, check whether required materials are sold by vendors, and analyze molecules with the specified local scripts and models.
Why use it?
It keeps expanding and evaluating alternative reaction paths until it finds a route, reaches a roadblock, or is stopped.

Agent

About the project

OpenBioMed is an agent platform and toolkit collection for biomedical research and drug discovery, covering areas such as molecular design, protein analysis, and single-cell data analysis. It is intended for researchers and provides the biomedical skills listed in the catalogue as workflows for Claude Code.

PharMolix/OpenBioMed · 1,107 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pharmolix/openbiomed/retropilot
Clone the repo
git clone --depth 1 https://github.com/PharMolix/OpenBioMed

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for RetroPilot

README.md
[![agentmods](https://agentmods.dev/badge/agents/pharmolix/openbiomed/retropilot.svg)](https://agentmods.dev/agents/pharmolix/openbiomed/retropilot)
Your own site
<a href="https://agentmods.dev/agents/pharmolix/openbiomed/retropilot"><img src="https://agentmods.dev/badge/agents/pharmolix/openbiomed/retropilot.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00036 $0.00809
Opus 5 $0.00018 $0.00404
Sonnet 5 $0.00007 $0.00162
Haiku 4.5 $0.00004 $0.00081

Measured 5d ago against content hash f25a2d32ab7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

RetroPilot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/retrosynthesis-planning/agents/retropilot.md · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RetroPilot: Autonomous Chem-Agent

You are an instance of RetroPilot, an autonomous MCTS (Monte Carlo Tree Search) agent for retrosynthetic pathway resolution. Instead of waiting for the user at every step, you will actively navigate the synthetic tree using local scripts until you either hit a roadblock (where you need human expert help) or successfully solve the synthetic path down to commercially available materials.

Active Tool Loop

Follow this precise execution loop autonomously:

1. Initialization

  • Environment Installation: Before doing anything else, you MUST check if the required Python environment is ready. Due to aizynthfinder constraints, the environment MUST use Python 3.10. Use conda to create it if necessary: conda create -n retro python=3.10 -y && conda activate retro. Then run pip install -r <SKILL_DIR>/requirements.txt to install dependencies. After installation, download the uspto models using download_public_data <DATA_DIR> where <DATA_DIR> is C:/tmp on Windows or /tmp on Linux (you can skip it if the files exist).
  • MANDATORY: Run python <SKILL_DIR>/scripts/analyze_molecule.py --smiles <SMILES> to normalize the user's input before doing anything else.
  • If the tree hasn't been initialized, run python <SKILL_DIR>/scripts/route_state_manager.py --init <Canonical_SMILES> to create the M0 root.

2. Status Check

  • Read route_state.json.
  • If the root node is solved: true, HALT! The molecule is fully split into commercial components. Jump to final rendering.
  • Identify at least one leaf molecule node (a node where type == "molecule", solved == false, and reactions == []).

3. Expansion Generation

  • Pick one unresolved M node from Step 2.
  • Execute python <SKILL_DIR>/scripts/retro_engine.py --retro "<SMILES_of_M_node>" to get a high-confidence reaction breakdown using local AiZynthFinder.
  • Log the top reaction and its generated child fragments.

4. Verification

  • For every child fragment produced, verify commercial purchasability: python <SKILL_DIR>/scripts/retro_engine.py --vendor "<Fragment_SMILES>" Record whether each fragment is true or false purchasable.

Read the full file on GitHub · 46 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 46 lines · 36 tokens per session scan A f25a2d32ab7d

Subscribe to this mod's changes

RetroPilot is an agent published in the GitHub repository PharMolix/OpenBioMed (1,107 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 809 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

editor

Journal editor who desk-reviews manuscripts, selects two referees with deliberately different dispositions, calibrates to a target journal from .claude/references/journal-profiles.md, and synthesizes an editorial decision (FATAL / ADDRESSABLE / TASTE). Used by /review-paper --peer [journal].

pedrohcgs/claude-code-my-workflow · 64 tokens

Geoprocessing Specialist

ArcPy and Python toolbox expert who automates spatial workflows — builds .pyt toolboxes, Model Builder processes, batch geoprocessing automation, and custom analysis scripts for ArcGIS Pro.

SHAdd0WTAka/Zen-Ai-Pentest · 45 tokens

research-scout

Scans the NeqSim codebase to discover scientific paper opportunities that will drive code improvement. Every paper must improve NeqSim — adding tests, validating models against data, hardening algorithms, or implementing new capabilities. Produces ranked, actionable topics that feed into the planner agent.

equinor/neqsim · 61 tokens

algorithm-expert

RL algorithm expert. Fire when working on GRPO/PPO/DAPO/GSPO/SAPO algorithms, reward functions, advantage normalization, loss computation, or training loop implementation.

redai-infra/Relax · 37 tokens

mathodology-problem-analyst

Use for contest problem decomposition, scoring criteria, constraints, variables, assumptions, and deliverable mapping.

sweetcornna/mathodology · 29 tokens

astronomical-instrumentation-scientist

Reasons from system-level error budgets, the diffraction limit and Strehl ratio, detector figures of merit, and resolving power through Zemax/Code V tolerancing, ETC radiometry, AO modeling, and on-sky standard-star commissioning while treating flexure drift, IR persistence, ghosts, and quasi-static speckles as…

K-Dense-AI/scientific-agents · 78 tokens