TweakLine - Visual Editor for Coding Agents 的隐私政策
TweakLine - Visual Editor for Coding Agents 作者: Samsad
DIVE's editor runs in your browser. Configured Cloud or Self-hosted MCP
connections can transmit page data, edits and tool results through the selected
relay; Local MCP uses your machine. Release builds send usage analytics to
PostHog only if you opt in (it is off until you choose, and you can change it in Settings). Those events do not include page content or edits.
An unconfigured source build sends nothing. The flows and exceptions are
described below.
Coding-agent subscriptions, API usage and self-hosting costs are separate
from DIVE.
Safari on Mac installs from the latest GitHub release as a temporary Web
Inspector extension, not from an extension store. See the
browser-support guide.
Editor data and preferences live on your machine, in the browser's extension storage. Release-build usage analytics is described below.
| Storage area | What's there | Lifetime |
| ------------------------- | ----------------------------------------------------------------------------------- | ------------------------------ |
| chrome.storage.local | UI preferences and installation analytics ID: dive-analytics-distinct-id (persistent random UUID for usage analytics), dive-onboarding-done (a flag so the welcome card shows only once), dive-theme, dive-color-format, dive-capture-mode, active Tokens-panel tab (dive-tokens-tab), inspector overlay colours (dive-inspector-hover-color, dive-inspector-select-color, dive-overlay-margin-color, dive-overlay-padding-color), contrast-checker settings (dive-a11y-category, dive-a11y-level), nudge-amount (dive-nudge-amount), page-cursor toggle (dive-custom-cursor), source-map fetch gate (dive-sourcemap-fetch), Chrome launch surface (dive-launch-surface: side-panel / floating / picture-in-picture), pop-out window bounds (dive-popout-bounds), pinned PiP window size + support flag (dive-pip-size, dive-pip-unsupported), un-acked Send-to-Agent markers (dive-pending-handoff:<origin+path+search>: send UUID, timestamp, page URL/title — never page content, selectors, or values; persisted in Local mode only, since only the local companion can acknowledge delivery; removed when the agent actually receives the send, when you discard or clear the changes, or after 24 h) | Until you uninstall the ext. |
| chrome.storage.sync | User-saved presets you opt to sync across devices | Synced via your browser's sync account (Chrome Sync / Firefox Sync) |
| chrome.storage.local (sessions) | Per-page edit sessions (style/text/DOM changes), keyed by origin + path + search, plus the generation markers used to clear a route or site. Moved here from chrome.storage.session so edits survive a browser restart; any left in session storage are migrated once. Re-applied only while DIVE is active on that page. | Until you clear the route or site in the Changes tab, or uninstall |
| chrome.storage.session (or local where the browser has no session storage) dive-auth-session; chrome.storage.local dive-snapshot-sync | Only when collaboration is enabled and a sync server is built in: your sign-in session (access and refresh tokens, your email and name from Google), kept in memory-backed storage that the browser clears when it closes and that content scripts cannot read in Chrome; which screenshots of shared projects have been uploaded. The sync server's address is fixed in the build and is not stored. Cleared on sign-out. | Browser session / until sign-out |
| chrome.storage.local dive-flags | Feature flags (collaboration, default off). When off, the collaboration section does not exist. | Until uninstall |
| chrome.storage.local dive-sync-state | Sync settings (off), a random device id, and an empty upload queue. No history content. | Until uninstall |
| Extension IndexedDB dive-history | Change history: projects (name and site origins), one record per recorded change (element selector and label, property, before and after values, page URL and title, status, timestamps), and screenshot snapshots of the visible viewport taken after each burst of edits, with element outlines (annotations). Screenshots can contain anything visible on the page, including personal data. Captured only while the page is the visible tab; never sent anywhere — not to the MCP server, the cloud relay or analytics. Capped at 300 screenshots / 150 MB, oldest screenshot removed first (its change record is kept). The only part shared with your agent is the project's ID and name, included in change reports (get_changes and handoffs) through the MCP mode you configure. Screenshots and the stored history stay local. Collaboration is off by default. When you turn it on, sign in with Google, turn sync on and share a specific project, that project's change records (element selectors, labels, before/after values, page URLs and titles, status) and its screenshots (which can contain anything visible on the page; sensitive fields are blurred at capture) are uploaded to the sync server you configured, over HTTPS, into a private bucket only the project's members can read. Other projects stay on this device. Stopping sharing or signing out stops uploads; it does not remove what was already uploaded. Values typed into password, hidden, payment and one-time-code fields are stored as [redacted]. Payment and one-time-code fields (and other fields matching the same rule) are blurred for the instant a snapshot is taken, so their digits are not readable in stored screenshots. Other on-screen content is captured as shown. | Until you delete the project on the History page or uninstall the extension |
Site-wide change review reads saved routes only for the current exact origin
(scheme, host and port). Edits remain route-specific, and route grouping uses
existing session storage without extending its lifetime. Session reads and writes
are brokered by the extension background in both browsers; read responses contain
only the requesting page’s site-scoped sessions and clear-generation markers.
Firefox content scripts do not keep a second copy. The background stores them instorage.local in every browser, so they survive a browser restart.
Delete route removes
that route's saved records; Clear all removes the current origin's saved
records. Copy as Prompt and Send to Agent include all saved routes for that
origin, including route URLs and their recorded changes, not just the visible
route or filter. Send uses the already-configured MCP transport; route review
adds no service, permission or automatic upload. Open route is restricted to
the bound tab's current exact HTTP(S) origin.
Session storage also holds dive_site_clear:, dive_site_generation: anddive_route_generation: markers to invalidate saves already in flight when a
route or site is cleared. These contain route/origin identifiers and random
generation values, not copies of cleared edits; they share session lifetime.
Comment reads and mutations use the extension background's serial queue to
prevent concurrent tabs from overwriting or resurrecting each other's records.
They remain in the existing local dive-comments storage. Localdive-comment-owners records hold route URLs and random import ownership markers
so failed imports cannot restore comments over a newer clear or edit. A later
comment mutation removes that route's marker; site clear removes the site's
markers. Neither record is uploaded.
The extension never reads password values or framework props/state. It reads
CSS, geometry and DOM structure for elements you inspect. For component-grouped
change review, a bounded read-only probe also reads React/Vue component names
and source-file hints for changed elements. These hints stay in the local
review UI; production builds may omit them. The grouping choice is in memory,
not a new stored preference.
Guided Local setup only reads/writes the project configuration files selected
in its preview after explicit apply confirmation. Backups stay beside the
changed files; they may contain other tools' credentials, so do not commit
them. Doctor probes only the configured localhost bridge. Live feedback
rounds reuse that Local connection and retain snapshots/session state only
in process memory. Delivery acknowledgements keep a bounded set of send
UUIDs (never page content) in ~/.dive/handoff-delivered.json —
owner-only file permissions, entries expire after 7 days with a 128-entry
cap — so a companion restart does not re-deliver a Send the agent already
received. The dedupe is best-effort by design (fail-safe direction): a
corrupt or unreadable file, or two companions delivering different Sends
within the same sub-millisecond window, can cost a rare duplicate delivery —
never a lost Send. No new external service or stored browser preference is
introduced by these features.
Apart from the release-build usage analytics described below, the extension sends data through the MCP mode you configure. Fresh
installs select Cloud; existing installs retain their saved mode. Cloud and
Self-hosted need a configured relay and bearer token. Local mode talks only to
your machine.
Local browser operations:
- A token-authenticated WebSocket connection to
ws://127.0.0.1:9960(or the
Local port you configure) if you've opted in by starting the companion MCP
server (npm start). The server runs on your machine; nothing is uploaded. chrome.tabs.captureVisibleTabfor screenshots — captured locally, never
uploaded. The capture-mode setting (clipboard / download / both) controls
what happens to the PNG.fetch(media.src)when you click "Download" on an inspected<img>/
<video>/<audio>/ SVG — this is a normal browser request to whatever
URL the page already references; nothing is added by the extension.
After you record a change, the extension tries to attach a source location
(file, line, component) to the change so your coding agent can open the right
file. Framework hints (React/Vue/Svelte/Angular metadata already on the page)
are read locally. When those are unavailable, the extension fetches, from the
inspected page's own origin only:
- the page's own stylesheet or script text for the resource that styles the
edited element, and - the source map that resource declares (
.mapfiles, or inlinedata:
source maps), when it publishes one.
Each file is capped at 5 MB and 5 seconds, and cross-origin resources are
never requested. The fetched text is parsed locally; the resolved location
stays on your machine until you send change reports over an MCP transport you
configured — including Cloud mode, where
get_changes responses (withsourceLocation fields) pass through the relay described above. No otherservice receives them.
This is controlled by the
dive-sourcemap-fetch setting inchrome.storage.local. Turn it off in Settings ‚Üí Source maps ‚Üí Off. Withit off the extension makes zero source-map requests; framework hints keep
working and React reports keep their raw (bundler-intermediate) line numbers.
Until the saved value has been read — and if the read fails — the extension
treats the gate as off and fetches nothing, so a request never runs on the
load-time default.
Configured Cloud or Self-hosted mode:
- An HTTPS connection to
https://mcp.dive.example(or any
self-hosted deployment URL you configure) authenticated with a bearer
token stored inchrome.storage.local. The cloud server (open
source atpackages/mcp-cloud) acts as a relay between the
extension and a remote MCP agent. Requests and responses are temporarily
queued in Redis with a requested 60-second expiry; responses are normally
deleted when consumed. Queue insertion and expiry are separate operations,
so the 60-second lifetime is best-effort rather than a guaranteed maximum.
The service retains the credential's SHA-256 hash, anonymous tenant ID, and
created/last-seen timestamps until revocation. Operational logs contain
bounded metadata, not selectors, screenshots, or payload bodies.
Switch to Local mode on the MCP page to keep MCP traffic on your machine.
When you're connected to a coding agent (via any of the modes above), the edit
set it reads (
get_changes) carries, per change, the page's viewport widthat edit time and the derived breakpoint (mobile / tablet / desktop) so the agent
can scope edits to a media query. This is window-size metadata, not personal
data, and it only travels over the connection you've already opted into.
A release build asks once, in the side panel, whether to share usage events with PostHog. Nothing is sent, and no install ID is created, until you choose Allow. Settings ‚Üí Usage data turns it on or off at any time; turning it off stops sending and deletes the install ID. It is not a paid feature and it does not change what the editor can do. The event names the browser package as
chrome, firefox or safari.Release builds include the PostHog project and send these events only after you opt in. An ordinary source build with no project configuration still sends nothing. Project 629592 is the extension-only destination. The public project token is embedded in the release packages, not printed in documentation. See ANALYTICS.md. This source does not verify the receiver's billing or retention settings.
The extension sends a bounded event schema: feature names,
attempt/command_acknowledged/failure or state outcomes, bounded friction
reasons, MCP mode and state when applicable, the browser package (
chrome, firefox or safari; Edge, Brave and Arc use the Chrome package), validatedbrowser language, Intl timezone, and
navigator.userAgent ($raw_user_agent, bounded to 512 printable ASCII characters) when available,extension version, schema version 4,
extension surface, and a best-effort distribution label.Event names describe the action (for example
dive_style_edit, dive_send_to_agent)rather than the generic
dive_feature; outcomes remain separate. Style edits mayinclude an allow-listed CSS property name and a category such as typography,
spacing, layout, colour, border, effects, position or sizing. They never include
the CSS value. Text edits may say whether the edit was plain text or HTML. DOM
edits may name the action, such as delete, duplicate or reorder. Export events
may name the format and a bucketed change count (
0, 1, 2-5, 6-20,20+). Failures may include an allow-listed error code and a page scheme suchas
https, localhost, file or chrome_internal, never the page URL. Language isbounded to 35 characters with no private-use subtags; timezone to 64 and validated
by Intl. Invalid/unavailable metadata is omitted.
command_acknowledged means only a command returned without a reported error,including empty/no-op responses; it is not feature or agent completion. Screenshot
clipboard outcomes follow the actual clipboard promise. Download outcomes mean
only initiation or failure to initiate, never verified save-to-disk completion.
Distribution labels (
published_hint, unpublished_hint, fork, unknown)are unverified signals or distributor declarations, not proof of an official
installation. No extra browser permission is requested to classify installs.
There is no autocapture, session replay, pageview tracking, remote SDK code,
feature-flag fetching, or exception reporting. Events cannot include page URLs,
selectors, comments, text, edits, design/authentication tokens, screenshots, raw
errors, MCP payloads, account IDs or extension IDs. To measure active users (DAU/WAU/MAU),
retention cohorts and feature funnels, the extension generates a random UUID on first use
and persists it in
chrome.storage.local under dive-analytics-distinct-id as the PostHogdistinct_id. PostHog person profile processing ($process_person_profile: true) andIP-based GeoIP enrichment (
$geoip_disable: false) are enabled, associating the installation IDwith environment metadata (
browser, browser_vendor, version, distribution, language,timezone, $raw_user_agent) and IP-derived location. Cookies and referrers are omitted; redirects are rejected.The sole sender is the background context. Events are best-effort, capped at 60
per minute per live background context and four in flight; there is no disk event queue,
retry, or beacon. Closing or restarting that context
can lose in-flight events and resets its in-memory rate limit. Sending needs your opt-in on every browser. On Firefox, sending also requires that the browser does
not report a data-collection permission list, or that list includes
locationInfo. A reported list without locationInfo sends nothing. Alreadyreceived requests cannot be recalled.
Firefox declares no required data collection (
none) and liststechnicalAndInteraction and locationInfo as optional, so Firefox lets youdecline both at install or later in the add-on's permissions. That declaration
covers analytics metadata, not a new authorization to transmit page or MCP content. The minimum
supported Firefox version remains 121.
No account, project, retention settings or billing plan is provisioned by this
code. This source does not verify the receiver's retention, deletion, region or
billing settings. See analytics activation and verification.
MCP servers and CLI do not emit analytics. There is no remote update channel beyond
the browser's own extension update mechanism.
The optional
@dive/cli executable (dive) defaults toCloud. After you configure that mode's credential,
tools, schema, statusand
call contact https://mcp.dive.example/api/mcp. Self-hosted sends thoserequests to your explicitly configured
/api/mcp endpoint. HTTPS is requiredexcept for a relay on literal localhost / 127.0.0.1 / [::1]; redirects are not
followed. Requests carry the selected mode's bearer token, and tool calls/results
may include page edits, comments, screenshots and session metadata. Relay
retention and logging are as described above. Discovery/status also update
relay presence and credential last-seen metadata without verifying the browser.
CLI credentials come from mode-specific environment variables or an explicitly
selected user-owned 0600 JSON file (
DIVE_CONFIG), never argv. The CLI does notpersist credentials or read a default credential file. Help/no-argument usage
reads no config and makes no network requests. Local mode reuses the existing
loopback bridge; its tool/schema discovery is offline. CLI stdout can contain
sensitive tool results; take care where you store it. No CLI telemetry is added.
The marketing/docs site is a separate concern from the extension. The site:
- Uses Inter fetched at build time and self-hosted by Next.js; a
visit to the deployed site does not request the font from Google Fonts. - Loads Google Analytics (gtag.js) if the deployment sets the
NEXT_PUBLIC_GA_IDenvironment variable. The production deploy may
do so; self-hosts opt in by setting their own ID. If unset, no
analytics script is rendered.
When enabled, GA receives page views plus
cta_click, contact_click, andoutbound_click events. CTA events include the store/browser label; contactevents include the clicked
mailto: or tel: target; outbound events includethe destination URL and link text. We do not configure a custom user ID or
send extension edits or MCP payloads. A tracker blocker can stop the script;
the site degrades gracefully without it.
The extension requests:
scripting— inject the inspector script when you open the panel.storage— see the storage table above.sidePanel(Chrome) /sidebar_action(Firefox) — render the editor in the browser's side panel / sidebar.identity(optional, requested only when you press Sign in) — to open Google's sign-in window for the collaboration feature, which is off by default.<all_urls>— so the editor works on any site you choose to inspect. It also lets the extension read the address and title of the tab you are editing, to re-attach after navigations and reloads, and to capture a screenshot of it. ThetabsandactiveTabpermissions are not requested.
The extension does nothing until you open the panel on a tab.
If you find behavior that contradicts the above, please open an issue or
follow the disclosure process in SECURITY.md.