SciEvidence Papers

PAPERCommunity contribution

  • Research Article
  • Synthetic Biology
  • Nature Biotechnology

Programmable functional RNA design with a virtual scientist

Han Huang, Tianqing Zhang, Liang Hong, Ziqian Lin, Dongchen He, Jiuming Wang, Tian-Ying Wu, Huimin Li, Da Han, Le Yu, Jiyue Jiang, Yimin Fan, Yanruisheng Shao, Irwin King, Pengan Chen, Chun Kit Kwok, James J. Collins, Yu Li

nature biotechnology10.1038/s41587-026-03362-3View paper

Abstract

Programmable functional RNA design is central to synthetic biology and therapeutics, yet both human expertise and existing computational methods struggle to directly program the three-dimensional structures that govern function. Here we introduce RhoAgent, an agentic system that designs RNA candidates and iteratively refines them using experimental feedback. RhoAgent uses RDiff, a diffusion-based generative tool conditioned on base interactions and functional motifs. First, we validate RhoAgent by generating diverse and active ribozymes with only 40–70% sequence similarity to their wild-type counterparts. Second, we enhance the cleavage efficiency of the structurally uncharacterized hovlinc ribozyme by up to sixfold relative to the human-expert-truncated construct. Furthermore, RhoAgent generates a fluorogenic aptamer scaffold that improves fluorescence by 230% relative to the wild-type aptamer. Finally, we design three-dimensional scaffolds that spatially position two distinct functional cores, creating aptamer-based Förster resonance energy transfer systems. This design overcomes a key barrier in compositional RNA design by preserving the binding activities of both components.

RNA molecules have emerged as versatile, programmable tools for molecular engineering, functioning as catalysts, sensors and regulators across biomedicine and synthetic biology1,2,3,4,5,6. The specific functions of these molecules are largely determined by their precise three-dimensional (3D) structures7. This direct structure–function coupling makes RNA an ideal platform for rational molecular design: by programming tertiary structure, one could theoretically engineer desired molecular behaviors. However, realizing this potential requires a level of precision in controlling 3D geometry that has so far remained largely inaccessible to existing approaches.

Despite the importance of tertiary structure for function, computational RNA design has predominantly prioritized sequence optimization8, secondary-structure-based design9,10 or hybrid strategies combining both modalities11,12. These approaches inherently overlook the intricate tertiary contacts, including noncanonical pairs, base stacking and long-range interactions, that stabilize the global fold and constitute the functional core13,14,15. Traditional experimental protocols have sought to circumvent these limitations through iterative truncation16,17, mutagenesis18 and selection approaches19,20 that use expert knowledge of conserved motifs and known essential nucleotides. While capable of identifying functional variants, these approaches are resource-intensive. Moreover, truncation and mutagenesis are confined to the evolutionary neighborhoods of wild-type (WT) sequences, limiting exploration to a fraction of the structure landscape. Even emerging computational tools that incorporate 3D constraints remain restricted in scope. For instance, fragment-assembly methods are bound by library availability and lack of granular geometric control21, while deep learning models typically focus on fixed-backbone sequence design rather than generative backbone design22. Ultimately, neither experimental nor computational strategies currently achieve programmable control, defined as the ability to specify and manipulate the precise 3D geometries that govern RNA function. This gap creates fundamental barriers to achieving fine-grained geometric control and prevents the precise scaffolding of complex functional motifs23,24,25. Overcoming these limitations to program RNA tertiary structures remains a core challenge in molecular engineering.

Recently, generative diffusion models have transformed protein engineering, capturing structure distributions to design functional molecules ranging from binders to enzymes26,27,28. However, extending these approaches from proteins to RNA poses substantial challenges. Unlike the relatively rigid protein backbone, the RNA backbone is highly flexible and supports diverse noncanonical base interactions. Moreover, RNA shows tightly coupled sequence–structure–function relationships29,30,31. These intrinsic complexities make it difficult to model the precise geometric distributions underlying RNA. Furthermore, achieving functional activity requires fine-grained geometric control that bridges local base interactions and global architecture. More fundamentally, current generative paradigms operate in a single-shot fashion and lack the iterative capabilities needed for sophisticated engineering objectives.

Concurrently, the concept of the AI scientist has emerged as a transformative approach to autonomous scientific discovery32,33,34. By empowering large language models (LLMs) to act as autonomous agents that formulate hypotheses, execute computational workflows and interpret results, these systems mark a shift from static single-step prediction to dynamic, multi-round problem-solving. Recent frameworks have shown utility in tasks ranging from automated optimization of CRISPR guide RNAs33 to repurposing small-molecule drugs35. While these studies have reported promising results approaching or matching human-expert performance, designing new biomolecules that surpass human experts using agentic systems remains challenging. We attribute this to three fundamental challenges. First, a model at the human-expert level should effectively integrate domain-specific prior knowledge into the design logic, such as biophysical rules and functional constraints essential for valid molecular construction36. Second, standard dialogue-based prompting alone is insufficient for comprehensive reasoning about molecular geometry and design quality37. LLMs require specialized computational tools to interpret structural constraints and evaluate sequence–function relationships, but current tools lack the flexibility and context awareness for precise RNA design. This limitation motivates the development of new tools for complex biological tasks. Third, human experts typically explore and refine RNA designs through iterative experiments, whereas previous agentic methods primarily automate static pipelines. This gap calls for the development of autonomous agents that can independently assess their performance based on experimental feedback and iteratively improve their strategies. Consequently, to achieve programmable RNA design under geometric control, we shall adopt a bottom-up strategy that develops an agentic framework along with specialized, foundational tools for molecular reasoning.

Here, in this Article, we introduce RhoAgent, a virtual scientist for programmable RNA design. This work integrates specialized RNA design tools with an autonomous agent system that orchestrates them. At the foundation of this system lies a cascaded diffusion-based generative model (RDiff) developed to provide precise control over design constraints. This model extends beyond secondary structure to enable RNA design conditioned on precise base interactions and functional 3D motif scaffolding. Building on this core generative tool, RhoAgent operates as an autonomous system capable of planning tasks, executing design tools, performing self-evaluations and refining strategies adaptively through closed-loop experimental feedback. By harnessing these capabilities, RhoAgent establishes an RNA programming platform to accelerate the discovery of functional RNA across diverse applications. RhoAgent successfully designed diverse ribozymes with 40–70% sequence similarity to WT variants and achieved up to sixfold higher cleavage efficiency of the HOV (hovlinc) ribozyme, which has no reference 3D structure, compared with the expert construct38. Furthermore, the agent generated fluorogenic aptamer scaffolds that improved fluorescence relative to the WT by 230% and also engineered 14 scaffolds capable of spatially positioning distinct functional cores for aptamer-based Förster resonance energy transfer (FRET) systems39. These results show that RhoAgent can generate high-performance functional RNAs with substantial sequence diversity and engineer complex structural scaffolds for precise functional integration.

RhoAgent acts as a virtual scientist for autonomous RNA design

To address the limitations of RNA design tools and enable programmable RNA design by autonomous agents, we first developed RDiff, a cascaded diffusion model that generates RNA tertiary structures and sequences with fine-grained control through multiple conditioning signals (Fig. 1b ). RDiff operates in two stages. First, it generates RNA backbone frames based on input constraints. This backbone then serves as the condition for RNA sequence design via diffusion models, generating diverse sequences and achieving RNA programming. Notably, unlike previous approaches limited to secondary structure constraints or fixed tertiary scaffolds, RDiff enables specifying multiscale geometric features, including secondary structure, base interactions and 3D functional motifs extracted from experimental structures, therefore achieving RNA programming based on hierarchical structural constraints.

Fig. 1: Programmable functional RNA design with a virtual scientist. a , RhoAgent overview. RhoAgent represents an autonomous system with a dedicated diffusion-based generative tool, RDiff. The agentic system uses a planner to generate step-by-step instructions and an executor to coordinate RDiff with evaluation tools and incorporate experimental feedback. Programmable control signals, including base interaction, 3D motif and sequence motif, constrain the RNA design space for function preservation, optimization and integrated design tasks. b , Diffusion-based RNA design tool, RDiff. It is trained on a dataset of filtered PDB structures and predicted structures. A cascaded diffusion process first generates backbone frames of key atoms (C1’, C4’, N1/N9) from X t to X 0 , after which a second diffusion designs the nucleotide sequence to build the final all-atom structure. The structure design model is conditioned on base interactions and 3D functional motifs. The sequence design model, using geometric graph neural networks and diffusion transformers, can be constrained to preserve specific sequence motifs. C1’ and C4’, ribose carbon atoms; N1 and N9, glycosidic nitrogen atoms in pyrimidine and purine bases, respectively. GNN, graph neural network; repr., representation; LN, layer normalization.
Fig. 1: Programmable functional RNA design with a virtual scientist. a , RhoAgent overview. RhoAgent represents an autonomous system with a dedicated diffusion-based generative tool, RDiff. The agentic system uses a planner to generate step-by-step instructions and an executor to coordinate RDiff with evaluation tools and incorporate experimental feedback. Programmable control signals, including base interaction, 3D motif and sequence motif, constrain the RNA design space for function preservation, optimization and integrated design tasks. b , Diffusion-based RNA design tool, RDiff. It is trained on a dataset of filtered PDB structures and predicted structures. A cascaded diffusion process first generates backbone frames of key atoms (C1’, C4’, N1/N9) from X t to X 0 , after which a second diffusion designs the nucleotide sequence to build the final all-atom structure. The structure design model is conditioned on base interactions and 3D functional motifs. The sequence design model, using geometric graph neural networks and diffusion transformers, can be constrained to preserve specific sequence motifs. C1’ and C4’, ribose carbon atoms; N1 and N9, glycosidic nitrogen atoms in pyrimidine and purine bases, respectively. GNN, graph neural network; repr., representation; LN, layer normalization.

