Docs for SCORPIOX CODE @ ce3b5cd

Live Artifact Preview in SCORPIOX BOT Chat

A small floating window on the chat page that shows PDFs, HTML, images and text the agent publishes -- rendered in place, updating live as it rebuilds them.

You are watching an agent work, and it just finished a PDF, a chart, an HTML page, or a report you actually want to read — without digging through the transcript or the file system. Preview in SCORPIOX BOT is a small floating window on the chat page that shows those artifacts to you while the agent keeps working: PDFs, HTML, images, and plain text, all rendered in place. Ask the agent to show a file, and it appears in the window. Rebuild the file, and the window updates.

It is deliberately small: a title bar you can drag and resize, a row of tabs, a viewer, and a footer of three controls. It renders what the agent has already published — nothing shows up until an artifact is published, and when an artifact is removed the offer stops.

Docs for SCORPIOX CODE @ ce3b5cd.

The whole idea in one line: an agent publishes files into the session’s preview store, and SCORPIOX BOT renders them live in a floating window on the chat page — PDF, HTML, image, or text — switching between them with tabs.


What it is (and what it is not)


Turning it on

Preview is off by default. Open your SCORPIOX BOT chat, then:

You can also turn it off and on again at any time from the ⋅⋅⋅ More menu, or simply close the window with the × in its title bar.


The floating window

When the window is open, it is a small panel you can move around the chat page.

The window is scoped to the session you are chatting with, and it follows the node that session runs on, so it keeps working when you switch nodes in the mesh.


The tabs: groups and slots

A preview is a group of artifacts. The group name is the first tab row (for example main, thesis, dashboard). Inside the open group, the second tab row lists the slots — the individual artifacts, each labelled by its title (or its slot number). Click a group tab to switch topics; click a slot tab to switch artifacts.


How each kind renders

KindHow it renders
PDFRendered in the window by a bundled PDF engine that ships with SCORPIOX BOT (no internet access needed). Pages are fitted to the window width, sharp on high-DPI screens, with a p N / total counter in the footer. Use ↗ to open the raw PDF in your browser’s own viewer.
HTMLRendered in a sandboxed frame with scripts disabled — static HTML and CSS only. The content cannot read from, write to, or post to the chat page around it.
ImageShown at its natural size, fit inside the window.
TextShown as monospaced, selectable text.
Diffs and patchesRecognised automatically and colour-coded: added lines green, removed lines red, hunk and file headers highlighted. This is the same palette as the Changes viewer.

How an agent publishes an artifact

You do not publish anything yourself — the agent does, and you just ask. The mechanics are defined by the agent’s preferred-preview skill (a built-in skill in SCORPIOX CODE), and you do not need to know them to use the window. In one sentence: the agent maintains a small index.json inside the current session’s preview store, points each entry at a real file (so a rebuild updates it), and the web layer picks up the change and shows it in your window.

A few things that follow from that:


Safety


Quick recipe: ask and read

  1. In your SCORPIOX BOT chat, open the ⋅⋅⋅ More menu and switch on Preview. The window appears (empty at first).
  2. Tell the agent what to show: “render the report to PDF and preview it,” or “show me that chart.”
  3. The agent publishes the artifact and tells you it is in Preview. The window fills in and shows it.
  4. Switch artifacts with the tabs; Refresh to rebuild; ↗ to open the raw file in its own tab; Reset to put the window back where it belongs.

Related: the SCORPIOX BOT chat page and the Changes viewer (/scorpiox-tmux) for live working-tree diffs, plus the companion private notepad (/bot-notepad) and file shelf (/bot-drop) in the same chat ⋅⋅⋅ More menu.