Molecular viewer plugin

Claude and Codex show proteins in your headset.

Stereofold is a plugin for Claude Code, Claude Science, and Codex. See your protein in real depth and tell the agent what to change: cut it open, bring the pocket closer, load the next structure.

In Claude Science, set it up once, then ask for a demo by name.

Built with Mol* Stereofold artwork 01 See the demos

01 Headset demos

Ask for a demo by name.

Each demo is a lesson built from PDB entries and told in captioned chapters. Most name their parts on plates, and in three the protein moves. Pause a demo, step through its chapters, walk around it, or ask the agent to change it.

In Claude Science

Set up the connector once. Then start the headset host in a Mac terminal and ask:

“Join the Stereofold scene on this Mac and open the kinesin-walk demo.”

In Claude Code or Codex

Install the plugin, start a new conversation, and ask:

“Open the kinesin-walk demo on my Quest.”

  • Headless render of the kinesin-walk demo: a green and a pink kinesin head joined by their neck coil above a strand of blue and amber tubulin, the green head mid-swing, each part named on a plate.

    kinesin-walk

    Kinesin walks hand over hand

    The pink and green heads trade the lead along a microtubule, 8.2 nm per step, then the motor rests with both heads bound.

    PDB 5SYF, 9L7M, 8RHB, 1BG2, 3KIN

    “Open the kinesin-walk demo on my headset.”

  • Headless render of the atp-synthase-rotor demo: the red and orange gamma stalk rising from a pink ring of c subunits into the grey catalytic head, with subunit a in teal beside the ring and one c subunit marked in yellow.

    atp-synthase-rotor

    ATP synthase: the rotor turns

    The gamma stalk and a ring of ten c subunits turn together under the catalytic head, in three 120° steps per turn.

    PDB 6N2Y, 6N2Z, 6N30

    “Open the atp-synthase-rotor demo on my headset.”

  • Headless render of the hemoglobin-switch demo in the R state: green and blue subunit pairs with red hemes, and the earlier T position of the blue pair drawn faded behind it.

    hemoglobin-switch

    Hemoglobin switches from T to R

    The blue alpha-beta pair turns 14 degrees against the green pair into the R state, with O2 on every heme, then turns back.

    PDB 2DN2, 2DN1

    “Open the hemoglobin-switch demo on my headset.”

  • Headless render of the wall stage of the microtubule-growth demo: three strands of tubulin side by side, alpha tubulin in blue and beta tubulin in amber.

    microtubule-growth

    A microtubule, grown tier by tier

    Say “grow it” and the next tier replaces the last: one tubulin, a dimer, a strand, then a wall three strands wide.

    PDB 5SYF

    “Open the monomer stage of microtubule-growth, then grow it.”

  • Headless render of the crispr-cas9 demo: the magenta target strand and blue non-target strand of DNA entering a faded grey Cas9, with the three PAM bases labelled DT 5, DG 6 and DG 7.

    crispr-cas9

    CRISPR-Cas9 holding its target DNA

    Cas9 with its guide RNA and both DNA strands. Nine chapters name the guide, the PAM, the recognition lobe and the nucleases, then recap them.

    PDB 9KJ6

    “Open the crispr-cas9 demo on my headset.”

  • Headless render of the telomerase-haca demo: the H/ACA lobe coloured by chain, with plates naming each dyskerin, GAR1, NHP2, NOP10, TCAB1 and the telomerase RNA.

    telomerase-haca

    Telomerase, the RNA-protein lobe

    Nine proteins on one RNA in human telomerase, with two dyskerin copies anchoring the complex.

    PDB 8OUE

    “Open the telomerase-haca demo on my headset.”

  • Headless render of the spike demo, close up: the closed SARS-CoV-2 spike trimer drawn as a molecular surface, its chains in pink, green and orange.

    spike

    The SARS-CoV-2 spike, closed

    The trimer with all three receptor-binding domains folded down, turned on its long axis and shown as a surface.

    PDB 6VXX

    “Open the spike demo on my headset.”

  • Headless render of the nucleosome demo: two DNA strands in orange and teal wrapped around a core of eight histones, each histone chain in its own colour.

    nucleosome

    The nucleosome

    147 base pairs of DNA wrapped not quite twice around eight histones, then cut open to the histone core.

    PDB 1KX5

    “Open the nucleosome demo on my headset.”

  • Headless render of the daraxonrasib demo's contact chapter: the yellow drug between faded teal KRAS G12D and purple cyclophilin A, with plates naming Tyr64, Asn102 and Daraxonrasib and the two measured contacts, 3.38 Å and 2.90 Å.

    daraxonrasib

    Daraxonrasib, a molecular glue

    KRAS G12D and cyclophilin A held together by the drug, with its two contacts measured at 3.38 Å and 2.90 Å.

    PDB 9AX6

    “Open the daraxonrasib demo on my headset.”

The images are headless renders of the headset view on a Mac. Coordinates download from RCSB on first use and must match the digest in the demo index. The demos README lists every demo and stage. Stereofold has been run on a Quest 2 and in the visionOS simulator, not on a Vision Pro device.

02 Browser demo

