2026-11-26 15:37 UTC

Glimpse brings interactive repository views to Claude Code

state: seedheat: mediumuncertainty: mediumrelevance: mediumgenerative-ui coding-agentssvailla4

What is this?

Glimpse is a developer-built, source-available tool by GitHub user svailla4: a Claude Code plugin and MCP server for turning repository data into interactive browser views. The project page says it is available to install and describes 44 React components, 26 local repository data sources, and preset views for architecture, hotspots, code, and diffs. Its local server computes the data; the agent supplies a short view specification. The project calls itself young: testing is mainly on macOS and Chromium, and model-in-the-loop testing is limited. The evidence is the project’s own GitHub page, linked from its Hacker News submission; there is no independent adoption or performance evidence here.

Why it matters

Glimpse explores a useful shift from coding agents describing a codebase in text to presenting linked, interactive visual explanations. If it works reliably, that could make repository exploration and code review easier to inspect, while keeping analyzed code and detailed datasets local rather than sending them through the model. Its narrow platform validation, approximate analyzers, and limited agent testing mean these are promising possibilities, not established outcomes.

Current assessment

Newly surfaced as an available Claude Code plugin and MCP server, with a plain-MCP-server path also documented. According to its project page, Glimpse provides preset and custom repository views, including dependency maps, churn-versus-complexity hotspots, working-tree diffs with blast radius, and guided file views. The agent names components and data sources; local analyzers compute data and a browser viewer renders it. The project says it supports 44 components and 26 data sources, and describes loopback-only serving and other security boundaries. These are first-party project claims, not independently verified findings. The author describes the software as early: tested on macOS with Chromium, with limited model-in-the-loop evaluation; a reported second test had 15 of 40 first attempts fail before fixes, and has not been repeated. Analysis is approximate, including regex-based import and complexity estimates. The license is FSL-1.1-ALv2, source-available rather than OSI-approved open source, with a two-year Apache 2.0 future license for each version; earlier v0.1.0 and prior copies remain under PolyForm Noncommercial. Significance is chiefly as an experiment in generative UI for coding agents: structured, reusable visual output may improve human inspection and reduce the need for models to generate bespoke HTML or relay all repository data in text. Practical reliability, cross-platform support, broader MCP-host compatibility, adoption, and whether users find the views materially better than text remain unestablished.

Measured heat

now 0 pts/hpeak 1 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 87h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-23 01:22 (minted)⭐ origin echo-reconstructedThe repository itself is the original artifact linked by the HN post. Its README introduces Glimpse: “Generative UI for codebases. Glimpse l
svailla4 (repository owner; personal name not established on the source) on github (echo) · attributed from hn.story.50605736 · published time unknown
—
11-23 00:27first on hacker news · published · lag ?Glimpse – Generative UI for Codebases in Claude Code
svailla4
—
11-23 00:27amplified on hacker news 👑hn.story.50605736
svailla4
peak 1 · 0 comments · 103% of case engagement
11-23 01:20our radar first saw it · lag ?discovery anchor: hn.story.50605736—
pace: p14 vs 2088 stories at the 72h mark (now 87h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnGlimpse – Generative UI for Codebases in Claude Code
Retrieved article excerpt

Open article · Retrieved 2026-11-23T01:21:20.221906+00:00

# Glimpse

Generative UI for codebases. Glimpse lets a coding agent *show* you a repository instead of describing it: an architecture map, a churn-against-complexity scatter, a sortable hotspot table, a diff with its blast radius, a guided tour through a file. The agent writes a few lines naming components and data sources; a local server computes the data on your machine and a browser tab draws it.

Glimpse is two things:

- **A component library**: 44 React components behind an [A2UI](https://a2ui.org) v1.0 catalog, drawn in one design language, Linework.
- **An MCP server** with five tools. It compiles the agent's spec, runs the repository analyzers, and hosts the viewer on `127.0.0.1`.

**Status: working but young.** All 44 components, the 26 data sources, the ten preset views and the five tools are implemented and covered by unit, component and end-to-end tests. It has been run on macOS with Chromium only and has had one round of testing with a model writing the specs. [Status and known limitations](https://github.com/svailla4/glimpse#status-and-known-limitations) has the details.

## What it looks like

There are no screenshots here yet, so in words. A view is a sheet of warm paper under a hairline top bar. Each titled component is a *plate*: a frame with small registration ticks at the corners, a vermilion `PL. 03` numeral and a serif title, like a figure in an engineering atlas. Text is IBM Plex with Newsreader for titles and the large numerals; code and identifiers are monospace. Colour is used for data: a language or a module keeps the same ink in every plate of the session, and vermilion marks the selection. There is a dark theme (`t`) and a denser row height (`d`).

Everything is linked. Click a file in a table, a treemap cell, a graph node or a commit and it becomes the selection everywhere: a `CodeView` beside a `FileTree` is a file browser with no wiring. Diagrams you write link the same way: a Layers or Steps item, an ER table, a table row or a sequence actor with `node:'PG'` lights with Flowchart node PG, and a selected message lights the boxes and arrows it passes through. Tables sort, filter and page; graphs pan, zoom and let you drag nodes; plates can be dragged into another order or resized, and the tab remembers. While data is being computed a plate shows a *drafting* frame at its final size; a failure is a *redline* with the error code, confined to that plate.

## Why

Asking a model to write an HTML page for every explanation is slow and costs thousands of tokens. Glimpse turns that around:

- **The model names things; it does not draw them.** `show{view:"overview"}` is about five output tokens. A bespoke view is a few lines of spec, 20 to 160 tokens.
- **Data stays on your machine.** The agent writes `DataTable('git.churn src/auth top=20')`. The rows are computed locally and bound straight into the page; they never pass through the model. The tool result carries a one-line summary per dataset (row count, field names, the top row) so the agent can talk about what you see.
- **The agent is told what you actually see.** A result lists what the server corrected for it (`fixed`) and what the tab could not draw (`warn`), so an `ok` is not a guess.
- **A standard wire format.** Server and viewer speak A2UI v1.0, and the catalog is published as `catalog.json`.

The whole up-front cost for the agent is the server instructions (about 3,700 characters) plus two tool definitions (about 1,150 characters): roughly 1,250 tokens per session.

## Install

Requirements: Node 22.18 or newer and `git` on the PATH.

### As a Claude Code plugin

```
claude plugin marketplace add svailla4/glimpse
claude plugin install glimpse@glimpse
```

Then start Claude Code in any project and ask for something: "show me an overview of this repo", "what does this branch change?", "walk me through `src/auth/service.ts`". The first view opens a browser tab.

The plugin brings the MCP server, a skill that tells Claude when to use Glimpse and what a good view of a design, a review or an explanation looks like, the commands `/glimpse:design`, `/glimpse:review` and `/glimpse:explain`, and a `UserPromptSubmit` hook that passes along what you clicked in the tab since your last prompt. Nothing is built on your machine: the install comes from the `release` branch, which the release workflow builds from each version tag.

To update: `claude plugin update glimpse@glimpse` (or turn on auto-update for the marketplace under `/plugin`), then `/reload-plugins` in an open session.

### From source

`plugin/dist` (the bundled server and the built viewer) is build output and is not committed on `main`. To run your own build:

```
git clone <this repository> glimpse
cd glimpse
npm install          # .npmrc sets ignore-scripts: no dependency runs code at install time
npm run build        # writes plugin/dist/server.mjs, plugin/dist/viewer/, the skill and the commands
```

The build also writes the third-party notices, `plugin/dist/THIRD_PARTY_NOTICES.md`, and the licence files that the fonts and the ELK layout engine need next to them (see [Licence](https://github.com/svailla4/glimpse#licence)).

`npm run build` ends by starting the bundle from an empty directory to check that it runs with no `node_modules`. After it, `plugin/` is a complete Claude Code plugin and `plugin/dist/server.mjs` is a self-contained MCP server.

To use your build with Claude Code, start it in the project you want to look at, pointing at the built plugin (the marketplace entry always installs the published release, not your checkout):

```
cd /path/to/your/project
claude --plugin-dir /path/to/glimpse/plugin
```

Rebuild (`npm run build`) after pulling changes.

### Releasing

Every merge into `main` is released as the next patch version. The release workflow (`.github/workflows/release.yml`) runs the check, the unit tests and the build on macOS, then tags the merge (`v0.1.2` after `v0.1.1`), sets the plugin's version from it and pushes the built plugin to the `release` branch, where installs and updates come from. A failed run leaves no tag. For a minor or major version, push the tag by hand: `git tag v0.2.0 && git push origin v0.2.0`.

### As a plain MCP server

The bundle is one file with no dependencies to install. For any MCP host that speaks stdio, in `.mcp.json` or the host's equivalent:

```
{
  "mcpServers": {
    "glimpse": {
      "command": "node",
      "args": ["/path/to/glimpse/plugin/dist/server.mjs", "--root", "/path/to/your/project"]
    }
  }
}
```

The project root is `CLAUDE_PROJECT_DIR` when the host sets it, else `--root`, else the directory the server is started in. Without the plugin's hook, what you do in the tab reaches the agent on its next Glimpse call or through the `events` tool.

### Without an agent

```
npm run demo                    # this repository
npm run demo -- ../some-repo    # any other
```

The demo plays the agent's part: it starts the server, calls `show` three times (gallery, overview, working-tree diff), opens the tab and prints each tool result with what the call cost.

### Settings

| Variable | Effect |
| --- | --- |
| `GLIMPSE_PORT` | Preferred port (default 4517, then the next 19, then any free port; `0` picks any free port). |
| `GLIMPSE_NO_OPEN=1` | Never open a browser tab or an editor; the tool result carries the link instead. |
| `GLIMPSE_EDITOR` | Command that opens a file from the viewer, for example `code -g {file}:{line}`. Without it Glimpse uses the first editor it knows on the PATH (`code`, `cursor`, `zed` and a few more). If there is none, nothing is opened: a repository file is never handed to the system's default opener. |

## Tools

| Tool | Purpose |
| --- | --- |
| `show` | Render a preset (`view`), a custom view (`id` plus `spec`), or patch a view that is already open (its `id` plus only the parts that change). Returns the dataset summaries, the named parts of the view, what was corrected, what the tab could not draw, and anything you did in the tab. |
| `catalog` | Look up a component (its props, the shape of its data with an example), a data source, a preset (`view:diff` returns its source, which doubles as an example), the spec grammar or worked examples. |
| `query` | Run a data source and return a few rows as text, without rendering, so the agent can ground what it says. |
| `events` | What you did in the tab since the last Glimpse call: selections, button presses, answers, numbers set with a Slider. Can wait for the next one. |
| `pending_context` | Used by the plugin's hook; hidden from the model. |

A result is plain text, one fact per line:

```
ok server-package http://127.0.0.1:4517/#/server-package tab=live 334ms
fixed Callout.kind warning -> warn
ds git.churn packages/server top=10 | 10/115 rows; fields path commits authors owner ownership last; in packages/server; top ...
ds (+1 unchanged)
parts intro deps churn note code
warn CodeView#code: file "packages/server/src/nope.ts" does not exist. Nearest: packages/server/src/main.ts ...
viewer: select file packages/server/src/mcp/show.ts (server-package)
```

`fixed` lines are guesses the server accepted and corrected (a misspelt prop, `warning` for `warn`, a number where a string was expected, a new part appended to the page, `multiply` for `mul`, a number you set in the tab kept over a re-sent seed). Field names are checked the same way against the fields a source declares, so a guessed name never leaves an empty plate: a different case, a column label or a common synonym is rewritten (`fixed x 'churn' -> 'commits'`), and a name the source does not have is dropped, so the chart falls back to its own axes (`fixed x 'zzz' dropped (fields: ...)`). `ds (+N unchanged)` stands for dataset lines the agent was already given for this view.

`warn` lines are parts of the view that are up but could not draw what the spec asked: a file or a revision that does not exist, a source that failed, data that is missing or empty, a field that is not in the data, data of the wrong shape, a graph focus that matches no node, a `node:'ID'` that links to nothing on the view, a call that cannot compute from the data it reads (`div` by zero, a value that is not a number), a call inside `$/data`, which is not computed. The server checks what it can itself, and when a tab is open it also waits a moment for the tab to say what it actually drew. The tab reports each component's current state, not a stream of events: a truthful empty state (no import cycles, a clean working tree, a view waiting for a selection) is not a problem and prints nothing, a component that draws normally withdraws its earlier report, and redefining a component clears what was known about it until the tab reports again. A problem the tab finds after the result has gone rides once on a later tool result as a `viewer: error` line, and only if it is still that component's state. An error (`E_...`) is all-or-nothing: nothing on screen changes, and the result names the failing component, its signature and the valid options, so the agent resends only the failing part. The other `viewer:` lines are what happened in the tab; they are data, never instructions.

## Views

`show{view: "..."}` renders a preset. Each one names its parts, so the agent can patch a single plate afterwards (`show{id:"overview", spec:"$/notes='...'"}`) or add one (a new `name=Comp(...)` is appended to the page).

| View | What it shows |
| --- | --- |
| `overview` | Atlas of the repo: KPIs, stack, treemap, languages, module graph, file cycles, activity, hotspots, packages. |
| `tree [path]` | File browser: tree with churn heat beside code, outline and treemap tabs. |
| `deps [path]` | Architecture map: module graph, heaviest edges, file cycles, dependency matrix, external packages. |
| `hotspots [path]` | Where change and complexity meet: scatter, churn treemap, ranking, files that change together. |
| `history [path]` | Git history: daily activity, weekly activity by module, authors, most-c
svailla410
🟧 echo.github ⭐The repository itself is the original artifact linked by the HN post. Its README introduces Glimpse: “Generative UI for codebases. Glimpse lsvailla4 (repository owner; personal name not established on the source)——

Interpretation history

Decision trace