Building upon this generative foundation tool, we developed RhoAgent, a virtual scientist (Fig. 1a and Supplementary Figs. 1 – 3 ) that comprises four core modules to achieve goal-directed biomolecular engineering. The planner module decomposes complex design objectives from natural-language-based user prompts into structured, step-by-step strategies, extracting the constraints that translate user-specified functional requirements into actionable design parameters. Its control over diverse constraints allows translating abstract functional requirements into concrete structural constraints that guide the generation tool toward functional solutions. It also incorporates prior domain knowledge encoded in the prompt template, enabling the agent to perform RNA design in a biologically meaningful way. The executor module coordinates RDiff with a suite of computational tools to prioritize candidates. After each step execution, a critic agent automatically evaluates the intermediate results with various tools and determines whether to continue or iterate this step, acting as a quality-control step. The memory module records wet-lab experimental feedback in the dialogue history. The agent uses this feedback to guide candidate generation and prioritization in subsequent design rounds.

RDiff empowers RhoAgent for programmable RNA generation

We computationally evaluated the performance of our dedicated RNA design tool, RDiff. We first assessed the model’s unconditional generation performance by generating 200 RNA backbones at each length interval from 50 to 350 nucleotides (nt) without any input constraints. For each backbone, we designed the corresponding sequences and then used 3D structure prediction tools (for example, broadly applicable tools including AlphaFold340, Boltz-241 and Protenix42 and representative RNA-focused tools including RhoFold+43, trRosettaRNA44 and DRfold245) to predict the structures from these designed sequences. We then evaluated the structural self-consistency template modeling score (sc-TM) of the designs. The generated backbones show agreement with their corresponding designs’ structure predictions across tested lengths (Fig. 2a and Supplementary Figs. 4 and 5). Notably, RDiff maintains robust performance even for longer RNAs, achieving an sc-TM of 0.41 for sequences of 200 nt, which highlights its scalability beyond short RNAs (Fig. 2a). We further evaluated the similarity between the designed structures and the training data. As expected, self-consistency decreases to below 0.4 as sequence length exceeds 250 nt (Fig. 2b). Case studies support these observations, demonstrating that RDiff achieves good self-consistency while preserving structural novelty (Fig. 2c and Supplementary Fig. 6). Predicted minimum free energy (MFE) distributions were consistent between target RNAs and RDiff-generated sequences (Supplementary Fig. 7).

Fig. 2: In silico validation of RDiff for RNA design. a , Self-consistency analysis comparing unconditional RDiff-generated backbones and AlphaFold3 predictions of the designed sequences across varying lengths. The number of samples with valid geometry is indicated (out of 200 initial samples). Box plots show medians (center lines) and the 25th–75th percentiles (boxes). Whiskers extend to the most extreme observations within 1.5 times the interquartile range (IQR) of the box edges; points beyond the whiskers indicate outliers. b , Novelty assessment showing the relationship between backbone self-consistency and maximum structural similarity to the training set. c , Structural superposition of generated structures and corresponding AlphaFold3 predictions for three representative samples (Uncond-1, -2 and -3) of different lengths. d , Preservation of spatial constraints for base interactions. Scatterplots compare average nucleotide pairwise distances in generated backbones to native structures across three constraint types. e , Visualizations of two representative cases from d . f , Decomposition of local structural quality by RNA motif type, comparing RDiff with a variant constrained only by WC pairs (RDiff-WC). g , Benchmarking secondary structure consistency against generalist LLMs and biomedical agents. Violin plots display base-pair recall for the top five designs across 33 RNA family clans. Inset box plots use the same median, box and whisker definitions as in a . Mean recall values are annotated on the right. Comparisons with RhoAgent used two-sided Wilcoxon rank-sum tests without adjustment for multiple comparisons. The P values were 2.97 × 10 −56 (Qwen), 2.88 × 10 −56 (DeepSeek), 2.92 × 10 −56 (GPT), 7.58 × 10 −57 (Gemini) and 1.17 × 10 −9 (Biomni). *** P < 0.001. h , Generalizability of secondary structure consistency across 33 RNA family clans with varying lengths and base-pair counts, and a representative design for Clan CL00010. Visualization shows the input consensus secondary structure versus the prediction, alongside a 3D superposition of the designed structure with the refolded structure. max-TM, maximum TM-score to the training set.
Fig. 2: In silico validation of RDiff for RNA design. a , Self-consistency analysis comparing unconditional RDiff-generated backbones and AlphaFold3 predictions of the designed sequences across varying lengths. The number of samples with valid geometry is indicated (out of 200 initial samples). Box plots show medians (center lines) and the 25th–75th percentiles (boxes). Whiskers extend to the most extreme observations within 1.5 times the interquartile range (IQR) of the box edges; points beyond the whiskers indicate outliers. b , Novelty assessment showing the relationship between backbone self-consistency and maximum structural similarity to the training set. c , Structural superposition of generated structures and corresponding AlphaFold3 predictions for three representative samples (Uncond-1, -2 and -3) of different lengths. d , Preservation of spatial constraints for base interactions. Scatterplots compare average nucleotide pairwise distances in generated backbones to native structures across three constraint types. e , Visualizations of two representative cases from d . f , Decomposition of local structural quality by RNA motif type, comparing RDiff with a variant constrained only by WC pairs (RDiff-WC). g , Benchmarking secondary structure consistency against generalist LLMs and biomedical agents. Violin plots display base-pair recall for the top five designs across 33 RNA family clans. Inset box plots use the same median, box and whisker definitions as in a . Mean recall values are annotated on the right. Comparisons with RhoAgent used two-sided Wilcoxon rank-sum tests without adjustment for multiple comparisons. The P values were 2.97 × 10 −56 (Qwen), 2.88 × 10 −56 (DeepSeek), 2.92 × 10 −56 (GPT), 7.58 × 10 −57 (Gemini) and 1.17 × 10 −9 (Biomni). *** P < 0.001. h , Generalizability of secondary structure consistency across 33 RNA family clans with varying lengths and base-pair counts, and a representative design for Clan CL00010. Visualization shows the input consensus secondary structure versus the prediction, alongside a 3D superposition of the designed structure with the refolded structure. max-TM, maximum TM-score to the training set.

To further validate our model’s ability to design structures by following input constraints, we generated backbone structures conditioned on various base interactions. The base interactions were extracted from a time-censored test set of RNA 3D structures. We used binary indicators at the nucleotide level for three types of base-interaction constraints, namely canonical Watson–Crick (WC), non-Watson–Crick (NWC) and stacking interactions. The designed sequences were subsequently refolded, from which base interactions were extracted with Dissecting the Spatial Structure of RNA (DSSR)46 and compared against the input to evaluate the ratio of recovered base pairs. The RDiff designs correctly recover the input base interactions, marked by the agreement between the pairwise base distance distributions of the generated and native structures (Fig. 2d). For WC, NWC and stacking interactions, the mean distance differences between the designed and the native structures are 0.12 Å, 0.53 Å and 0.10 Å, respectively, suggesting that the generated and native structures are consistent across different base-interaction constraint types (Fig. 2d). Case studies reveal that the model can generate overall valid designs with relatively correct structures aligned to the native structure that supplies the constraint (Fig. 2e and Supplementary Fig. 8). We assessed RDiff’s performance across diverse structural motifs, such as pseudoknots, multiloops and dangling ends. We tested the generated backbone’s local distance difference test (LDDT) scores against these motifs in the native structure. When only WC interactions are used as constraints, the model achieves an average LDDT of 0.70 (Fig. 2f). Conditioning on all three types of base interactions further increases the average LDDT for these 3D motifs to 0.76, suggesting that incorporating multiple constraint channels in the model input is beneficial for improving performance. RDiff recovered base pairs more accurately than baseline methods, although noncanonical pairs remained challenging (Supplementary Fig. 9).

