Desktop Workbench Tour¶
The MolForge desktop app is a native Rust application (winit + egui) built around a real-time wgpu viewport (Metal on macOS, Vulkan or DirectX 12 on Windows and Linux). MolForge's PyMOL-compatible Python API runs embedded inside the app, so every PyMOL command, .pml/.py script, ChimeraX command, and AI tool operates on the same live scene.
Launching the App¶
molforge-app [files.pdb|.cif|.pml|.py|.mfscene.json ...] \
[-d "pymol command"] [--chat "initial AI prompt"] \
[--screenshot out.png [--frames N]]
- Positional files are loaded (structures, maps, trajectories, scenes) or executed (
.pml,.py) in order. -dexecutes a PyMOL command after loading (repeatable).--chatsends an opening prompt straight to the Assistant panel.--screenshot out.png [--frames N]rendersNframes, captures the window, and exits cleanly (used for reproducible documentation captures).
From a source checkout, launch via scripts/app.sh --release ... (uses .venv by default; override with PYO3_PYTHON).
Anatomy of the Workbench¶

| Region | What It Does |
|---|---|
| Menu Bar | Native macOS menu bar (muda) or integrated egui bar on Windows/Linux (File, Edit, View, Scene, Window, Help). See Menus & Shortcuts. |
| Title Bar | Workspace/structure breadcrumb, Tools menu (ChimeraX-style tool bundles), Command Palette (Cmd+K), and quick toggles for Sidebar, Bottom Panel, and Assistant. |
| Activity Bar (far left) | Switches the sidebar between Explorer, Scenes, History, and Search; the gear icon opens Settings. |
| Explorer | Tree of loaded objects (visibility toggle, colour swatch, atom count; click to focus, double-click to zoom), named selections, and a summary card for the focused structure (chains, residues, atoms, ligands, waters). |
| Structure Tabs & Sequence Strip | One tab per open structure. The sequence strip displays residue numbers alongside secondary-structure tracks (helices & strands); click residues to select, Shift/Cmd-click to extend. |
| Viewport Toolbar | Mouse mode (Rotate, Select, Measure), one-click representations (cartoon, ribbon, sticks, spheres, surface, lines), colour schemes (chain, secondary structure, B-factor, pLDDT), lighting preset, camera snapshot, and Focus Mode (Cmd+.). |
| 3D GPU Viewport | Hardware-accelerated molecular canvas with colour-scheme legend (bottom-left), zoom/fit/home buttons, orientation axes gizmo (bottom-right), hover atom tooltip, and click-to-pin atom inspector card. |
| Bottom Panel (Cmd+J) | Console (command prompt with ↑/↓ history and Tab completion), Measurements (live distances created in Measure mode), History (complete replayable log including AI commands), and an interactive Cα Distance Map (drag on the map to select residue ranges). |
| Assistant Panel (Cmd+L) | Conversational AI side panel with starter prompts, @ object mentions, / slash commands, collapsible tool step cards, inline rendered images, and explicit Approve / Decline cards for risky actions. |
| Status Bar | Active engine state, focused object, mouse hints, configured AI provider, live FPS, GPU adapter name, and PyMOL 3.1 compatible badge. |
Command Palette (Cmd+K / Ctrl+K)¶
One unified launcher for the entire workbench:
- Type a 4-character PDB ID (
1ubq,1t46,4hhb) to fetch and load it immediately. - Type an action (show sticks, colour by chain, measure distance, export image, toggle focus mode).
- Type an object or selection name to focus and zoom to it.
- Type any PyMOL command to execute it directly.
- Type a natural-language question to route it straight to the AI Assistant.
Appearance, Lighting & Outlines¶
Open Settings from the bottom-left gear icon (or run the equivalent commands in the console):
| Setting | Options | Equivalent Command |
|---|---|---|
| Background | Graphite, Black, White, Grey | bg_color white |
| Lighting | default, soft, full, flat |
mf_lighting soft |
| Outlines (Silhouettes) | On / Off | mf_silhouettes 1 |
| Projection | Perspective / Orthographic | set orthoscopic, 1 |
| Depth Fog | On / Off | set depth_cue, 1 |
| Supersample Viewport | 1× / 2× antialiasing | View menu → Supersample Viewport |
For publication-grade soft shadows, ambient occlusion, and depth of field, use the built-in GPU path tracer (pathtrace) documented in Path Tracing, Studio Lighting & AR.