-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.