Having validated RDiff’s performance, we integrated it into RhoAgent. To benchmark our agent’s performance against existing agentic approaches, we generated sequences for a representative test set comprising consensus RNA family clans, selected to cover most of the annotated RNA space. We then calculated the mean WC base-pair recall for the top five designs across these families for RhoAgent, general-purpose LLMs and the biomedical agent Biomni47. Our analysis reveals a clear distinction in model capabilities (Fig. 2g and Supplementary Figs. 10 and 11). General-purpose LLMs perform poorly in designing sequences with correct base pairing to the constraint, showing their fundamental inability to tackle RNA design problems without access to domain-specific tools. Biomni represents a step forward by involving external scripts and software, achieving moderate performance (0.76); however, it remains constrained by a generalized workflow and limited tool set, leading to high variance and complete failure on some complex targets. In comparison, RhoAgent achieves a 0.93 average recall for the WC base pairs and shows generally consistent performance across sequence lengths (Fig. 2h). We further analyzed a representative case from a ribozyme clan (Clan CL00010), which shows a median performance across the 33 assessed clans. Our designed structure achieved high consistency with the input WC base-pair constraints. Furthermore, for the sequence design based on this generated backbone, its predicted 3D structure is well aligned with the designed backbone, achieving a self-consistency TM-score of 0.59 (Fig. 2h). Ablation studies support the contributions of individual components (Supplementary Fig. 12). RDiff also supports efficient, large-scale RNA generation (Supplementary Fig. 13).

RhoAgent autonomously designs functional ribozymes

We next evaluated RhoAgent’s precise structural control ability in the design of functional RNA. To validate programmable RNA design capabilities, ribozymes serve as ideal testbeds owing to their strict structure–function relationships, where catalytic activity depends critically on the precise 3D arrangement of nucleotides within the active site. This sensitivity makes ribozymes demanding targets: successful designs must not only adopt stable tertiary structures but also position catalytic residues with near-atomic precision. Particularly, the twister-P3 ribozyme (Rfam family RF03154) structure incorporates two pseudoknots that show long-range tertiary interactions, increasing topological complexity and making it suitable for testing the agent’s capacity to handle intricate structural constraints.

We tasked RhoAgent with preserving the twister (TW) ribozyme function while showing sequence diversity, a challenge that requires precise recovery of catalytic geometries in the design candidates. We tested two design modes for RhoAgent, both conditioned on the consensus secondary structure of the twister-P3 family (Fig. 3a and Supplementary Tables 1 and 2). In mode 1, RhoAgent constrained the catalytic core sequence to a specified motif; in mode 2, it partially relaxed this constraint to enable exploratory design. Experimental validation reveals that all three tested variants in mode 1 showed detectable cleavage activity, with sequence identities to WT ranging from only 40% to 50% (Fig. 3b,c). TW-1 shows a slight improvement in cleavage activity compared with WT, suggesting RhoAgent’s potential to generate design candidates that match or exceed WT sequences. Beyond strict sequence motif conservation, RhoAgent’s exploratory design capability (mode 2) enables the discovery of alternative functional solutions. This proves to be a more challenging task, as none of the designs from the existing design method22 and LLM method48 show any activity (Fig. 3b,c and Supplementary Table 3). In comparison, one of the four RhoAgent designs showed detectable activity in this mode (Fig. 3b,c). TW-4, the active mode 2 design, shows close structural agreement with an experimental structure from this family (root mean square deviation, RMSD 2.99 Å; PDB 4QJH), despite low sequence similarity to WT (0.56) and other family members (average 0.50; Fig. 3d and Supplementary Fig. 14). It also alters two of the six nucleotides in the highly conserved catalytic pocket (Fig. 3e). Additional experimental validations of RhoAgent’s designs on other ribozymes further confirm their novelty and cleavage efficiency (Supplementary Figs. 15 and 16 and Table 4).

Fig. 3: Autonomous design of functional ribozymes by RhoAgent. a , Schematic of RhoAgent integrating secondary structure requirements and catalytic core priors. The agent uses two design strategies: core-constrained design (mode 1; preserving essential nucleotides) and exploratory design (mode 2; navigating expanded sequence space). Paired (P) and pseudoknot (PK) regions are labeled and indexed. b , Cleaved fraction (bars) of the designed twister-P3 ribozymes and the WT, with sequence identity to WT shown as stars. Bars indicate means and error bars indicate s.d. ( n = 3 independent experiments per ribozyme). Open circles show individual values. c , Gel image of the designed twister-P3 ribozymes. The WT ribozyme lane is marked red. d , Structural superposition of representative design TW-4 with the two-chain experimental structure (PDB 4QJH). e , Analysis of catalytic core mutations. Left: sequence logo of six key residues (numbered according to TW-4), showing that TW-4 mutates two highly conserved nucleotides (arrows: 16 A → C, 17 A → U). Right: close-up view of the reference catalytic pocket (PDB 4QJH), illustrating the atomic-level spatial arrangement of these residues. f , Schematic of RhoAgent superimposing target-derived subsequence constraints onto structural requirements and catalytic priors. g , Cleaved fraction of designed CPEB3 and HHR ribozymes conditioned on target subsequences. Circles (CPEB3) and triangles (HHR) indicate mean cleaved fractions, with horizontal error bars representing s.d. ( n = 3 independent experiments per ribozyme). Red dashed lines mark the corresponding WT means. Cleavage sites are labeled on the y -axis, alongside canonical cleavage site motifs. h , i , Gel analysis of WT and designed CPEB3 ( h ) and HHR ( i ) ribozymes. Each panel shows one of the three independent experiments quantified in g . Samples were separated by denaturing polyacrylamide and urea gel electrophoresis at 300 V for 30–35 min. The slight mobility offsets among cleaved products from different samples are probably owing to residual secondary structures, consistent with sequence and structural similarities. j , t-distributed stochastic neighbor embedding (t-SNE) visualization of sequence space comparing RhoAgent designs with natural CPEB3 variants (RF00622 family). The plot highlights that RhoAgent explores regions distinct from known family sequences. k , Superposition of the generated structure of CP-01 with its predicted structure.
Fig. 3: Autonomous design of functional ribozymes by RhoAgent. a , Schematic of RhoAgent integrating secondary structure requirements and catalytic core priors. The agent uses two design strategies: core-constrained design (mode 1; preserving essential nucleotides) and exploratory design (mode 2; navigating expanded sequence space). Paired (P) and pseudoknot (PK) regions are labeled and indexed. b , Cleaved fraction (bars) of the designed twister-P3 ribozymes and the WT, with sequence identity to WT shown as stars. Bars indicate means and error bars indicate s.d. ( n = 3 independent experiments per ribozyme). Open circles show individual values. c , Gel image of the designed twister-P3 ribozymes. The WT ribozyme lane is marked red. d , Structural superposition of representative design TW-4 with the two-chain experimental structure (PDB 4QJH). e , Analysis of catalytic core mutations. Left: sequence logo of six key residues (numbered according to TW-4), showing that TW-4 mutates two highly conserved nucleotides (arrows: 16 A → C, 17 A → U). Right: close-up view of the reference catalytic pocket (PDB 4QJH), illustrating the atomic-level spatial arrangement of these residues. f , Schematic of RhoAgent superimposing target-derived subsequence constraints onto structural requirements and catalytic priors. g , Cleaved fraction of designed CPEB3 and HHR ribozymes conditioned on target subsequences. Circles (CPEB3) and triangles (HHR) indicate mean cleaved fractions, with horizontal error bars representing s.d. ( n = 3 independent experiments per ribozyme). Red dashed lines mark the corresponding WT means. Cleavage sites are labeled on the y -axis, alongside canonical cleavage site motifs. h , i , Gel analysis of WT and designed CPEB3 ( h ) and HHR ( i ) ribozymes. Each panel shows one of the three independent experiments quantified in g . Samples were separated by denaturing polyacrylamide and urea gel electrophoresis at 300 V for 30–35 min. The slight mobility offsets among cleaved products from different samples are probably owing to residual secondary structures, consistent with sequence and structural similarities. j , t-distributed stochastic neighbor embedding (t-SNE) visualization of sequence space comparing RhoAgent designs with natural CPEB3 variants (RF00622 family). The plot highlights that RhoAgent explores regions distinct from known family sequences. k , Superposition of the generated structure of CP-01 with its predicted structure.

While naturally occurring self-cleaving ribozymes typically function in cis-form, trans-acting ribozymes feature separate catalytic and substrate domains, enabling them to recognize and cleave user-specified target sequences49. Subsequence-conditioned design holds potential for transferring to programmable trans-acting cleavage systems50. We investigated whether RhoAgent could design active ribozymes when conditioned on user-specified target sequence segments (Fig. 3f). This adds a further layer of complexity to base-interaction-conditioned design, as the agent should satisfy both geometric requirements for catalytic activity and exact sequence specifications for substrate recognition.

