> ## Documentation Index
> Fetch the complete documentation index at: https://subtext.fullstory.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Subtext: Session Replay Built for AI Agents

> Subtext gives your AI coding agent eyes on your running application — connecting it to session replay, a cloud-hosted browser, and a semantic map of your UI.

Subtext bridges the gap between your AI coding agent and your running application. Agents can read your codebase, but they can't see what's happening in the browser. Subtext closes that gap by connecting Claude Code, Cursor, Codex, and other agents to real production session recordings, hosted browser devtools, and a persistent semantic map of your app's UI.

> [card] [Quick Start](https://subtext.fullstory.com/docs/quickstart.md)
>
> Install Subtext and connect your agent in minutes using the setup wizard.

> [card] [Install by Framework](https://subtext.fullstory.com/docs/install/overview.md)
>
> Add the capture snippet to Next.js, React, Vite, Remix, or any custom setup.

> [card] [Session Review](https://subtext.fullstory.com/docs/session-review/overview.md)
>
> Let your agent open real sessions, inspect events, and compare UI state.

> [card] [Sightmap](https://docs.sightmap.org)
>
> Map your UI to semantic names so your agent understands what it's looking at.

> [card] [Privacy](https://subtext.fullstory.com/docs/privacy/overview.md)
>
> Automatic form masking plus an agent-driven PII governance workflow.

> [card] [Verify (Beta)](https://subtext.fullstory.com/docs/verify/overview.md)
>
> Cloud-hosted browser, proof docs, and artifacts for the closed beta cohort.

## How Subtext works

**1. Add the capture snippet**

Install the lightweight Subtext capture snippet in your web app. It records full production sessions efficiently enough to capture every one. Form inputs are masked out of the box.

**2. Connect your agent**

Run `npx @subtextdev/subtext-wizard` to wire up the MCP server, skills, and slash commands automatically — or follow the manual install guide for full control.

**3. Your agent reviews sessions**

Your agent opens a real session, steps through events, captures UI snapshots, and compares states — no human needs to scrub the recording.

**4. Ship with confidence**

Use the privacy governance loop to scan sessions for PII, propose masking rules, and promote them to production — all driven by your agent.

## What Subtext provides

> [card] Session Review
>
> Replay session recordings step-by-step. Zoom to the moments that matter, capture snapshots, and compare UI state across timestamps.

> [card] Privacy Governance
>
> Automatic form input masking from day one. Agent-driven PII scanning with a propose → approve → promote workflow.

> [card] [Sightmap](https://docs.sightmap.org)
>
> Open-source YAML config that maps CSS selectors to component names, source paths, and agent memory — giving your agent lasting context.

> [card] Skills
>
> Slash commands like `/subtext:subtext-review` and `/subtext:subtext-session` teach your agent structured workflows for reviewing and debugging real sessions.

> [!NOTE]
>
> Subtext is a child brand of [Fullstory](https://fullstory.com) and uses Fullstory's session capture infrastructure. The capture snippet loads `fs.js` from Fullstory's edge network.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.