Diagrams & engineering

Draw the system. Map the idea.

Build UML diagrams in Mermaid and mind maps in Excalidraw—with an agent that can help draw and revise them.

5 min readUpdated

A design note often describes something easier to inspect as a diagram: which service calls another, how an object changes state, or where several ideas connect. In tendano, you can keep that diagram beside the explanation and ask AI to help create or revise it.

Use Mermaid for a diagram whose structure you want to express in text. Use Excalidraw when position, grouping and sketches are part of the thinking. Agents can author and update both, and the result remains editable.

Turn engineering notes into UML

Start with the question the diagram should answer. A sequence diagram shows the order of messages between participants. A class diagram shows types, members and relationships. A state diagram shows transitions, including the events that cause them. These are useful companions to an API proposal, a domain model or a description of a background job.

Give an agent the notes it should use and describe the scope. Ask it to preserve uncertainty when the source leaves something undecided:

Read the checkout API note and its linked payment discussion. Add a Mermaid sequence diagram showing the client, API and payment provider. Include the documented timeout path. List unresolved behavior below the diagram instead of inventing it.

For a domain model, ask for a class diagram with the named entities and their relationships. For a job lifecycle, ask for states and allowed transitions. Then compare the result with the source: a valid diagram can still contain a wrong dependency, missing message or invented field.

UML · Sequence diagramMermaid source
App asks the API to save a note. The API writes it to the Database, receives confirmation and returns 200 OK. Enlarge diagram

Download the example Mermaid source

Keep Mermaid source close to the picture

In an open note, choose Mermaid diagram from the editor toolbar or paragraph insertion menu. Click its preview to open Edit Mermaid, then choose a diagram type beside the title. The visual tools, Mermaid code pane and AI chat work on the same draft.

Paste the relevant requirements into the diagram chat, or start from source your agent has added to the note. Follow-up requests use the current diagram, including your manual edits:

Add a Cancelled state reachable from Queued and Running. Keep the existing Failed and Completed paths and their labels.

Double-click a label to rename it, use the available visual tools, or edit the code directly. Choose Apply diagram to save. Mermaid handles node layout automatically; the available graphical operations vary by diagram type. Source remains available for details that have no toolbar control.

Explore space with Excalidraw

A mind map for a research project or several competing interface ideas may benefit from freely placed shapes. Choose Excalidraw drawing from the same insertion controls, then open its preview. Use text, arrows, shapes, pen strokes, images and groups to arrange the canvas. Drawing changes save automatically.

Use my product research note to create an editable Excalidraw mind map. Put customer problems in the center, group the supporting observations around them, and leave a separate area for questions we still need to investigate.

An agent can revise the drawing later: add a branch, rename a group or reorganize an exploration. You can continue moving and editing its native shapes yourself. If you prefer a hierarchy defined in text, Mermaid also has a Mindmap type.

An Excalidraw planning map embedded in a tendano memo View full size
A saved drawing stays beside its supporting context. Open it to keep editing the shapes.

Choose how to work with AI

Diagram chat is useful for refining the current Mermaid draft. An agent can work across your notes and update saved Mermaid source or an existing Excalidraw scene. To connect a compatible external agent, open Settings → External agents and enable External access. Choose Read and write, click Connect agent, then Copy MCP configuration. Paste it into your AI client’s MCP server settings as a local (stdio) server. Keep tendano running while the client works.

Inside Excalidraw, Add Mermaid creates a fresh draft and adds editable shapes beside existing artwork. This conversion supports Flowchart, Sequence, Class and State. Use an agent to revise an existing drawing, or edit its shapes directly.

Keep the reasoning beside the diagram as it evolves. Writing with AI covers turning the surrounding notes into a clearer explanation.

Make it your workflow

Put your knowledge to work.

Start with a thought. Keep its context. Give it a next step.

Get tendano