Skip to main content

Overview

ContextFort automatically detects when browser agents are active and provides comprehensive monitoring capabilities. Every agent interaction is tracked, captured, and stored locally for review and audit.
Privacy First: All screenshots and session data are stored locally on your machine. Nothing is transmitted to external servers.

How Agent Detection Works

ContextFort uses Chrome’s Tab Groups API to detect agent activity:
  1. Tab Group Monitoring: When an agent creates or updates a tab group with the ⌛ emoji, ContextFort detects this as an active agent session
  2. Automatic Session Creation: A new session is created and tracking begins immediately
  3. Event Listeners: Content scripts listen for all agent interactions (clicks, inputs, navigation)
  4. Screenshot Capture: Screenshots are automatically captured at key moments

Detection Implementation

chrome-extension/background.js
ContextFort specifically monitors for the ⌛ (hourglass) emoji used by Claude’s Computer Use agent mode.

Session Tracking

What Gets Tracked

Each agent session captures:

Session Metadata

  • Unique session ID
  • Start and end timestamps
  • Session duration
  • Tab information

Navigation History

  • All URLs visited
  • Page titles
  • Domain transitions
  • Navigation timestamps

Agent Actions

  • Click events with coordinates
  • Input field interactions
  • Right-click actions
  • Double-click events

Screenshots

  • Before/after action pairs
  • Page reads
  • Screenshot count per session
  • Full page captures

Session Lifecycle

chrome-extension/background.js

Screenshot Capture

Automatic Screenshot Triggers

Screenshots are captured automatically when agents:
Before Screenshot: Captured immediately when agent clicks After Screenshot: Captured 300ms after click to show the result
chrome-extension/background.js
Debounced Capture: Input events are debounced for 1 second to avoid excessive screenshots Final Screenshot: Captured 500ms after the last input to show complete text
chrome-extension/background.js

Screenshot Storage

Event Listeners

Content Script Implementation

The content script (injected into every page) captures all agent interactions:
chrome-extension/content.js

Element Capture

All element metadata is captured for audit purposes:
chrome-extension/content.js

Viewing Session History

Access the Visibility dashboard to:
  1. View All Sessions: See complete list of all agent sessions
  2. Session Details: Click into any session to see:
    • Full timeline of events
    • All screenshots with timestamps
    • Navigation history
    • Session duration and metadata
  3. Export Data: Download sessions and screenshots for offline review

Open Visibility Dashboard

Click the ContextFort icon in Chrome to open the dashboard

Data Deletion

Delete All Data

  1. Go to chrome://extensions/
  2. Find ContextFort
  3. Click “Remove” to uninstall (deletes all data)

Delete Specific Sessions

Per-session deletion is not yet available in the dashboard. You can delete all sessions using chrome.storage.local.remove(['sessions']).

Clear Storage

Performance Optimization

Queued Storage Writes

To prevent storage bottlenecks, screenshot writes are queued:
chrome-extension/background.js

Next Steps

Session Isolation

Learn how ContextFort swaps cookies to isolate agent sessions

Blocking Rules

Configure URL and domain blocking to prevent context mixing

Screenshots

Deep dive into screenshot capture and storage

Dashboard

Explore the Visibility dashboard UI