Early preview · the visual language for AI agents
Let your AI agent
explain it.
Visualized.
Your agent writes a few lines of text. You get an animated isometric diagram that walks you through the system, step by step: who talks to whom, in what order, and why.
Open the live editorTeach it to your agent
Your agent writes · 22 lines of text
story Why checkout was slow, and what I changed
you(laptop)[Browser]
api(server)[Checkout API]
cache(cache)[Price cache]
db(database)[Prices DB]
step Before: every checkout asks the database
you -> api: POST /checkout
api -> db: SELECT prices
db --> api: 2,400 rows
api --> you: 200 OK
say Each checkout read the whole price list again.
set Checkout = 480 ms
step After: prices come from a cache
you -> api: POST /checkout
api -> cache: get prices
cache --> api: hit
api --> you: 200 OK
say I put a cache in front of the price list.
set Checkout = 35 msYou watch · one SVG file, no script
22lines
of plain text draw the diagram above. No coordinates, no layout.
941words
teach your agent the whole language. It fits on one page of its context.
12.6kB
is all a page loads to play a story, compressed. No dependencies.
10models
draw the Mermaid your agent already writes in 3D, from stacked planes to a city.
Made for the way agents work
An agent is good at writing text and bad at placing boxes. Tritone asks it for the text and does the rest.
Text in
It is only text
No coordinates, no layout, no image model. A story is a few plain lines: actors, steps, messages and a narration. The whole language fits on one page of your agent's context.
Read the languageFeedback
Mistakes it can fix alone
A wrong line comes back as a message with its line number, so the agent corrects the text and draws again. What you see here is what Tritone answers to this text.
See the messagesstory Sign in
app(laptop)[App]
auth(server)[Auth]
step Check the password
app -> auth: POST /login
auth -> db: SELECT userTritone: line 8: "db" is not declared. Declare it first, like db(server)[Label]
Sharing
The link is the diagram
A diagram lives in its own address. Your agent hands you a link, an iframe or a Markdown image: no account, no upload, no database.
Ways to embedMermaid, in 3D
Your agent already writes Mermaid. Tritone reads the same flowchart, architecture-beta and sankey text and draws it in space: drag to rotate, select a node to read its notes.
Open asplanesnodescitytreeringstageslanesdominatorssankeymatrix
Wherever your agent answers
In a chat, a pull request, a README or your docs. The link, the iframe and the image need only this site; the element and the API come with the package, which is not on npm yet.
iframe
A site or a docs tool you control.
<iframe src="…/embed.html#c3Rvcnkg…">Markdown image
GitHub, npm, e-mail: one SVG that plays by itself.
Custom element
React, Vue, Svelte or plain HTML.
<tritone-diagram>story …</tritone-diagram>API
At build time or on a server: a story needs no DOM.
const { svg } = await render(text)