Explore crambin’s structure.

This demo runs in your browser with no install, agent, or headset. Rotate crambin, switch between cartoon and ball-and-stick, and select a residue in the sequence or the 3D view. With the plugin, the agent makes changes like these when you ask.

Crambin1CRN
Ready to open
Still render of the crambin backbone as a teal cartoon ribbon on a near-black background, shown before the interactive viewer loads.
PDB 1CRN · CRAMBIN

Loads on request. Drag to rotate; scroll to zoom.

SequenceCHAIN A
Select a letter to inspect a residue

TTCCPSIVARSNFNVCRLPGTPEAICATYTGCIIIPGATCPGDYAN

Keyboard: use Tab to reach the sequence, then arrow keys to move between residues. Press Enter to select. In the 3D view, arrow keys rotate and + / − zoom.

03 Desktop stereo

How desktop
stereo works.

Without a headset, the plugin’s stereo viewer shows depth on an ordinary screen. It renders a separate image for each eye, and the viewing mode sets how the two images appear.

STEREO RENDERING Left Right
Two viewpoints of one model Two separated cameras form left-eye and right-eye images of the same wireframe cube. Both images use one shared focus point. Cyan identifies the left view; magenta identifies the right view. Shared focus Left eye Right eye
Screen arrangement
Parallel view places the left-eye image on the left and the right-eye image on the right.

04 Install the plugin

Run Stereofold in your own agent host.

The plugin runs on your Mac, inside the agent host you already use. It needs Node.js 22 or newer. The built server is committed to the repository, so there is no build step.

Claude Science

Set it up once. Clone the repository, then open Settings → Connectors → Add connector → Local command. Name it stereofold, give your absolute Node path as the command and the absolute path to plugin/dist/server.mjs as its argument. The README lists the two environment variables and the sandbox settings that let Claude Science join the headset host.

git clone https://github.com/jvogan/stereofold
cd stereofold
node plugin/dist/headset-host.mjs 4HHB

The last line starts the headset host. Run it in a Mac terminal whenever you want the headset: it opens the Wi-Fi share for a Quest, or for a Vision Pro with --vision-pro, and waits for Claude Science. Keep the terminal open, put the headset on, then ask: “Join the Stereofold scene on this Mac and open the kinesin-walk demo.”

Codex

Register the repository as a marketplace, then add the plugin.

codex plugin marketplace add \
  https://github.com/jvogan/stereofold
codex plugin add stereofold@stereofold

Claude Code

Add the marketplace, then install the plugin by name.

claude plugin marketplace add jvogan/stereofold
claude plugin install stereofold@stereofold

In Claude Science, add the skills through Settings → Skills. In any host, start a new conversation after installing and ask: “Inspect PDB 1CRN in Stereofold.”

For lesson files alone, copy the complete plugin/skills/molecular-presentation/ folder into your host’s skill directory. Claude Code reads .claude/skills/ or ~/.claude/skills/; Claude Science supports skill upload and GitHub import. The Node 22 planner needs no viewer or server. Live desktop chapters use Molecular Structure Viewer; headset playback uses the Stereofold plugin.

Open the repository

05 With the plugin

Open a structure, then put it in your headset.

In your agent host

Open PDB and
mmCIF structures.

Ask for a PDB ID or local mmCIF file; obtain AlphaFold coordinates through your source tools when needed. A compatible MCP Apps host can show an inspection panel. If your host has no panel or its card does not mount, ask to open the same inspector in a browser. Confirm the rendered scene in your actual connection. Ask the agent to recolor chains, highlight residues, or start a guided tour. A separate stereo viewer shows depth on your screen.

Compare the stereo modes
WebXR headset browsers

Put it in
your headset.

Claude Science: (1) From the clone root in a Mac terminal, run node plugin/dist/headset-host.mjs 4HHB for Quest, or add --vision-pro for Vision Pro. (2) Pair the headset as the terminal directs; keep the terminal and browser tab open. (3) Ask Claude Science to join the Stereofold scene on this Mac and change it, or to open a demo by name. It calls continue_session. See the README’s Claude Science setup.

In Claude Code or Codex, ask: “Open this structure on my Quest.” Your Mac opens Meta’s Web Launch page in a browser signed in to the headset’s Meta account. Press Open there. With both devices on the same Wi-Fi, Quest Browser loads the structure from your Mac, with no developer mode or USB cable. Accept the certificate warning for your Mac’s address and tap Enter VR. Then keep asking in the conversation, by typing or dictating; the assistant checks that each change renders on the headset. Physical Quest 2 observations inform its performance limits; other models use capability checks and actual frame times.

In Claude Code or Codex on Apple Vision Pro, ask: “Open this structure on my Vision Pro.” Your Mac prepares a one-time Safari link. Universal Clipboard is optional. The visionOS simulator exercised opaque VR and pinch controls; verify physical Vision Pro behavior on the current device.

Other headset browsers use the private HTTPS address and pairing dialog. The companion probes WebXR modes and input sources, prefers passthrough when available, and falls back to opaque VR. A missing launch shortcut leaves manual pairing available.

Try it in your browser

Open the crambin demo.

Open crambin