Inside the lens, the same section imaged for 18 proteins. XMARK's agent writes biomarkers as code over these cells, measures each one here, and keeps only those it can read back from routine H&E.
The agent writes a hypothesis about cells.
It becomes executable code.

mIFmeasuredMeasured on every cell of 18-plex mIF.

H&E onlyH&E learns to read the same value.
Scores go back to the agent.
The kept panel runs on H&E alone, in unseen patients.
The biomarker above is one of hundreds the agent wrote. Four ways in, each built from one run of the released code.


32 of the agent's biomarkers, each on the fluorescence it was measured from and the H&E it is read from.

Six TCGA patients the model never saw: where each biomarker sits on the slide, and what moved the predicted risk.
Build a biomarker in the agent's grammar, watch it on cells, and see whether H&E can read it.
04 · AtlasFive rounds of hypotheses in each fold: what it tried, what it kept, and what H&E could not read.
The repository runs the colorectal task of this site: the agent proposes, ORION-CRC measures, a ridge reader learns to read each biomarker from H&E, and a survival panel is fitted inside every training fold. A replay mode reinstalls our run's proposals, so it needs no language-model access.
# install
conda create -n xmark python=3.10 -y && conda activate xmark
pip install -e ".[test]"
# replay our run, no language model needed
for s in prepare folds panel; do
python -m xmark experiments/tcga_crc_dss_replay/config.json --stage $s
done
# or let the agent write new biomarkers
python -m xmark experiments/tcga_crc_dss/config.json --stage prepare
python -m xmark experiments/tcga_crc_dss/config.json --stage folds --workers 5
python -m xmark experiments/tcga_crc_dss/config.json --stage panel