What is Glassbrain?
Glassbrain is a command-line tool and browser-based viewer for knowledge graphs created by AI agents. It helps people inspect an agent’s knowledge of code, documentation, research, or plans, and see how that knowledge changes over time. Agents can write graphs as plain JSON, while Glassbrain validates, displays, compares, and converts graphs from several existing formats. You can also embed its graph component in a React app.
Glassbrain Features:
Plain JSON Graphs: Graphs use nodes and edges in a simple JSON format, with a schema describing the available fields and no SDK or API required for an agent to write them.
Graph Validation: The CLI checks graph files for errors and warnings, reports problems such as edges pointing to missing nodes, and can return structured JSON output.
Stable Layout: The viewer uses containment to arrange nodes, so relationships are drawn without shifting the underlying map and changes remain easier to follow.
Version Playback: Open a folder of graph snapshots and step through animated changes as nodes are added, removed, or moved within the graph.
Graph Comparisons: Compare two versions side by side with shared coordinates and markings for added, removed, changed, and moved nodes.
Git And Imports: Compare a graph with a Git commit, or open and convert graphs from Graphify, Understand-Anything, MCP memory files, and Obsidian vaults.
Search And Details: Search ranks matching nodes, while a detail panel displays a selected node’s Markdown content.
Glassbrain Benefits:
Faster Reviews: A visual map makes it quicker to grasp what an agent knows than reading a long report or inspecting graph data by hand.
Clearer Changes: Stable positions and explicit change markings help reviewers distinguish new findings from existing knowledge and spot moved items.
More Reliable Steps: Validation and diffs help teams catch malformed graphs and check whether each agent update changed only the intended information.
Less Custom Plumbing: The plain graph format and built-in support for several existing sources can reduce the need to create a separate viewer or conversion workflow.
Reusable Outputs: A graph can serve as a browsable record of research, documentation, or planning that people can revisit and compare as it evolves.
Use Cases:
Codebase Mapping: Ask an agent to map folders, files, classes, and methods, then inspect how those parts connect or change during a refactor.
Documentation Audits: Turn product documentation and interface code into user stories, then review which features are missing from the docs or differ from the product.
Research Updates: Represent research findings, evidence, and open questions as a graph, then compare a later research pass to see what was corrected or added.
Plan Reviews: Review an agent’s project plan as decisions linked to requirements, and use a later graph version to inspect its self-review.
Existing Graph Browsing: Open an Obsidian vault or a graph produced by another tool when you need to explore its contents without switching to that tool’s viewer.