We applied RhoAgent to design two different ribozyme families, CPEB3 and hammerhead (HHR), representing different structural complexity and mechanisms (Supplementary Tables 5 and 6 ; additional twister-P3 designs are provided in Supplementary Table 7 ). Several RhoAgent designs cleaving at various sites (including ↓GG for CPEB3 ribozyme; UA↓ and UC↓ for HHR ribozyme) show improved cleavage activity compared with WT, showing that RhoAgent successfully incorporates user-specified subsequence constraints along with secondary structure requirements for functional ribozyme design (Fig. 3g–i and Supplementary Fig. 17 ). We observed a 13% improvement in cleaved fraction for designed CPEB3 candidates compared with WT. These designs are not simply mimicking the sequences from the known family (Supplementary Fig. 14 ). Clustering analysis reveals that RhoAgent’s designs are distinct from seed sequences of the corresponding RNA family (RF00622; Fig. 3j ). CP-01 shows the greatest improvement in cleavage activity over WT despite low sequence similarity to the RF00622 and WT cluster. Its predicted structure has a self-consistency RMSD of 3.755 Å and TM-score of 0.431 (Fig. 3k ). This geometry control capability is supported by SHAPE probing experiments, which show that the designs’ structural profiles are largely consistent with the input base-pairing pattern (Extended Data Fig. 1a,b ). Secondary-structure-based methods for CPEB3 and twister ribozyme yielded low cleavage fractions with the same secondary structure constraint and fixed functional-core motif (Supplementary Fig. 18 and Tables 8 and 9 ).

RhoAgent outperforms the expert-constructed HOV ribozyme via iterative design

We next challenged RhoAgent to autonomously design and optimize ribozymes with limited prior knowledge. We selected HOV, a recently discovered self-cleaving ribozyme that lacks an experimentally determined tertiary structure and whose mechanism remains incompletely understood38. An 83-nt expert construct, developed through systematic deletion assays to identify the minimal functional core38, served as RhoAgent’s starting sequence for designing new truncated HOV variants.

Given the absence of experimental structure information, RhoAgent initiated its design workflow by using structure prediction tools to predict the tertiary structure of the expert construct sequence and executing RNA design tools (Fig. 4a and Supplementary Fig. 19 and Table 10 ). Experimental characterization at pH 7.5 reveals that all round 1 designs show activity, with the top variant (HOV-08) achieving over fivefold higher cleavage efficiency relative to the expert construct (Fig. 4b ). Following wet-lab validation, rather than simply selecting high-performing sequences, RhoAgent leveraged the diffusion model’s advantage: the ability to add controlled noise to successful candidates and resample the design space in their vicinity. The executor initialized round 2 generation by introducing Gaussian noise to the top-performing round 1 sequences and applying the reverse diffusion process to generate variants that preserved tertiary backbones while exploring alternative sequence solutions. Round 2 tested ten second-generation candidates, and five candidates achieved over fivefold improvement (Fig. 4c ). The observed mean cleaved fraction of the top 5 variants was 12% higher in round 2 than in round 1 (Fig. 4d ). The increased fraction of highly active candidates in round 2 indicates that our iterative refinement with experimental feedback can enrich subsequent design rounds toward enhanced functional activity. Additional multi-seed and ablation analyses also support the agent’s capability and contribution in terms of iterative refinement based on experimental feedback (Supplementary Figs. 20 and 21 and Tables 11 and 12 ). Sequence analysis revealed that normalized edit distances range from 0.2 to 0.6, while pairwise sequence identities to the expert construct span 39.8% to 62.7%, showing that successful variants are not simply minor perturbations of the given sequence but represent genuinely alternative solutions (Fig. 4e ). This sequence diversity emerges despite all designs maintaining the core secondary structure topology.

Fig. 4: Iterative design and optimization of HOV ribozymes by RhoAgent. a , Schematic of the design process for the structurally uncharacterized HOV ribozyme. Left: derivation of the 83-nt expert construct (HOV expert) from functional assays identifying key regions and the cleavage site, providing prior knowledge for RhoAgent. Middle: RhoAgent infers potential catalytic pockets and generates round 1 candidates. Right: round 2 optimization via resampling from top-performing round 1 candidates, incorporating wet-lab feedback. b , c , Cleaved fraction of the designed HOV ribozymes and the expert construct in round 1 ( b ) and round 2 ( c ). d , Activity comparison of the top five variants from each round, showing a 12% increase in mean cleaved fraction for round 2 ( P = 0.032; one-sided Welch’s t -test). Each diamond shows the mean ± s.d. of three independent experiments for one variant. * P < 0.05. The gel image above displays round 2 candidates. Gel image was obtained through denaturing polyacrylamide and urea gel electrophoresis under 300 V for 30–35 min; a 60 °C water bath was implemented during electrophoresis to prevent homo-oligomer bands in some samples owing to the potential intermolecular kissing-loop binding which may notably affect the quantification of cleavage efficiency. e , Sequence difference tree rooted at HOV expert, illustrating the divergence of variants along the edit distance axis; sequence identity values are annotated at each node. f , Cleaved fraction of representative variants before adding Mg 2+ (pH 7.5). The red dashed line indicates HOV expert. g , Activity gain of designed variants over HOV expert at pH 7.5 ( y -axis) versus pH 8.5 ( x -axis). The distribution above the diagonal shows greater improvements under near-physiological conditions. Cleaved fraction data in b – d , f and g are mean ± s.d. of n = 3 independent experiments per design ( n = 6 for HOV expert).
Fig. 4: Iterative design and optimization of HOV ribozymes by RhoAgent. a , Schematic of the design process for the structurally uncharacterized HOV ribozyme. Left: derivation of the 83-nt expert construct (HOV expert) from functional assays identifying key regions and the cleavage site, providing prior knowledge for RhoAgent. Middle: RhoAgent infers potential catalytic pockets and generates round 1 candidates. Right: round 2 optimization via resampling from top-performing round 1 candidates, incorporating wet-lab feedback. b , c , Cleaved fraction of the designed HOV ribozymes and the expert construct in round 1 ( b ) and round 2 ( c ). d , Activity comparison of the top five variants from each round, showing a 12% increase in mean cleaved fraction for round 2 ( P = 0.032; one-sided Welch’s t -test). Each diamond shows the mean ± s.d. of three independent experiments for one variant. * P < 0.05. The gel image above displays round 2 candidates. Gel image was obtained through denaturing polyacrylamide and urea gel electrophoresis under 300 V for 30–35 min; a 60 °C water bath was implemented during electrophoresis to prevent homo-oligomer bands in some samples owing to the potential intermolecular kissing-loop binding which may notably affect the quantification of cleavage efficiency. e , Sequence difference tree rooted at HOV expert, illustrating the divergence of variants along the edit distance axis; sequence identity values are annotated at each node. f , Cleaved fraction of representative variants before adding Mg 2+ (pH 7.5). The red dashed line indicates HOV expert. g , Activity gain of designed variants over HOV expert at pH 7.5 ( y -axis) versus pH 8.5 ( x -axis). The distribution above the diagonal shows greater improvements under near-physiological conditions. Cleaved fraction data in b – d , f and g are mean ± s.d. of n = 3 independent experiments per design ( n = 6 for HOV expert).

Characterization under varied solution conditions reveals another advantage of RhoAgent’s designs. Before magnesium addition, multiple designs from both rounds retain substantial cleavage activity, whereas the expert construct shows little cleavage (Fig. 4f ). This reduced magnesium dependence may reflect alternative mechanisms of structural stabilization. In terms of activity under various pH conditions, top designs show activities that are superior to the expert construct under both pH 7.5 and pH 8.5. The designs’ activity improvement relative to the expert construct is generally greater under pH 7.5. For example, HOV-13 shows particularly enhanced activity under near-physiological pH 7.5 compared with pH 8.5 relative to the expert construct, suggesting potential for in vivo applications (Fig. 4g and Supplementary Fig. 22 ). The base pairings of one of the designs (HOV-13) were experimentally characterized using SHAPE probing. The resulting reactivity patterns supported the major designed secondary structure features, showing relatively low reactivity in helical or constrained segments and higher reactivity in more flexible regions (Extended Data Fig. 1a,b ). Overall, such autonomous discovery of variants with enhanced performance under these conditions shows RhoAgent’s potential to uncover beneficial properties beyond the initial optimization target.

RhoAgent engineers fluorogenic aptamers and FRET systems via motif scaffolding

To validate fine-grained control over modular structure–function relationships, we tasked RhoAgent with scaffolding the functional motif from fluorogenic RNA aptamers. This requires the model to design extended structures that position a compact functional motif within geometrically diverse contexts (Fig. 5a ). Unlike inverse-folding approaches that generate sequences for fixed and complete tertiary structures, RhoAgent’s generative core creates 3D scaffolds around user-specified functional cores, enabling systematic exploration of structure space.

