glassbrain

mcp
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 8 GitHub stars
Code Fail
  • exec() — Shell command execution in adapters/obsidian.ts
  • exec() — Shell command execution in cli/fix.ts
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Know what your agent knows: open, diff and review the knowledge graphs agents write. Plain JSON in, one HTML file out.

README.md

glassbrain

Know what your agent knows.

Ask your agent to map a codebase, reconcile two sources, or walk through a plan. Add using npx glassbrain to the prompt. Open the HTML file to explore what it found and compare what changed between passes.

An agent prompt ending with “flag where the docs and UI disagree, using npx glassbrain”

Agents write it · Humans read it · Every brain · Try it · Docs

1. A brain your agent can write

Explore the examples → Choose an example for a prompt to try or an import command to run. Pick a version to explore that pass.

For 4ga Boards, the first two passes map user journeys from the docs and the client source. The third links them and flags discrepancies. For example, the board guide lists CSV export, while the import/export guide and the client use .tgz.

Three passes over 4ga Boards, from docs and UI inventories to linked journeys and discrepancies

An agent writes two arrays. Nested children give the graph its hierarchy and reading order. Edges connect nodes across branches.

{
  "nodes": [{
    "id": "src", "children": [
      { "id": "login", "label": "login.ts", "kind": "file" },
      { "id": "db", "label": "db.ts", "kind": "file" }
    ]
  }],
  "edges": [{ "source": "login", "target": "db", "kind": "uses" }]
}

Each pass is a complete snapshot. A sibling _profile.json assigns colors to kinds. The agent can run npx glassbrain lint kg/ to check for missing endpoints, conflicting definitions, and structural issues before exporting. Format and composition · JSON Schema

2. Read it like a brain scan

Switch between Markdown and glassbrain → Explore a task as an interactive graph or read the document DeepSeek wrote in a separate run. Run records

See what changed

Step from one pass to the next to watch new nodes grow from their parents. Open Compare to inspect both versions side by side. Matching nodes line up, and additions, removals, edits and moves are marked.

The agent-stack skeleton and filled pass in Compare, with descriptions and protocol relationships added

Follow a sequence or explore a layer

In Flow (left), follow a Boards journey from a documented action to its UI counterpart. In Layers (right), explore Flask’s public API by module and trace the calls that handle a request.

Full Demo 1 screenshots of Boards in Flow (259 nodes, 67 edges) and Flask in Layers (245 nodes, 121 edges).

3. Every brain, on demand

Good at

When you want to… Open the example
Follow a request through a codebase, or see how its structure changed between revisions Flask functions and calls · glassbrain’s own source
Check where product documentation and implementation disagree Boards user stories and prerequisites
Revisit research and trace a claim to its sources Agent protocols and products · Papers and citations
Review an implementation plan or trace what happens when an agent’s tool call fails Offline edits and a lost acknowledgement · Calendar agent execution paths
Explore a graph or linked notes you already have Graphify’s Flask export · MCP wiki

The six native examples used OpenCode and DeepSeek. The two imports keep their original sources. The source example compares glassbrain 0.1.4 with 0.2.0-alpha.14 using snapshots generated from code. Example sources and run records

Not good at

Prototyping an interface. A graph can describe screens, states and navigation. To judge whether a control is easy to find or a gesture feels right, try it in a working prototype.

4. Try it yourself

With an agent. Give a terminal-capable agent a task and ask it to use npx glassbrain. The CLI supplies the format and workflow. The resulting HTML opens locally and can be shared as a single file.

Map user tasks from the docs and the UI. Flag where they disagree, using npx glassbrain.

With existing data. Open native snapshots, compare against Git, or import Graphify, Understand-Anything, MCP memory or an Obsidian vault.

npx glassbrain kg/ --open
npx glassbrain diff HEAD~1 kg/ --open
npx glassbrain convert graphify-out/graph.json out --open

With React. In a React app, install the library and its graph dependencies:

npm i glassbrain
import { GraphCanvas, parseSources } from 'glassbrain';

const model = parseSources([{ origin: 'graph.json', text }]);
<GraphCanvas model={model} />

Docs

Develop

npm ci
npm run verify
npm run demo:public   # site/index.html and site/compare.html

Contributing · Security

License

MIT

Reviews (0)

No results found