Dream-Folding-Bench evaluates general-purpose coding agents on protein structure prediction. A shared evaluation framework enforces the resource limits, records the execution traces, and scores the predicted structures against experimentally determined references.
The new era of protein folding:Fable 5.2 beats all automated approaches in the pre-AlphaFold era
In ten hours on one CPU core and without a specialised protein folding model, a general-purpose coding agent outscores every automated method of CASP12. Dream-Folding-Bench measures how well coding agents fold proteins on their own.
A general-purpose coding agent now predicts protein structures better than the best automated methods before AlphaFold. On 41 targets of CASP12 (2016), with the structure and sequence data of that year, Claude Fable 5.2 reaches a mean GDT_TS of 57.4 in ten hours on one CPU core, and 55.9 in three; Zhang-Server, the best automated server of that assessment, reached 54.9. The agent calls no specialised protein folding model: it searches the databases with standard programs and builds its models with programs it writes during the session. To measure this systematically we built Dream-Folding-Bench and ran 12 frontier coding agents on 53 targets of CASP16 (2024): Claude Fable 5.2 ranks first with 56.9 and Gemini 4 Neon second with 55.3; AlphaFold 3 scores 85.4. The CASP12 targets date from 2016, so knowledge leakage is possible (see Limitations).
Motivation
In recent weeks, frontier labs and independent researchers have reported that general-purpose models know a surprising amount about proteins. They design protein structures and sequences with ordinary coding tools (OpenAI), help determine the structure of a protein assembly (Anthropic), predict the next residue of little-studied protein sequences (Tu), and reconstruct the fold of ubiquitin from predicted contacts (Ovchinnikov).
These results are promising. But we still do not know whether an agent can do the field's central task: turn a protein sequence into its three-dimensional structure. Opinions differ: some are very optimistic, others still doubt what such models can really do. So we measured it. We asked frontier coding agents to fold proteins on their own and scored their all-atom structures against experimental ones. We gave them no protein folding tool, and they call no specialised model.
The answer is that we have underestimated them. With a terminal and the programs it writes itself, Fable 5.2 beats the SoTA automated method of the pre-AlphaFold era.
Benchmark Approach
An agent gets one protein sequence, one CPU core and three hours in a sandbox, and must leave an all-atom model.pdb. After the session we score that file against the experimental structure with three metrics: GDT_TS, TM-score and lDDT.
Agent folds protein
- Protein sequence
- Task instructions
- 3 hours on 1 CPU core
- Open-book / closed-book
- Terminal access
- Renderer: 3D visual feedback
- Evaluator: geometry + energy
- No auxiliary neural nets
- No internet access
model.pdb
Submission check
at session end?
Post-session scoring
GDT_TS per evaluation unit
We run every agent in two settings. Closed-book: the agent has only the sequence and what it knows. Open-book: it may also search the Protein Data Bank, restricted to entries released before the target, and sequence databases.
| Closed-book | Open-book | |
|---|---|---|
| Terminal and Python with NumPy, SciPy, Numba, Matplotlib | ✓ | ✓ |
| Renderer: pictures of its own model, as 3D visual feedback | ✓ | ✓ |
| Evaluator: stereochemical checks and a force-field energy such as OpenMM | ✓ | ✓ |
| Databases and search programs: PDB and sequence databases; HH-suite, MMseqs2, HMMER | ✗ | ✓ |
| Structure predictors: AlphaFold, RoseTTAFold, ESMFold, protein language models, any neural-network library | ✗ | ✗ |
| Modelling software: Rosetta, MODELLER, I-TASSER, Biopython, DSSP | ✗ | ✗ |
| Internet, the experimental structure, any score | ✗ | ✗ |
Everything else the agent writes itself during the session: model building from alignments, coevolution analysis, folding by annealing, side-chain packing. An open-book session leaves a median of 5 to 101 Python files of its own (664 to 4,835 lines), depending on the agent.
More details of the benchmark
Task and targets
We identified 60 CASP16 (2024) targets that fit the task of predicting the tertiary structure of a single protein chain, and excluded seven after a bio-safety review. The remaining 53 targets cover 75 official CASP16 evaluation units. The agent must submit one chain with all heavy atoms for every residue of the sequence.
Tools and feedback
3D visual feedback: a renderer draws any candidate structure from several viewpoints as an image the agent can look at (below). Evaluator: stereochemical checks and an energy computed with OpenMM (Amber ff14SB, GBn2 implicit solvent); we also evaluate feedback from the Rosetta ref2015 energy function. Open-book data: the pre-release Protein Data Bank and the sequence databases UniRef30, BFD and MGnify.
Post-session scoring
After the session, the final model.pdb is compared with the experimental structure. Scoring follows the official CASP16 evaluation units; separately assessed domains of one submission are scored independently. GDT_TS is the primary metric; we also report TM-score and lDDT.
Session isolation
Each session runs in its own sandbox. The agent can call the language model, but has no access to the internet or to provider-side tools. Reference structures, scoring code, scores and the files of other sessions stay outside the sandbox.
Agents
12 models in three agent harnesses: Claude Code (Claude Fable 5.2, Fable 5.1, Opus 5.5, Opus 5, Sonnet 5.5), Gemini CLI (Gemini 4 Neon, Argon, Carbon, Hydrogen; Gemini 3.8 Flash, 3.1 Pro) and Codex CLI (GPT-6.2 Sol).
Runs and reporting
A run is one session per target under one agent, database setting and evaluator: 53 sessions. The main results rest on 72 runs (3,816 sessions). A run's score is the mean over the 75 units; we report the mean across runs. A session that ends because of a server or infrastructure error is rerun once.
3D visual feedback: the agent can look at its structure
A coding agent works in a terminal, but a protein structure is a three-dimensional object. Every session therefore has a renderer: view/view.py FILE.pdb draws a candidate structure from the front, the top and the side, together with its contact map, saves the picture as an image file the agent can open and look at, and prints a text summary. The agent decides when to look. 10 of the 12 agents call the renderer in at least 85% of their open-book sessions.
The full task text every open-book session receives
Comparison with SoTA approaches of the pre-AlphaFold era on CASP12
We are first interested in how coding agents compare with the SoTA approaches of the pre-AlphaFold era. So we evaluated Claude Fable 5.2 and Gemini 4 Neon, the most representative frontier agents at present, on CASP12 (2016), the last assessment before AlphaFold.
Setting. 41 targets with 56 evaluation units (all CASP12 tertiary-structure targets with a public reference structure, after excluding viral proteins and toxins in a bio-safety review); open-book, one run of three hours and one of ten hours, each on one CPU core per target, with the Protein Data Bank as of each target's release date and the sequence databases uniprot20 (release 2016_02) and UniRef90 (release 2016_04). The baselines are the organisers' official GDT_TS of each group's first model on the same units; servers had three days per target.
Findings.
- A general coding agent beats the pre-AlphaFold state of the art. With ten hours and no specialised protein folding model, Claude Fable 5.2 scores 57.4; Zhang-Server, the best of the 23 automated servers, scored 54.9. The lead is largest on the hardest, free-modeling targets (35.7 against 31.7) (Figure 1a).
- Three hours are enough to match it. In three hours the agent scores 55.9, and passes the best server after 95 minutes (Figure 1a, c).
- It works at the level of human experts. On the 37 harder units it scores 48.2 with ten hours and 46.3 with three; the best human group, BAKER, scored 47.6 (Figure 1b, d).
aAbove every automated server of 2016
bAmong the best human expert groups
cPast the best server after 95 minutes
dPast the best human group after 4.9 hours
Benchmarking 12 frontier agents from OpenAI, Anthropic and Google on CASP16
We then measure systematically how well frontier coding agents fold proteins on their own, on CASP16 (2024), the most recent assessment.
Setting. 53 targets with 75 evaluation units (the single-chain tertiary-structure targets of CASP16, after a bio-safety review); closed-book and open-book, three hours on one CPU core per target, 72 runs in all. The reference is the official CASP16 score of neural-network predictors such as AlphaFold 3.
Findings.
- Agents can fold proteins, but stay far from neural predictors. The best agent, Claude Fable 5.2, reaches 56.9 open-book; AlphaFold 3 reaches 85.4 (Figure 2a; full results).
- What an agent can look up matters most. Without databases the best score is 24.1. With a close template agents come near AlphaFold 3; without one they reach 37% of its score (Figure 2b; more details).
- The feedback cannot tell which model is right. Its signals pick the better of two attempts in 46% to 63% of pairs, where 50% is chance; replacing the evaluator with one based on Rosetta, or removing it, changes an agent's score by at most 1.5 points (Figure 2c; more details).
aClaude Fable 5.2 leads the leaderboard in both settings
bWith a close template, agents come near AlphaFold 3
cNo feedback signal reliably prefers the better model
More details: full results of all 12 agents on GDT_TS, TM-score and lDDT
Mean ± standard deviation across completed runs; in the table, the superscript is the number of runs. Rows are ordered by open-book GDT_TS. Average: the mean of the closed-book and the open-book GDT_TS. All agents use the geometry + physics evaluator. AlphaFold 3, Yang-Server and ColabFold are neural-network predictors of CASP16, with their published scores on the units they submitted (AlphaFold 3: 73 of 75; ColabFold: 60).
More details: how targets are grouped by template availability
We group the 53 targets by their closest sequence match among the PDB chains released before the target (MMseqs2, sensitivity 7.5, E-value ≤ 0.001; the best hit maximises identity × coverage). A target's score is the mean over its evaluation units, and a type's score the unweighted mean over its targets.
More details: does the choice of feedback affect prediction accuracy?
We also investigate the effect of the evaluator on prediction accuracy: 4 agents run with an evaluator based on the Rosetta energy function in place of geometry + physics (in these runs the PyRosetta library is present and the agent may import it), and 2 agents run with no evaluator at all (3 open-book runs each).
Mean GDT_TS ± standard deviation across runs; superscript: number of runs. Difference: against geometry + physics.
Figure 2c shows how often each signal prefers the better of two attempts by the same agent (attempts at least 5 GDT_TS apart).
More details: how each agent works in a session
For each agent in the open-book setting, we measure how many minutes it takes to write its first model, how many versions of the model it writes, which search programs it uses, and how often it asks the evaluator and the renderer for feedback, as shown below.
Open-book sessions. Minutes, versions and evaluator calls are medians over the sessions that deliver a model. For the search programs and the renderer, the number is the percentage of sessions that use them at least once.
More details: the score of every agent on each of the 53 targets
We provide the mean GDT_TS of every agent on every target (the mean over the target's evaluation units and over the runs), grouped by template availability, beside AlphaFold 3 at CASP16. Darker is higher.
Hover over a target for its best match in the pre-release PDB.
Limitations
Although we carefully cut the structure and sequence databases off in time to mimic the state of each assessment (the Protein Data Bank as of each target's release date and, for CASP12, the sequence databases of early 2016), we cannot tell whether Claude Fable 5.2 has already seen these proteins and their structures during training: as Tu shows, the latest Claude models were trained on protein sequences at scale.
Demo: How a coding agent folds a protein
We provide a concrete demo of how a coding agent folds a protein: two open-book sessions of Claude Fable 5.2, replayed from their traces, one for a target without a template in the Protein Data Bank and one with a remote homologue.
The grey trace is the experimental structure of the assessed part of the chain. The ribbon is coloured by how far each residue is from its experimental position after a superposition of the kind GDT_TS uses. The passage from one version to the next is interpolated for display.
Without a template · T1274
The search returns nothing to copy, and the session builds its own model: it derives contacts from coevolution, folds a chain of Cα atoms by annealing, borrows the pairing of strands from a distant family, and fits a backbone to the result. The first model, after 45 minutes, scores 22. Two revisions of how the strands pair and of how the domain is fitted take it to 46; from then on the versions polish that fold and stay there. AlphaFold 3 scores 100 on this target.
With a remote homologue · T1278
The session searches the archive and the sequence collections first, settles which templates to trust in which region, and writes its first model after 45 minutes. That model scores 84. The session then tests another alignment, rebuilds a loop from fragments and relaxes the model with a force field, 7 versions in all; the delivered model scores 85. The later work is careful, and it moves the score by a point: the backbone is where the template put it.
Read the agent's closing report for this session
Citation
If you use Dream-Folding-Bench, please cite:
@misc{dreamfoldingbench2026,
title = {Dream-Folding-Bench: Can Coding Agents Fold Proteins on Their Own?},
year = {2026},
howpublished = {\url{https://github.com/zhengkid/dream-folding-bench}},
note = {GitHub repository}
}