Fig. 5: RhoAgent designs fluorogenic aptamers and FRET systems via motif scaffolding. a , Schematic contrasting inverse-folding pipelines with the RhoAgent scaffolding process. RhoAgent integrates indexed sequence segments and 3D functional motif priors (supporting multiple motifs) to specify the scaffold design space. b , Relative fluorescence of Broccoli and Pepper aptamers designed by RhoAgent and RhoDesign, normalized to the corresponding WT ( n = 10 designs per method per aptamer). Box plots show medians (center lines) and the 25th–75th percentiles (boxes). Whiskers extend to the most extreme observations within 1.5 times the IQR of the box edges. Points represent individual designs, and mean values are labeled above the box plots. Comparisons between RhoAgent and RhoDesign used two-sided Welch’s t -tests. * P < 0.05, ** P < 0.01. c , Sequence similarity of Broccoli and Pepper aptamer designs ( n = 20 per method) to WT ( x -axis) and the training set ( y -axis). The lower-left quadrant highlights regions of high sequence novelty. Marginal box plots use the same median, box and whisker definitions as in b ; points beyond the whiskers indicate outliers. Mean ± s.d. are annotated. d , Ratio of designs outperforming the WT for RhoAgent compared with other aptamer design tools 8 , 22 . R1 and R2 indicate multi-round RhoDesign iteration. e , Fluorescence and sequence length of Broccoli scaffolds (Bro-Scaf1–10). The red line marks Bro-Scaf6, showing a 230% increase over Bro-WT. f , Structural superposition of Bro-Scaf6 with the motif constraint (structure and sequence shown) and the nearest PDB neighbor. g , Donor and FRET channel fluorescence of the designed systems (FRET-01–14) measured at 507 nm (donor) and 620 nm (FRET) under 472 nm excitation. h , FRET diversity of designs grouped by sequence length, quantified by the FRET ratio (F620/F507) calculated from background-subtracted intensities. Open circles show individual values. i , Sequence similarity of FRET designs to the training set. Fluorescence data are mean ± s.d. of n = 3 independent experiments.
Fig. 5: RhoAgent designs fluorogenic aptamers and FRET systems via motif scaffolding. a , Schematic contrasting inverse-folding pipelines with the RhoAgent scaffolding process. RhoAgent integrates indexed sequence segments and 3D functional motif priors (supporting multiple motifs) to specify the scaffold design space. b , Relative fluorescence of Broccoli and Pepper aptamers designed by RhoAgent and RhoDesign, normalized to the corresponding WT ( n = 10 designs per method per aptamer). Box plots show medians (center lines) and the 25th–75th percentiles (boxes). Whiskers extend to the most extreme observations within 1.5 times the IQR of the box edges. Points represent individual designs, and mean values are labeled above the box plots. Comparisons between RhoAgent and RhoDesign used two-sided Welch’s t -tests. * P < 0.05, ** P < 0.01. c , Sequence similarity of Broccoli and Pepper aptamer designs ( n = 20 per method) to WT ( x -axis) and the training set ( y -axis). The lower-left quadrant highlights regions of high sequence novelty. Marginal box plots use the same median, box and whisker definitions as in b ; points beyond the whiskers indicate outliers. Mean ± s.d. are annotated. d , Ratio of designs outperforming the WT for RhoAgent compared with other aptamer design tools 8 , 22 . R1 and R2 indicate multi-round RhoDesign iteration. e , Fluorescence and sequence length of Broccoli scaffolds (Bro-Scaf1–10). The red line marks Bro-Scaf6, showing a 230% increase over Bro-WT. f , Structural superposition of Bro-Scaf6 with the motif constraint (structure and sequence shown) and the nearest PDB neighbor. g , Donor and FRET channel fluorescence of the designed systems (FRET-01–14) measured at 507 nm (donor) and 620 nm (FRET) under 472 nm excitation. h , FRET diversity of designs grouped by sequence length, quantified by the FRET ratio (F620/F507) calculated from background-subtracted intensities. Open circles show individual values. i , Sequence similarity of FRET designs to the training set. Fluorescence data are mean ± s.d. of n = 3 independent experiments.

The modular architecture of fluorogenic aptamers makes them attractive targets for validating this scaffolding capability. We focused on the Broccoli and Pepper aptamers, representative fluorescent aptamers with and without G-quadruplex motifs, respectively. We extracted the fluorophore-binding motif from their crystal structures as input to RhoAgent. To compare our agentic approach with existing tertiary-structure-based design methods, we compared performance against RhoDesign22, a state-of-the-art structure-based design tool. The aptamers generated by RhoAgent in the first round already show higher fluorescence intensity than those generated by RhoDesign (Fig. 5b and Supplementary Tables 13–16). Among them, over half of RhoAgent’s designs also outperform WT aptamers, while only a few of the RhoDesign outputs approach the WT. This comparison validates the agentic system’s performance in designing functional RNAs matching or exceeding WT. To examine the novelty of the designs, we compared the designs’ sequence similarities with the WT and training data. Sequence novelty analysis shows that both Broccoli and Pepper designs occupy regions of sequence space distant from both WT aptamers and training data (mean maximum similarity to training set 0.51 versus 0.61 for RhoDesign), suggesting both superior function and novelty compared with non-agentic computational inverse-folding methods (Fig. 5c).

To provide a broader context for RhoAgent’s performance, we compared our results with previously published aptamer design approaches for reference (Fig. 5d). While direct quantitative comparison is complicated by different target aptamers, the structural similarity between targets enables qualitative assessment, as both Mango and Broccoli aptamers adopt G-quadruplex architectures with comparable topological complexity. As a performance reference, RaptGen8, a sequence optimization method based on SELEX data, only achieves modest success rates in previous tests22, with 7 of 22 Mango designs surpassing WT but showing high sequence similarity (>0.7), indicating limited exploration. As another reference, the more recent work of RhoDesign22, a generative deep learning model showing multi-round refinement with structural predictions, yielded 1 of 18 Mango variants that outperformed WT in the first round and 9 of 20 in the second round. Under our prioritization and experimental setting, RhoAgent designed 5 out of 10 Broccoli and all 10 Pepper aptamers that outperformed WT in the first round alone. This performance stems from RhoAgent’s integrated capabilities. The diffusion-based generative core enables exploration of diverse structural solutions, while the planner module sets the constraints for the specific target, and structural profiling enables effective candidate prioritization, all of which are advantages unavailable to inverse-folding pipelines that rely on fixed structural backbones.

The Broccoli aptamer scaffolds designed by RhoAgent ranged from two to six times as long as the WT aptamer. Among first-round designs, Bro-Scaf6 achieved the highest fluorescence intensity, reaching 230% improvement over the WT aptamer (Fig. 5e ), while tested secondary-structure-based design methods did not reach WT fluorescence (Supplementary Fig. 23 and Table 17 ). Structural analysis confirms that successful designs, including Bro-Scaf6, position the functional motif within tertiary scaffolds with a maximum similarity of 0.347 (TM-score) to a riboswitch in the PDB training set (Fig. 5f and Supplementary Fig. 24 ). Moreover, the agent also shows strong performance for the Pepper aptamer, achieving a fluorescence improvement of up to 11% compared with the WT (Supplementary Fig. 25 ). For Broccoli, ablation studies support the contribution of RhoAgent’s candidate prioritization and refinement (Supplementary Fig. 26 and Table 18 ). Round 2 increased the top five mean fluorescence from approximately 2.6-fold to 5.2-fold relative to WT (Supplementary Fig. 27 and Table 19 ).

We further tested performance on multi-domain motif scaffolding. This represents a more challenging test of programmable RNA design, as the agent should coordinate multiple functional element constraints within a single-chain structure while maintaining the individual activities of each (Fig. 5a). We tasked RhoAgent with designing FRET systems by spatially positioning two distinct fluorogenic aptamer domains (Broccoli and Pepper) within a unified scaffold. RNA-based FRET systems hold practical value, such as enabling ratiometric biosensing and serving as probes for studying RNA dynamics and conformational changes in real time39.

RhoAgent designed 18 FRET candidates in one round by conditioning on both Broccoli and Pepper binding pockets while allowing the generative model to scaffold the optimal inter-domain components and determine relative spatial positioning (Supplementary Table 20 and Fig. 28 ). Experimental characterization reveals that 14 of the 18 candidates showed fluorescence in both donor and acceptor emission bands, supporting the functional integration of two aptamer domains (Fig. 5g ). The fluorescence intensities at 507 nm suggest the successful formation of the binding motifs in the designed scaffolds, and the activities at 620 nm show the FRET behavior of the designs (Fig. 5g and Supplementary Fig. 29 ). The observed FRET ratios spanned a broad range from 0.2 to 7.0, highlighting the diversity of the designed FRET systems (Fig. 5h ). FRET-09 showed the highest emission ratio. Furthermore, sequence similarity distribution reveals that designs explore diverse sequence solutions while maintaining both functional domains (0.37 mean similarity to training data; Fig. 5i ). These results establish RhoAgent’s capability to perform sophisticated multi-domain design, creating functional RNA systems that integrate multiple structural and functional constraints simultaneously, representing a critical step toward engineering programmable, multi-functional biomolecular devices.

Discussion

We introduce a virtual scientist platform that integrates autonomous reasoning with programmable RNA generation to achieve goal-directed biomolecular design. In contrast to previous RNA design approaches that optimize sequences for fixed secondary structures or backbones, RhoAgent unifies hierarchical planning, our RDiff with fine-grained geometry control and closed-loop integration of experimental feedback. Across ribozymes, fluorogenic aptamers and multi-domain FRET constructs, agentic integration of a dedicated 3D generative tool consistently surpassed both standalone deep learning models and general-purpose LLM agents on function-centric RNA design tasks, producing functional designs that matched or exceeded human-expert baselines.

At the agent level, RhoAgent is currently a powerful executor rather than a full collaborator36. First, the system depends on explicit constraints and responds unpredictably to vague prompts (for example, ‘design a stable RNA’), which raises the barrier for noncomputational users. Second, the agent does not yet automatically retrieve operable design principles directly from the literature, so each new task should still require human-injected domain knowledge. Third, the agent’s planner does not yet reliably translate underspecified, high-level biological goals into testable design strategies.

