Graph2agent; Mermaid diagrams, explained for agents
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
During the implementation of a huge high performance service. In order to keep context small (mainly for humans) I kept the specs into mermaid diagrams. When communicating with humans; diagrams were easy to follow and to remember. But when I asked the agent to implement what's in the diagram, most of the times it failed.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!
HN · launched Aug 10, 2026 · 7 upvotes (top 59%) · 0 views
Niche: ai agent development platforms · 598 launches, 22 in the last 7 days ▼ -29% · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 598 launches in ai agent development platforms →
Could you build this?
Yes It is an AST parser for Mermaid flowchart syntax that deterministically generates human- and agent-readable text representations describing topology and nodes.
Discussion
1 comment analyzed.
Competitors
Other products that read as similar to this one : 198 launches clear the similarity bar, closest 8 shown.
Attention rank: #125 of 199 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 280 days after the earliest competitor.
- Line9 · hn · 2026-08-06 · 87 upvotes · similarity 0.53
- Mermaid Design · ph · 2026-10-03 · 1 upvotes · similarity 0.53
- Reladraw · hn · 2026-09-26 · 407 upvotes · similarity 0.52
- Archify · ph · 2026-10-04 · 1 upvotes · similarity 0.50
- Visimer · hn · 2026-08-17 · 17 upvotes · similarity 0.48
- Better Graphs · hn · 2026-06-28 · 6 upvotes · similarity 0.47
- Arialine · ph · 2026-09-30 · 1 upvotes · similarity 0.46
- FlowPeek · ph · 2026-09-11 · 2 upvotes · similarity 0.46
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.