This repository serves as documentation for Agent Studio.
To work with this repository, we recommend using
just: our command runnermise(optional): to managepnpm/nodeversionslychee(optional): used byjust link-checkto check for broken links
Once you have at least just and pnpm, you can run the following.
# Install dependencies
just install
# Start dev server
just watchArchitecture and flow diagrams are written in D2 directly inside MDX pages, rendered at build time by astro-d2.
To keep diagrams visually consistent, use the shared style kit:
src/assets/d2/style.d2— shared classes (zone,card,hero,bluecard,purplecard,person,flow,okflow,riskflow)src/assets/diagram-icons/— vendored SVG icons (brand logos plus generic stroke icons)
Import both with paths relative to the MDX file, the same way images work:
```d2 title="My diagram"
...@../../../assets/d2/style
api: REST API {class: card; icon: ../../../assets/diagram-icons/api.svg}
studio: Agent Studio {class: hero}
api -> studio: request {class: flow; style.animated: true}
```Conventions:
zonefor grouping containers,cardfor components,herofor the component the diagram is aboutflowfor neutral edges,okflowfor success paths,riskflowfor paths that need security attention- Icons are vendored locally so builds never depend on an icon CDN; add new ones to
src/assets/diagram-icons/ - The default layout engine is
elk; for top-to-bottom sequence-like diagramsdagreoften reads better — set it per diagram with```d2 layout="dagre"