Currently, RDiff excels at designing with precise control of static 3D geometry, yet many RNA functions are inherently dynamic. It optimizes a single conformation and therefore does not capture ion-dependent folding, conformational switching or allosteric regulation. The absence of explicit multistate co-optimization further limits the design of molecular switches. In terms of scalability, the agent’s ability to design larger RNA devices is bounded by RDiff’s optimal working scope of approximately 200 nt, restricting very large systems, such as lncRNAs and full ribosomal elements, as well as applications such as rRNA domain engineering51 and RNA sensing through allosteric aptazymes52,53. Notably, the scarcity of long, high-resolution RNA structures is a field-wide constraint rather than a RhoAgent-specific one. As structural databases54,55 further expand, we anticipate future RNA design models to be more robust. Additionally, alternative neural network architectures (such as modules for all-atom structure prediction40) and the inclusion of more diverse tools28,56,57 into the agent’s workflow could improve sampling efficiency and geometric control accuracy beyond current capabilities.

Looking forward, agentic AI scientists like RhoAgent may evolve from specification executors to autonomous collaborators that learn continuously from both humans and their environments. By coupling enhanced reasoning and scientific knowledge understanding with closed-loop experimentation via automated labs58,59, these agentic systems can propose hypotheses, design and prioritize experiments, adapt strategies in real time and generalize across modalities. We are releasing RhoAgent and RDiff as an open-source foundation to enable this increasingly autonomous ecosystem.

Methods

Agentic framework of RhoAgent

Agent orchestration with the planner module

RhoAgent operates as an autonomous system comprising an open-source LLM, Qwen3-235B-A22B48, acting as the central core. The system bridges the gap between high-level natural language intent and low-level geometric constraints through a planner module. First, the planner loads potential dialogue history from the memory module and workflow templates as part of the prompt, establishing context for the design task. After receiving a design prompt, the planner then uses chain-of-thought reasoning to decompose abstract biological objectives (for example, ‘design a stable scaffold for the twister ribozyme’) into executable specification sets for RDiff. This process involves: (1) extracting essential geometric and sequence requirements as well as prior knowledge; (2) selecting the optimal conditioning modalities (secondary structure, interaction tensors or fixed motifs); and (3) validating constraint feasibility via a library of external computational tools. Based on the user-input prompt, the planner also selects one of the predefined workflow templates and details the concrete steps for execution. To generalize across tasks without fine-tuning, the planner uses in-context learning, retrieving relevant tool-usage patterns from a few-shot example bank embedded in the system prompt.

Generative execution and hierarchical verification with the executor module

The executor module coordinates the structure and sequence sampling procedure of RDiff with a multi-dimensional prioritization pipeline. It translates the planner’s specifications into commands to call diverse tool sets and manages the cascaded generation of backbone structures followed by sequence design. The executor implements a hierarchical prioritization pipeline that progressively evaluates candidates at increasing levels of complexity: (1) geometric sanity checks (for example, clash detection, adjacent nucleotide distance), (2) secondary structure consistency and (3) tertiary structure verification (for example, via AlphaFold3 (ref. 40)). This results in a composite score vector encompassing steric geometry validity, base-interaction adherence, structural consistency and functional motif preservation. These numerical metrics are further translated into textual descriptions to facilitate understanding by the LLM. Candidates are then prioritized by a weighted combination of these metrics, where the weight ranges are assigned by the planner based on the specific design task, and specific weights are dynamically selected by the executor.

Automated closed-loop optimization

RhoAgent adopts a dual-loop iterative refinement strategy to obtain high-quality design candidates, one for assessing the design quality at each step and one for analyzing at the end of each design round. Inner loop (critic): within a single generation round, a specialized critic agent monitors intermediate steps. It performs immediate quality assurance and checks if the number of valid candidates satisfying the constraints meets a threshold, which triggers immediate re-execution of specific substeps if strictly defined failure criteria are met. Outer loop (planner): across design rounds, the planner analyzes the performance, including experimental validation results, of the generated candidates. It acts as a meta-optimizer, adjusting the weights of the evaluation metrics or refining the constraint definitions for the subsequent round (for example, tightening structure consistency requirements if structural collapse is observed). This feedback mechanism allows the system to ‘learn’ from the posterior distribution of previous iterations, progressively narrowing the search space for RNA programming with precise structure and function control.

Deep generative framework of RDiff

Geometric and interaction conditioning

RDiff incorporates three complementary constraint types (secondary structure, base interaction and structural and sequence motif) as inputs through conditioning mechanisms. The secondary structure and base-interaction constraints are converted to soft constraints to guide the generative process. Rather than enforcing these as hard constraints, we encode them as latent representations that condition the denoising neural network.

Motif scaffolding

To integrate specific functional requirements, we use a hard-constraint strategy where parts of the structure and sequence are fixed throughout the generation trajectory. We partition the target sequence into fixed ‘motif’ regions and designable ‘scaffold’ regions. During the reverse diffusion process, this functions in a way similar to conditional in-painting60. At each denoising step, the states of the motif positions are strictly fixed to the input structure coordinates or nucleotide segments, and only non-motif positions are gradually denoised. This forces the model to hallucinate a supporting scaffold that is geometrically compatible with the fixed functional elements, such as catalytic cores or aptamer binding sites, thereby preserving the essential biological properties and enabling the generation of diverse, stable scaffolding structures and sequences.

Cascaded conditional diffusion strategies

We formulate RNA design as modeling the joint distribution of structure (X) and sequence (S), factored into a two-stage cascaded generative process: p(S,X|C)=p(S|X,C)⋅p(X|C), where C denotes the input constraints. First, the structure module samples the backbone geometry from p(X|C) via diffusion on the rigid-body group SE(3). Subsequently, the sequence module performs structure-conditioned sequence design by sampling from the conditional distribution p(S|X,C).

Both stages share a unified mathematical formulation according to a conditional reverse-time stochastic differential equation. Starting from a prior noise distribution, the state zt (representing either backbone frames or sequence representation) is iteratively refined according to:

dzt=[f(t)zt−g(t)2∇ztlogpt(zt|Xcond,C)]dt+g(t)dwt,

where f(t) and g(t) define the noise schedule, wt is the standard Wiener process and Xcond represents the backbone condition (used only during the sequence design stage). The score function ∇ztlogpt drives the trajectory toward the data manifold. In addition, we implement a resampling strategy, where valid designs can be corrupted to an intermediate timestep and regenerated for further optimization based on experimental feedback.

Dataset construction and augmentation

The RDiff model was trained on a composite dataset integrating high-resolution experimental structures from the PDB with high-confidence synthetic data. Experimental structures were filtered for 4 Å resolution, completeness and at least 25% of nucleotides having base pairings. To enhance structural diversity beyond the PDB, we augmented this training set with sequences from the bpRNA61 and Ribonanza62 databases, predicting corresponding tertiary structures using Boltz-241. Only predicted structures that are consistent with the secondary structure annotations (F1-score ≥ 0.8) were retained, yielding a final dataset with 28,768 structures. Apart from that, we clustered the entire dataset using MMseqs263 with a sequence identity of 0.80, yielding a total of 11,849 clusters. One sample from each cluster was randomly selected during each training epoch. In silico evaluation of the RDiff module was performed on an independent, time-censored test set consisting of structures deposited after the training cutoff of 1 October 2022, ensuring assessment of generalization. The 33 representative RNA clans were retrieved from the Rfam database64 and filtered after removing extra-short and extra-long clans to benchmark RhoAgent against other general-purpose LLMs and biomedical agents.

Experimental validation

In vitro transcription of short templates

For in vitro transcription, short DNA templates were designed by attaching the reverse-complement T7 promoter sequence (CCTATAGTGAGTCGTATTAGC) to the 3′ end of the reverse-complement sequences of generated ribozymes. All DNA strands were purchased from GENEWIZ. Briefly, a final concentration of 50 nM complementary ssDNA template and single-stranded T7 promoter (GCTAATACGACTCACTATAG) were mixed at a molar ratio of 1:1 and transcribed by T7 RNA polymerase in a 30-µl solution, supplemented with 10 mM rNTPs, 2 U µl−1 RNase inhibitor, 5 mM DTT and 5 U ml−1 inorganic pyrophosphatase (all transcription reagents were purchased from Sangon Biotech). The transcription solution was incubated at 37 °C for 14 h, followed by 50 U ml−1 DNase I digestion for 40 min to remove all DNA templates. The transcription products were used for the following electrophoresis without further purification.

In vitro transcription of long templates

