MolaroMolaro is a VS Code extension for streaming, exploring, and analyzing molecular dynamics trajectories where the data lives, including on remote systems over SSH. It combines a GPU-rendered 3D viewer, a command-driven representation layer, Python analysis mods, and an optional Claude-powered analysis assistant. Molaro was created for the Build Track of Built with Claude: Life Sciences, a global virtual hackathon hosted by Anthropic and Cerebral Valley in partnership with Gladstone Institutes. What Molaro does
Molaro's renderer is deliberately data-neutral. Molecular files are translated by the producer into a typed contract of positions, connectivity, hierarchy, labels, and numeric channels; the renderer only consumes that contract. See Molaro in actionCustom representationsCombine ribbons, atom-and-bond styles, colors, opacity, and selections in a single scene.
Requirements
Set Run Molaro: Diagnose from the Command Palette to check the selected interpreter, required packages, protocol output, and mods directory. InstallMolaro is packaged as a universal fallback VSIX and as platform-specific packages. Install the universal package from the command line or use VS Code's Install from VSIX... action:
Targeted packages are also built for Linux x64, macOS x64, macOS arm64, and Windows x64. The Claude Agent SDK runtime is included only in the Linux x64 package; the universal and other targeted packages retain the viewer, terminal, plots, and hand-written mods. To build all packages from source:
Open a system
Standalone structures such as For a synthetic dataset that does not require mdtraj, run Point Viewer: Open from the Command Palette. Work with the viewerThe hierarchy panel and 3D scene share the same named selections and hidden set. Click hierarchy rows or geometry to build a selection, right-click to toggle visibility, and drag in the scene to rotate the camera. The panel can be docked, resized, or collapsed. Open the built-in terminal from the viewer to drive the scene with commands:
The address grammar works across categories, groups, subgroups, point types, point indices, named selections, globs, ranges, and unions. See the command reference for the full grammar and command set. Analysis modsA mod is a Python file that receives the loaded trajectory and selected point indices, then returns a typed result for Molaro to display. Mods can produce per-frame series, scatter plots, figures, scalar fields, channels, edges, or a sequence of viewer commands. User mods live in Claude analysis assistantRun Molaro: Set Anthropic API Key to store an API key in VS Code
SecretStorage, then enter The assistant works from the live system context and the same command and mod interfaces available to the user. Its built-in tools are limited to reading Molaro context, writing and running mods, running viewer commands, and deleting workspace mods. Operations that write, execute Python, or delete a mod require explicit approval in the panel. The assistant has no general shell or filesystem tool through Molaro. Architecture
The extension host starts the producer and relays a length-framed protocol to
the webview. The Python side owns file loading and molecular interpretation; the
TypeScript side owns rendering, interaction, commands, plots, and assistant UI.
The boundary between them is defined in More detail is available in: Development
Open this repository in VS Code and press F5 to launch an Extension
Development Host. Build output is written to LicenseMolaro is released under the MIT License. The Claude Agent SDK dependency is distributed under its own license. |


