Show HN: Glassbrain – Read your agent's brain, know what your agent knows github...
Show HN @show
Show HN: Glassbrain – Read your agent's brain, know what your agent knows github.com · 3 points · 1 comments · HN thread
TL;DR Glassbrain is an open-source tool (npm package and CLI) for viewing knowledge graphs that AI agents write as plain JSON, with a layout based on containment rather than force-directed physics, and version diffs that show what an agent changed. The README reports token counts and node/edge counts for demo datasets built by Claude Sonnet 5.5, including a Flask codebase graph and a docs knowledge base. The post has one comment from the author explaining the motivation.
- An agent writes the graph as two JSON arrays (nodes and edges) with no SDK; parent fields define containment and everything else is an edge.
- The CLI validates graphs (errors exit 1, warnings with --strict) and diffs versions, both in terminal summary and as JSON.
- Layout is derived from containment (folder, file, function; area, feature, step) so the picture stays stable when relations change, instead of reshuffling as in force layouts.
- Browser views step through snapshot folders with animations, compare two versions side by side on shared coordinates, and diff against any git commit.
- Existing outputs from Graphify, Understand-Anything, MCP memory servers and Obsidian vaults can be opened directly and converted to plain glassbrain JSON.
- Reported demo numbers: Flask codebase graph with 540 nodes and 751 edges at about 230k tokens; docs graph of 268 features in 9 areas. These are the author's own measurements and were not independently verified.
Discussion The thread is essentially a single top-level comment from the author introducing the project, with no replies at the time of capture. The author frames it as a response to rigid agent harnesses and to the difficulty of reviewing large agent output, and pitches it as a way to inspect what an agent knows and how that changes. There is no visible critique or community reaction yet, so the mood is neutral and informational.
- Visual graphs are a high-bandwidth way to review agent output (a few): The author argues that a glanceable, containment-based picture of an agent's knowledge or plan conveys more than long text documents, and that it helps humans decide before an agent acts. No outside commenter has yet responded to this claim.
Links from the comments
#knowledgeGraphs #aiAgents #developerTools #visualization #showHN