Long DNA templates were designed by attaching the T7 promoter sequence (GCTAATACGACTCACTATAG) to the 5′ end of the sequences of generated ribozymes. To prevent side-product generation, XhoI and BamHI restriction enzyme cleavage sites were placed at the 5′ and 3′ ends, respectively. The double-stranded DNA templates were synthesized from GENEWIZ and amplified in a 50-µl polymerase chain reaction (PCR) mix with 1× PrimeSTAR Max DNA Polymerase Premix (Takara Bio) and two terminal primers (forward primer: TGAGTACTGTTCGTAACAACCTTGACCACC; reverse primer: GGTTGTAGCATGTAAACGATTGTTACGCT). The PCR amplification program consisted of 35 cycles: 98 °C for 10 s, 57 °C for 5 s and 72 °C for ∼10–20 s (10 s kb−1). PCR products were digested by SpeedyCut XhoI and SpeedyCut BamHI restriction enzymes (Sangon Biotech) for 1 h at 37 °C following the manufacturer’s instructions. The cleavage products were analyzed with 1% agarose gel electrophoresis and then extracted with a gel purification kit (Mei5 Biotechnology). For in vitro transcription, 1 µg of double-stranded DNA template was transcribed by T7 RNA polymerase in a 30-µl solution, supplemented with 10 mM rNTPs, 2 U µl−1 RNase inhibitor, 5 mM DTT and 5 U ml−1 inorganic pyrophosphatase. The transcription solution was incubated at 37 °C for 14 h, followed by 50 U ml−1 DNase I digestion for 40 min to remove all DNA templates. The transcription products were used for the following electrophoresis without further purification.

Denaturing polyacrylamide gel electrophoresis

The HHR, twister and CPEB3 ribozyme transcription products were measured on a NanoDrop One spectrophotometer (Thermo Fisher Scientific) and diluted with RNase-free water to a final concentration of ∼1 µg µl−1. The diluted products were mixed with an equal volume of 2× urea-Tris-borate-EDTA loading buffer (Sangon Biotech), incubated at 70 °C for 3 min and then quenched on ice. The diluted products were separated by denaturing polyacrylamide gel (10% polyacrylamide with Acryl:Bis = 19:1, 8 M urea, 1× Tris-borate-EDTA) with a loading amount of 200–500 ng well−1 on a Mini-PROTEAN Tetra Vertical Electrophoresis System (Bio-Rad) under 300 V. After electrophoresis, gels were stained by SYBR Gold Nucleic Acid Gel Stain (Thermo Fisher Scientific) and imaged with a Tanon MINI Space 3000 Imaging System (Tanon Life Science). All experiments were performed in three replicates.

Characterization of the generated HOV ribozymes

Uncleaved HOV ribozyme transcription products were measured on a NanoDrop One spectrophotometer (Thermo Fisher Scientific) and diluted with RNase-free water to a final concentration of ∼1 µg µl−1. The diluted products were denatured and renatured in a T100 thermal cycler (Bio-Rad) in 30 mM Tris-HCl (pH 7.5 and pH 8.5) and 150 mM KCl with the following annealing protocol: 85 °C for 1 min followed by a gradient from 75 °C to 12 °C at a rate of −1 °C per 15 s, then held at 4 °C. Ribozyme cleavage was then initiated by the addition of MgCl2 (to the final concentration of 0–10 mM), and the reactions were incubated at 37 °C for 36 h in a total volume of 10 µl. The reactions at each time point were quenched by the addition of 1 µl of 120 mM EDTA solution. The cleaved samples were then analyzed by denaturing polyacrylamide gel electrophoresis.

Fluorescence intensity measurement

For fluorescence measurements, in vitro transcription products were purified with a Spin Column RNA Cleanup and Concentration Kit (Sangon Biotech) and quantified with an Invitrogen Qubit 4 fluorometer (Thermo Fisher Scientific) following the manufacturer’s instructions. Fluorescence measurements were performed with the following protocol. For DFHBI-1T (MedChemExpress) binding tests with Broccoli aptamers, 1 µM transcribed aptamers were incubated with 10 µM DFHBI-1T in buffer 1, consisting of 30 mM Tris-HCl (pH 7.6), 100 mM KCl and 1 mM MgCl2 at 25 °C for 30 min. For HBC-620 (MedChemExpress) binding tests with Pepper aptamers, 1 µM transcribed aptamers were incubated with 2 µM HBC-620 in buffer 2, consisting of 30 mM Tris-HCl (pH 7.6), 100 mM KCl and 5 mM MgCl2 at 25 °C for 30 min. For FRET tests, 1 µM transcribed aptamers were incubated with 10 µM DFHBI-1T and 2 µM HBC-620 in buffer 2 at 25 °C for 30 min. Fluorescence intensity was measured in a 96-well plate using a Spark high-performance multimode plate reader (Tecan Group). The fluorescence intensity of DFHBI-1T was recorded at an excitation wavelength of 472 nm and an emission wavelength of 507 nm. The fluorescence intensity of HBC-620 was recorded at an excitation wavelength of 577 nm and an emission wavelength of 620 nm. The fluorescence intensity of FRET designs was recorded at an excitation wavelength of 472 nm and an emission wavelength of 620 nm. For data analysis, fluorescence intensities were background-corrected by subtracting the corresponding RNA-free controls before the ratio calculation.

Author information

These authors contributed equally: Han Huang, Tianqing Zhang, Liang Hong, Ziqian Lin, Dongchen He, Jiuming Wang.

Authors and Affiliations

Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong, Hong Kong SAR, China

Han Huang, Liang Hong, Ziqian Lin, Dongchen He, Jiuming Wang, Le Yu, Jiyue Jiang, Yimin Fan, Yanruisheng Shao, Irwin King, Pengan Chen & Yu Li

Hangzhou Institute of Medicine, Chinese Academy of Sciences, Hangzhou, China

Tianqing Zhang, Huimin Li & Da Han

Institute for Medical Engineering and Science, Massachusetts Institute of Technology, Cambridge, MA, USA

Tianqing Zhang & James J. Collins

Department of Chemistry and State Key Laboratory of Marine Environmental Health, City University of Hong Kong, Hong Kong, Hong Kong SAR, China

Tian-Ying Wu & Chun Kit Kwok

Hangzhou Institute for Advanced Study, University of Chinese Academy of Sciences, Hangzhou, China

Huimin Li

Division of Biological and Life Sciences, Mohamed bin Zayed University of Artificial Intelligence (MBZUAI), Masdar City, United Arab Emirates

Yimin Fan & Pengan Chen

Shenzhen Research Institute of City University of Hong Kong, Shenzhen, China

Chun Kit Kwok

Wyss Institute for Biologically Inspired Engineering, Harvard University, Boston, MA, USA

James J. Collins

Broad Institute of MIT and Harvard, Cambridge, MA, USA

James J. Collins

Synthetic Biology Center, Massachusetts Institute of Technology, Cambridge, MA, USA

James J. Collins

The CUHK Shenzhen Research Institute, Shenzhen, China

Yu Li

Contributions

H.H., T.Z., L.H. and Y.L. conceived the study. H.H., L.H., Z.L. and D. He developed the computational model. H.H., L.H., D. He, L.Y. and Y.F. designed the agent framework. H.H., Z.L., J.W., J.J., Y.S., I.K. and P.C. processed the data and performed computational analyses. T.Z., T.-Y.W., H.L. and D. Han designed and performed the biological experiments. H.H., J.W., Z.L., L.H., D.He, C.K.K., J.J.C. and Y.L. wrote and edited the paper. T.Z., C.K.K., J.J.C. and Y.L. co-supervised the study.

Corresponding authors

Correspondence to Tianqing Zhang , Chun Kit Kwok , James J. Collins or Yu Li .

