NewSplitkick v1.6 is out.Answers in the same turn, a new vertical navigation, and Web Access with Tailscale and a QR code.What’s new →
Guide

Let your agents show you: diagrams, charts and HTML reports

Prompts that make agents answer with a Mermaid diagram, a Vega-Lite chart or an HTML report, and what Splitkick does with each one. With the limits.

Since v1.3, Splitkick shows three kinds of agent output as pictures instead of code: Mermaid diagrams, Vega-Lite charts, and HTML or SVG files. The release post lists what came. This guide is about how to get them. Your agents do not know about these features on their own: nothing in Splitkick tells them. So you ask, in plain words, and the right prompt makes all the difference.

Diagrams: ask for a mermaid block

Any agent that writes Markdown can write Mermaid. Ask for “a Mermaid diagram”, and the reply contains a code block that starts with ```mermaid. Splitkick shows it as a diagram, in the chat, in plans and in Markdown files that you open.

Prompts that work well:

Explain how a request flows through this app,
from the click to the database, as a Mermaid
sequence diagram.
Before you start, show me your plan as a Mermaid
flowchart: one box per step, arrows for the order.

The second one is useful in plan mode: you see the shape of the plan before you approve it.

A full-screen dialog shows a sequence diagram filling the window on a dark background.

Full screen opens a large diagram in a dialog. Zoom with pinch, the mouse wheel or a double-click, and drag to pan.

Each diagram has a toolbar: show the source, open full screen, copy as SVG, copy as PNG, copy the source. The copied PNG goes straight into a slide or an issue. If the agent writes invalid Mermaid, you see the error above the source; ask the agent to fix it and paste the error.

Charts: ask for a vega-lite block with inline data

Charts need one more word in the prompt. Splitkick draws a chart from a ```vega-lite block that holds a Vega-Lite spec in JSON, with the data written inside it. Other names, such as ```vega or ```chart, stay code.

Read the test reports in reports/ and show the
duration per suite as a bar chart. Use a vega-lite
code block with the data inline.

The words “with the data inline” matter. Charts never load anything from the network or from files: a spec with a data URL shows the error “Charts cannot load remote data or files. Put the data inline.” So the agent reads the files with its own tools, and writes the numbers into the chart.

A line chart in light theme, followed by a code block that shows the error “Charts cannot load remote data or files. Put the data inline.” above its source.

A chart that asked for remote data is refused, with the reason above its source.

Bar, line, area, scatter and the other Vega-Lite marks all work, in the light and the dark theme. The toolbar is the same as for diagrams. Full screen makes the chart fill the dialog.

Reports: ask for an HTML file

For more than one chart, ask for a page. An agent can write a whole report as one HTML file, with tables, charts drawn by its own script, and notes. Splitkick opens .html, .htm and .svg files rendered in the file viewer: from the tool call that wrote the file, from the file browser, from a file link or from an attachment.

Write a one-page HTML report to tmp/build-health.html:
tiles for test count, median build time and flaky
tests, and a bar chart of build times per day.
Put all CSS, script and data inside the file;
it has no network.

In the viewer, Source shows the code, Reload shows the latest version after the agent changed the file, and Open in Browser opens it outside Splitkick. A short ```html or ```svg block in the chat gets a Preview button instead; the page opens under the block when you click it.

Why the sandbox matters

An agent’s HTML is code that you did not write. So Splitkick runs it in a sandbox: inline scripts and styles run, but the page has no network, no access to Splitkick’s storage, and no way to reach the app or the window around it. Pictures and fonts work only when they are inside the file, as data URLs. SVG files show as images, so a script inside an SVG never runs.

The file viewer shows a test page that lists sandbox escape attempts, each line green and marked blocked: parent DOM, Tauri internals, storage, cookies, popups, top navigation, eval, fetch, WebSocket, images and external scripts.

A test page that tries to break out of the sandbox: every attempt is blocked, while the page’s own script still runs.

That is why the prompt above says “it has no network”: a report that loads a chart library from a CDN shows an empty box. Ask for plain JavaScript or an inline SVG chart instead.

One exception is your own choice: Open in Browser on your Mac opens the file in your browser, without the sandbox. Do that only with files you trust.

On your phone

All three work in Web Access and on your phone too. Diagrams and charts fit the width of the screen and keep their toolbar.

A phone screen in the dark theme shows a flowchart, a sequence diagram and a failed block with its error message in a chat.

Diagrams on a phone, with the same toolbar and the same error view.

A prompt to keep

Since your agents do not know about these features, put one line into the instructions you give them, for example in CLAUDE.md or AGENTS.md:

When a diagram, chart or report explains something
better than text, use a mermaid block, a vega-lite
block with inline data, or a self-contained HTML file.

Mermaid, charts and previews need Splitkick v1.3 or newer. Every change is in the changelog.

← All posts