home / work / prism

deterministic web layout inspection & codebase intelligence.

role creator & maintainer
stack typescript · playwright · ast · mcp
tools 13 mcp tools · sse + stdio
status v0.1.0 open source

AI coding assistants fail repeatedly at frontend design review and deep codebase navigation because they operate on low-signal approximations. They either receive raw uncomputed HTML (missing computed bounding boxes, real font metrics, and exact colors) or downscaled screenshots where alignment drift and WCAG contrast failures cannot be verified. When exploring codebases, they dump entire files into context and saturate tokens without understanding caller/callee trees.

Prism solves this by turning web pages and codebases into deterministic, queryable facts via the Model Context Protocol (MCP) and open Agent Skills specification (agentskills.io), supporting 70+ developer agents including Antigravity, Claude Code, Cursor, Codex, OpenClaw, and Hermes.

deterministic web layout & token extraction

Prism controls a headless Chromium instance to extract exact CSS box models (padding, margin, rect), computed typography tokens, 4/8pt spacing compliance, and WCAG 2.1 AA/AAA contrast ratios with zero guesswork. Agents can inspect live running applications with minimal token overhead and generate 2D ASCII wireframe maps.

bi-directional source correlation & regression verification

With find_ui_source, Prism matches rendered DOM elements directly to their TSX/JSX source component file and line number with confidence scoring. After changes are applied, verify_change compares before/after layout states to confirm bug resolution, measure layout shifts, and catch unintended visual regressions.

ast repository intelligence & impact radius

The repository pipeline fetches git repositories, parses AST symbols, indexes endpoints and route handlers, and calculates depth-3 blast radius before an agent makes modifications. Agents retrieve exact line-sliced file snippets instead of saturating context with redundant code.

links & source