Skip to content

Browser Observation

Krometrail connects to Chrome via CDP and records everything happening in a browser session — without requiring any changes to your application code.

Why It Matters

When you're debugging a web app, you can see the bug happen — a spinner that never stops, a form that silently fails, a page that loads wrong data. But when you hand the problem to your coding agent, all it has is source code and maybe an error message.

Browser observation bridges that gap. You browse your app normally, drop markers when something goes wrong, and your agent gets a complete session transcript — network requests, console errors, framework state, screenshots — everything it needs to investigate without you describing the bug in chat.

What Gets Captured

CategoryDetails
NetworkEvery request/response with headers, bodies, status codes, timing, and WebSocket frames
ConsoleAll console output with levels, arguments, and stack traces
DOM mutationsStructural changes: forms, dialogs, sections — not every attribute tweak
User inputClicks, form submissions, field changes
ScreenshotsPeriodic snapshots, navigation-triggered captures, and manual snaps
StoragelocalStorage/sessionStorage mutations and cross-tab events
Framework stateReact and Vue component lifecycles, state/prop diffs, store mutations
Framework errorsAuto-detected anti-patterns (stale closures, infinite re-renders, missing cleanup)
AnnotationsLightweight code-placed timeline markers via window.__krometrail.mark()

How It Works

The work is split between you and your agent:

You (in Chrome)                     Your Agent
─────────────────                   ──────────
Browse your app normally
Click ◎ Mark at key moments
Click 📷 Snap to capture the screen
                                    Searches the session for errors
                                    Inspects individual events
                                    Diffs state between markers
                                    Generates reproduction steps

While you use your app and annotate important moments with the in-browser control panel, your agent works through the recorded session to trace the bug to its source.

Typical Workflow

  1. Your agent starts a recording session and opens Chrome to your app
  2. You use the app — click around, fill forms, reproduce the bug
  3. You click ◎ Mark in the control panel at key moments ("form submitted", "page broke")
  4. Your agent searches the recorded session, inspects events, diffs state changes, and traces the bug to source code

Next Steps