Skip to content

Split Panels & Previews

Sciorex supports a split-panel layout that displays a secondary viewer alongside the chat or editor. Open PDFs, previews, molecular structures, diagrams, and more — without leaving your workspace.

View Modes

Eleven view modes are available, each tailored to a specific file type or workflow.

ModeDescriptionFile Types / Input
EditorMonaco code editor in the side panelAny text file
PDFPDF viewer with annotations, search, and thumbnails.pdf
MarkdownRendered Markdown preview with live updates.md
HTMLSandboxed HTML preview.html
ImageImage viewer with zoom and pan.png, .jpg, .gif, .svg, .webp
BibTeXFormatted citation viewer.bib
Molecule3D molecular structure viewer.pdb, .sdf, .mol, .xyz
ExcalidrawWhiteboard and drawing editor.excalidraw, .excalidraw.json
PreviewLive browser preview with URL navigationhttp(s):// URLs
AgenticMulti-file diff review panelGit diffs from AI changes
NormalClose the split panel, return to standard chat view

INFO

When no file URL is provided, file-based modes open a file picker so you can select the file to display. The preview mode requires an HTTP(S) URL.

3D Molecular Viewer

View molecular structures in an interactive 3D panel.

FeatureDescription
Supported formatsPDB, SDF, MOL, XYZ
Rendering stylesBall-and-stick, space-filling, wireframe, cartoon (for proteins)
ControlsRotate, zoom, pan with mouse; reset view button
Atom labelsToggle element labels and residue names
MeasurementDistance, angle, and dihedral measurements between selected atoms

TIP

Researchers in chemistry, biology, and materials science can view crystal structures, protein conformations, and small molecules directly alongside their analysis code.

Excalidraw

A built-in whiteboard for freeform diagrams, sketches, and visual thinking.

  • Drawing tools — Shapes, arrows, text, freehand drawing
  • Collaboration-ready — Diagrams saved as .excalidraw files in your project
  • Export — Export to PNG or SVG for inclusion in papers and presentations
  • Library — Reusable component library for common diagram elements (flowcharts, architecture diagrams, UML)

Browser Preview

Live-preview web applications and HTML content directly in the split panel.

FeatureDescription
URL navigationEnter any URL or local dev server address
Playwright CDP syncSynchronized browser session via Chrome DevTools Protocol
Auto-refreshReloads on file save for local dev servers
DevToolsInspect elements and view console output inline

Dev Server Detection

Sciorex automatically detects running development servers on common ports.

PortTypical Framework
3000Next.js, Create React App, Express
4200Angular CLI
5173Vite
8080Vue CLI, generic HTTP servers

TIP

When you start a dev server, Sciorex detects it and offers to open the preview panel automatically. No manual URL entry required.

Multi-File Diff

Review AI-generated code changes across multiple files in a structured diff view.

  • File-by-file navigation — Step through changed files with a sidebar index
  • Inline diff — Additions and deletions highlighted line-by-line
  • Accept / Reject individual changes — Approve or discard changes per file or per hunk
  • Full context — View surrounding unchanged code for each modification

WARNING

The agentic diff view is designed for reviewing changes proposed by AI agents. It appears automatically when an agent modifies multiple files and is not intended for general Git diff browsing.

Media Playback

Play video and audio files directly in the split panel.

Video

FormatExtension
MP4.mp4
WebM.webm
MKV.mkv
MOV.mov

Audio

FormatExtension
MP3.mp3
WAV.wav
FLAC.flac

INFO

Media playback supports standard controls: play, pause, seek, volume, and playback speed adjustment. Useful for reviewing recorded presentations, data sonification, or multimedia datasets.

Markdown

The Markdown preview mode renders full GitHub-flavored Markdown with two additional capabilities.

FeatureDescription
Mermaid diagramsRender flowcharts, sequence diagrams, Gantt charts, and more from fenced mermaid code blocks
KaTeX math equationsRender inline ($...$) and display ($$...$$) math equations using KaTeX

TIP

Combine Mermaid and KaTeX in a single Markdown file to create rich technical documents with both diagrams and equations, previewed live as you type.

AI Integration

The sciorex_set_view_mode MCP tool allows AI agents to open and control split panels programmatically.

json
{
  "tool": "sciorex_set_view_mode",
  "parameters": {
    "viewMode": "pdf",
    "url": "file:///path/to/paper.pdf"
  }
}
ParameterTypeDescription
viewModestringOne of the 11 view modes listed above
urlstring (optional)File path (file:///...) or HTTP URL. Omit to open a file picker.

INFO

AI agents use this tool to show you relevant files during a conversation. For example, when discussing a paper, the agent can open the PDF in the side panel so you can read along.

  • Chat Interface — Primary interaction panel alongside split views
  • File Editor — The main code editor that shares the split layout
  • LaTeX Editor — LaTeX editing with live PDF preview in the split panel
  • PDF Viewer — Full PDF viewer with annotation support

Sciorex is proprietary software.