Show HN: Graph2agent; Mermaid diagrams, explained for agents (graph2agent.github.io)
So I came into conclusion that agents are good into writing mermaid diagrams but they are not good into reading them.
I built graph2agent in order to deterministically (without inference :) ) convert mermaid diagrams into digestible rich text for agents. examples: https://github.com/graph2agent/examples/blob/main/examples/m...
This gave us 50% error reduction for any class of diagrams and 80% error reduction for sequence diagrams specifically. Also Input tokens increased on avg by 8% (which is expected) but Reasoning tokens dropped by almost 50%.
You can use it either with MCP so agents can call it with any mermaid diagram, and also can put it in pre-commit jobs and run it on every PR so all diagrams are agent ready!
I hope you like it! Let me know your thoughts!
1 comment
[ 3.7 ms ] story [ 13.5 ms ] thread