logoalt Hacker News

nlowellyesterday at 12:33 AM0 repliesview on HN

With a bit of tuning, you can get models like Claude to output Mermaid-style diagrams. I built this as a feature into the tasks, so that you can hit a toggle which adds a prompt asking the agent to create a Mermaid diagram during or after the task execution. I pull this diagram back into the GUI and display it with the task information. So user flow is like:

-User creates task as usual but toggles the "mermaid diagram" option on

-Agent takes additional step during execution to create diagram

-User sees that diagram on the task details panel for that task

If you specify in your overall task prompt what kind of diagram you want or what you want it to show, it will take your specifications into account. It's just a prompt control + automatically pulling that diagram back into the task tracking.