Get a diagram of how your code works

Open your project, then ask an AI agent in plain words, for example "draw a flowchart of the login code in this project": it reads the code and draws the diagram on a canvas. You can also draw any of these diagrams by hand, with no AI.

Draw it yourself

Any deviceFree

  1. From Create a document under the Ask box, open a Flowchart or a Whiteboard.
  2. Drag shapes from the palette: flow shapes for a flowchart, participants and actors for a sequence diagram, classes and entities for a class diagram or data model.
  3. Connect them and name them. The same canvas can hold several diagrams.

Ask the agent for a flowchart, on the desktop app

Desktop appPaid plan

  1. Choose File → Open Project and pick the folder with your code.
  2. In the Ask box, describe what to draw, for example:

    Draw a flowchart of how checkout works in this project.

  3. The agent reads the code and draws it: each decision becomes a diamond, each early exit an end, each loop an arrow back.
  4. It notes which files it read, so you can tell later whether the code has moved on. Ask "is this diagram still current?" and it re-reads the code and fixes what has moved.

Ask for it from a phone, tablet or browser

Any deviceYour computer (Circuit)Paid plan

The code has to be on a computer the agent can read, so the project lives on a computer running Circuit.

  1. Pair your device with that computer. See Connect your phone or tablet to your computer.
  2. Open the project on it, then ask for the diagram the same way. It is drawn on a canvas on your device.

Sequence diagrams, state machines, class diagrams and data models

Pro plan

The agent can also draw who talks to whom and in what order, the states something moves through, the classes in a folder and how they relate, or the tables behind your data:

Draw the sequence of what happens when a user signs in.

Show me the classes in this folder and how they depend on each other.

On any plan, the agent can read back and explain diagrams you already have, and a plain flowchart is always available.