References

  1. Doudna, J. A. & Cech, T. R. The chemical repertoire of natural ribozymes. Nature418, 222–228 (2002). Source
  2. Mandal, M. & Breaker, R. R. Gene regulation by riboswitches. Nat. Rev. Mol. Cell Biol.5, 451–463 (2004). Source
  3. Warner, K. D., Hajdin, C. E. & Weeks, K. M. Principles for targeting RNA with drug-like small molecules. Nat. Rev. Drug Discov.17, 547–558 (2018). Source
  4. Kaseniit, K. E. et al. Modular, programmable RNA sensing using ADAR editing in living cells. Nat. Biotechnol.41, 482–487 (2023). Source
  5. Zhao, E. M. et al. RNA-responsive elements for eukaryotic translational control. Nat. Biotechnol.40, 539–545 (2022). Source
  6. Pardee, K. et al. Paper-based synthetic gene networks. Cell159, 940–954 (2014). Source
  7. Serganov, A. & Patel, D. J. Ribozymes, riboswitches and beyond: regulation of gene expression without proteins. Nat. Rev. Genet.8, 776–790 (2007). Source
  8. Iwano, N., Adachi, T., Aoki, K., Nakamura, Y. & Hamada, M. Generative aptamer discovery using RaptGen. Nat. Comput. Sci.2, 378–386 (2022). Source
  9. Zadeh, J. N. et al. NUPACK: analysis and design of nucleic acid systems. J. Comput. Chem.32, 170–173 (2011). Source
  10. Lorenz, R. et al. ViennaRNA Package 2.0. Algorithms Mol. Biol.6, 26 (2011).
  11. Riley, A. T., Robson, J. M., Ulanova, A. & Green, A. A. Generative and predictive neural networks for the design of functional RNA molecules. Nat. Commun.16, 4155 (2025). Source
  12. Sumi, S., Hamada, M. & Saito, H. Deep generative design of RNA family sequences. Nat. Methods21, 435–443 (2024). Source
  13. Behrouzi, R., Roh, J. H., Kilburn, D., Briber, R. M. & Woodson, S. A. Cooperative tertiary interaction network guides RNA folding. Cell149, 348–357 (2012). Source
  14. Golden, B. L., Kim, H. & Chase, E. Crystal structure of a phage Twort group I ribozyme–product complex. Nat. Struct. Mol. Biol.12, 82–89 (2005). Source
  15. Huang, L., Ishibe-Murakami, S., Patel, D. J. & Serganov, A. Long-range pseudoknot interactions dictate the regulatory response in the tetrahydrofolate riboswitch. Proc. Natl Acad. Sci. USA108, 14801–14806 (2011). Source
  16. Fu, Y., Sander, J. D., Reyon, D., Cascio, V. M. & Joung, J. K. Improving CRISPR-Cas nuclease specificity using truncated guide RNAs. Nat. Biotechnol.32, 279–284 (2014). Source
  17. Rockey, W. M. et al. Rational truncation of an RNA aptamer to prostate-specific membrane antigen using computational structural modeling. Nucleic Acid Ther.21, 299–314 (2011). Source
  18. Zhang, D. et al. Mutagenesis and structural studies reveal the basis for the specific binding of SARS-CoV-2 SL3 RNA element with human TIA1 protein. Nat. Commun.14, 3715 (2023). Source
  19. Ellington, A. D. & Szostak, J. W. In vitro selection of RNA molecules that bind specific ligands. Nature346, 818–822 (1990). Source
  20. Tuerk, C. & Gold, L. Systematic evolution of ligands by exponential enrichment: RNA ligands to bacteriophage T4 DNA polymerase. Science249, 505–510 (1990). Source
  21. Yesselman, J. D. et al. Computational design of three-dimensional RNA structure and function. Nat. Nanotechnol.14, 866–873 (2019). Source
  22. Wong, F. et al. Deep generative design of RNA aptamers using structural predictions. Nat. Comput. Sci.4, 829–839 (2024). Source
  23. Martick, M. & Scott, W. G. Tertiary contacts distant from the active site prime a ribozyme for catalysis. Cell126, 309–320 (2006). Source
  24. Ren, A. et al. In-line alignment and Mg2+ coordination at the cleavage site of the env22 twister ribozyme. Nat. Commun.5, 5534 (2014). Source
  25. Anderson-Lee, J. et al. Principles for predicting RNA secondary structure design difficulty. J. Mol. Bio.428, 748–757 (2016). Source
  26. Watson, J. L. et al. De novo design of protein structure and function with RFdiffusion. Nature620, 1089–1100 (2023). Source
  27. Ingraham, J. B. et al. Illuminating protein space with a programmable generative model. Nature623, 1070–1078 (2023). Source
  28. Ahern, W. et al. Atom-level enzyme active site scaffolding using RFdiffusion2. Nat. Methods23, 96–105 (2026). Source
  29. Das, R., Karanicolas, J. & Baker, D. Atomic accuracy in predicting and designing noncanonical RNA structure. Nat. Methods7, 291–294 (2010). Source
  30. Wang, J., Fan, Y., Hong, L., Hu, Z. & Li, Y. Deep learning for RNA structure prediction. Curr. Opin. Struct. Biol.91, 102991 (2025). Source
  31. Laing, C. & Schlick, T. Computational approaches to RNA structure prediction, analysis, and design. Curr. Opin. Struct. Biol.21, 306–318 (2011). Source
  32. Swanson, K., Wu, W., Bulaong, N. L., Pak, J. E. & Zou, J. The Virtual Lab of AI agents designs new SARS-CoV-2 nanobodies. Nature646, 716–723 (2025). Source
  33. Qu, Y. et al. CRISPR-GPT for agentic automation of gene-editing experiments. Nat. Biomed. Eng.10, 245–258 (2026). Source
  34. Xin, H., Kitchin, J. R. & Kulik, H. J. Towards agentic science for advancing scientific discovery. Nat. Mach. Intell.7, 1373–1375 (2025). Source
  35. Gottweis, J. et al. Accelerating scientific discovery with Co-Scientist. Nature655, 487–496 (2026). Source
  36. Gao, S. et al. Empowering biomedical discovery with AI agents. Cell187, 6125–6151 (2024). Source
  37. Ramos, M. C., Collison, C. J. & White, A. D. A review of large language models and autonomous agents in chemistry. Chem. Science16, 2514–2572 (2025). Source
  38. Chen, Y. et al. Hovlinc is a recently evolved class of ribozyme found in human lncRNA. Nat. Chem. Biol.17, 601–607 (2021). Source
  39. Jepsen, M. D. et al. Development of a genetically encodable FRET system using fluorescent RNA aptamers. Nat. Commun.9, 18 (2018). Source
  40. Abramson, J. et al. Accurate structure prediction of biomolecular interactions with AlphaFold 3. Nature630, 493–500 (2024). Source
  41. Passaro, S. et al. Boltz-2: towards accurate and efficient binding affinity prediction. Preprint at bioRxiv (2025). Source
  42. ByteDance AML AI4Science Team et al. Protenix-advancing structure prediction through a comprehensive AlphaFold3 reproduction. Preprint at bioRxiv (2025). Source
  43. Shen, T. et al. Accurate RNA 3D structure prediction using a language model-based deep learning approach. Nat. Methods21, 2287–2298 (2024). Source
  44. Wang, W. et al. trRosettaRNA: automated prediction of RNA 3D structure with transformer network. Nat. Commun.14, 7266 (2023). Source
  45. Li, Y. et al. DRfold2 is a deep learning-based tool that enables efficient and accurate RNA structure prediction. PLoS Biol.24, e3003659 (2026). Source
  46. Lu, X.-J., Bussemaker, H. J. & Olson, W. K. DSSR: an integrated software tool for dissecting the spatial structure of RNA. Nucl. Acids Res.43, e142 (2015). Source
  47. Huang, K. et al. Autonomous biomedical research with an artificial intelligence agent. Science393, eadz4351 (2026). Source
  48. Yang, A. et al. Qwen3 technical report. Preprint at (2025). Source
  49. Sullenger, B. A. & Cech, T. R. Ribozyme-mediated repair of defective mRNA by targeted trans-splicing. Nature371, 619–622 (1994). Source
  50. Dykstra, P. B., Kaplan, M. & Smolke, C. D. Engineering synthetic RNA devices for cell control. Nat. Rev. Genet.23, 215–228 (2022). Source
  51. Quinodoz, S. A. et al. Mapping and engineering RNA-driven architecture of the multiphase nucleolus. Nature644, 557–566 (2025). Source
  52. Robertson, M. P. & Ellington, A. In vitro selection of an allosteric ribozyme that transduces analytes to amplicons. Nat. Biotechnol.17, 62–66 (1999). Source
  53. Tang, W., Hu, J. H. & Liu, D. R. Aptazyme-embedded guide RNAs enable ligand-responsive genome editing and transcriptional activation. Nat. Commun.8, 15939 (2017). Source
  54. Berman, H. M. et al. The protein data bank. Acta Crystallogr. Sect. D Biol. Crystallogr.58, 899–907 (2002). Source
  55. Adamczyk, B., Antczak, M. & Szachniuk, M. RNAsolo: a repository of cleaned PDB-derived RNA 3D structures. Bioinformatics38, 3668–3670 (2022). Source
  56. Krishna, R. et al. Generalized biomolecular modeling and design with RoseTTAFold All-Atom. Science384, eadl2528 (2024). Source
  57. Baek, M. et al. Accurate prediction of protein–nucleic acid complexes using RoseTTAFoldNA. Nat. Methods21, 117–121 (2024). Source
  58. Dai, T. et al. Autonomous mobile robots for exploratory synthetic chemistry. Nature635, 890–897 (2024). Source
  59. Szymanski, N. J. et al. An autonomous laboratory for the accelerated synthesis of inorganic materials. Nature624, 86–91 (2023). Source
  60. Lugmayr, A. et al. Repaint: inpainting using denoising diffusion probabilistic models. In Proc. IEEE/CVF Conference on Computer Vision and Pattern Recognition 11461–11471 (IEEE, 2022).
  61. Danaee, P. et al. bpRNA: large-scale automated annotation and analysis of RNA secondary structure. Nucl. Acids Res.46, 5381–5394 (2018). Source
  62. He, S. et al. Ribonanza: deep learning of RNA structure through dual crowdsourcing. Preprint at bioRxiv (2024). Source
  63. Steinegger, M. & Söding, J. MMseqs2 enables sensitive protein sequence searching for the analysis of massive data sets. Nat. Biotechnol.35, 1026–1028 (2017). Source
  64. Ontiveros-Palacios, N. et al. Rfam 15: RNA families database in 2025. Nucl. Acids Res.53, D258–D267 (2025). Source
  65. Huang, H. et al. Supporting code for: programmable functional RNA design with a virtual scientist. Zenodo (2026). Source