glassbrain
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 8 GitHub stars
Code Basarisiz
- exec() — Shell command execution in adapters/obsidian.ts
- exec() — Shell command execution in cli/fix.ts
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Know what your agent knows: open, diff and review the knowledge graphs agents write. Plain JSON in, one HTML file out.
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.

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.

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.

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.

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
- Writing graphs — plan passes, organize branches and write steps in order.
- CLI reference — open, check, compare and import graphs, or update an older native graph.
- React integration — embed the canvas and configure its views, appearance and editing.
- Design notes — why glassbrain exists and how its layout, transitions and comparisons work.
Develop
npm ci
npm run verify
npm run demo:public # site/index.html and site/compare.html
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi