The latest entry in the agentic coding toolchain, Glimpse, shifts the paradigm from text-heavy explanations to generative UI for codebases. Released recently, this open-source project integrates with Claude Code to allow agents to render interactive visualizationsβsuch as architecture maps, churn scatter plots, and guided toursβrather than describing them in verbose natural language. By leveraging a local server to compute data and a browser tab to draw it, Glimpse significantly reduces the token overhead associated with generating custom HTML views for every user query.
Technical Architecture and Token Efficiency
Glimpse operates as an MCP server paired with a React component library, utilizing the A2UI v1.0 catalog for communication. The core innovation lies in its token economy: while asking a model to write bespoke HTML can consume thousands of tokens, Glimpse requires only about five output tokens for standard views and 20 to 160 for custom specs. The agent names components and data sources, while the local server handles the heavy lifting of data computation. This ensures that repository data, such as git churn or dependency graphs, never passes through the LLM, keeping sensitive code on the user's machine and minimizing context window usage. 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.
Interactive Visualization Components
The system features 44 React components organized into seven families, including layout, content, data, charts, diagrams, code, and input controls. These components are rendered in a distinct 'Linework' design language, featuring warm paper backgrounds, hairline top bars, and vermilion selection markers. Users can interact with sortable hotspot tables, zoomable module graphs, and diff views with blast radius indicators. The interface supports dark themes and dense row heights, providing a professional engineering atlas aesthetic. Crucially, all elements are linked; selecting a file in a table updates the code view and dependency graph simultaneously, creating a cohesive exploration experience. The server also provides feedback mechanisms, using 'fixed' lines to correct agent guesses and 'warn' lines to indicate parts of the view that could not draw as specified.
Integration and Installation
Glimpse is distributed as a Claude Code plugin, installable via the marketplace command claude plugin install glimpse@glimpse. It requires Node 22.18 or newer and git on the PATH. The plugin includes a skill definition that guides Claude on when to use Glimpse for design, review, or explanation tasks, along with specific slash commands like /glimpse:design. For developers running custom builds, the project compiles into a self-contained MCP server bundle. It supports various data sources, including git.churn and diff.files, and provides tools for the agent to query data, check the component catalog, and retrieve user events from the browser tab. The bundle is a single file with no dependencies to install, making it compatible with any MCP host that speaks stdio.
Key Takeaways
- Glimpse reduces token usage by using a declarative spec instead of HTML generation, costing roughly 1,250 tokens per session for setup.
- Data privacy is maintained by computing repository metrics locally; only summaries and specs pass through the LLM.
- The tool offers 44 pre-built components and 26 data sources, covering everything from dependency graphs to commit histories.
- Installation is streamlined via the Claude Code plugin marketplace, requiring only Node 22.18+ and git.
The Bottom Line
Glimpse proves that agentic coding doesn't need to be a wall of text; by offloading visualization to a local server, it saves tokens and keeps sensitive data private. While the project is young, its efficient token economy and linked UI components make it a necessary evolution for serious Claude Code users.