Browser Extension
Your agent can only help with what it knows. Conversations and memory cover a lot, but there’s one massive blind spot: what you’re reading right now.
Context Bro is a standalone Chrome extension that bridges this gap. It extracts content from web pages and sends it to your agent’s event stream through a webhook endpoint.
What Context Bro Does
Section titled “What Context Bro Does”| Feature | How It Works |
|---|---|
| Manual Clip | Click the extension icon or press Ctrl+Shift+K to share the current page |
| Selection Share | Select text → floating button or right-click → share just the selection |
| Scheduled Sharing | Configure a domain allowlist + interval → auto-share pages you’re browsing |
| Live Stream Adapters | Twitch and YouTube adapters capture chat, donations, and stream info in real time |
| Template Engine | Control exactly what data is extracted and how the JSON payload is shaped |
Context Bro is not the same as the AnySoul browser extension. It’s a separate, lower-permission extension that only reads pages you explicitly allow:
| AnySoul Extension | Context Bro | |
|---|---|---|
| Core behavior | Agent drives the browser (opens tabs, runs searches) | You share what you’re reading |
| Permissions | Broad (<all_urls>) | Conservative (allowlist only) |
| Trust level | High — agent can see any page | Low — you control what’s shared |
| Install barrier | Requires trusting agent automation | Web clipper mental model |
1. Create a Webhook Endpoint
Section titled “1. Create a Webhook Endpoint”Context Bro sends data to your agent through a standard webhook. Create one in AnySoul first:
- Open Agent Settings → Webhooks
- Click Create webhook with a name like
context-bro - Choose
api_keyauthentication mode - Copy the endpoint URL and API key
2. Install Context Bro
Section titled “2. Install Context Bro”Install Context Bro from the Chrome Web Store and open its Options page.
3. Add Your Endpoint
Section titled “3. Add Your Endpoint”In Context Bro Options → Endpoints:
- Click Add Endpoint
- Enter a name (e.g.
My Soul) - Paste the webhook URL:
https://api.anysoul.ai/api/ingest/webhook/<webhookId>
- Add a custom header:
X-API-Key→ your API key - Click Save
4. Share a Page
Section titled “4. Share a Page”Open any web page, click the Context Bro icon, and hit Share. The page content is extracted, compiled through the active template, and POSTed to your webhook endpoint. Your agent sees a new event:
- [02-22 14:30] [evt_cb001] context-bro/stackoverflow.com (page_context): How to fix lifetime errors in RustHow It Connects to AnySoul
Section titled “How It Connects to AnySoul”Context Bro uses the same webhook ingest endpoint as any other integration. No special API is needed:
Context Bro Extension │ │ Extract page → compile template → JSON payload │ ▼POST /api/ingest/webhook/<webhookId> │ │ Webhook mapping engine → standard Event │ ▼Agent Event StreamThe webhook mapping editor transforms the incoming JSON into event fields. Context Bro’s default template produces a payload that works with the default webhook mapping out of the box.
Best Use Cases
Section titled “Best Use Cases”Web Clipper for Knowledge Workers
Section titled “Web Clipper for Knowledge Workers”The most common setup: share articles, docs, and code you’re reading throughout the day.
Example scenario — learning Rust:
- You browse the Rust Book, Stack Overflow, and GitHub issues
- Context Bro auto-shares pages every 15 minutes (allowlist:
doc.rust-lang.org,stackoverflow.com,github.com) - You select a confusing code snippet →
Ctrl+Shift+K→ instant share - Your agent notices you’ve been reading about lifetimes for an hour → sends a message explaining elision rules in your own context
- Agent saves a “Rust learning progress” memory node, linking today’s topics
Why this works: The agent already knows you want to learn Rust (from conversations). Context Bro tells it what you’re reading right now — closing the gap between intent and action.
Live Streaming with Social Stream Ninja
Section titled “Live Streaming with Social Stream Ninja”Social Stream Ninja (SSN) is a browser extension by Steve Seguin that aggregates live chat from 120+ platforms (YouTube, Twitch, TikTok, Facebook, Discord, and more). It’s the go-to tool for streamers who need cross-platform chat integration.
SSN can forward chat events directly to a AnySoul webhook — no Context Bro needed:
What SSN provides:
| Feature | Description |
|---|---|
| 120+ platform support | YouTube, Twitch, TikTok, Facebook, Kick, Discord, and more |
| Normalized messages | Different platforms unified into a standard JSON format |
| Custom triggers | Match messages by content, user role, donation amount, regex patterns |
| Custom actions | HTTP POST, WebSocket push, OBS overlay, TTS, MIDI signals |
| Real-time processing | MutationObserver-based capture with dedup and batching |
Trigger → Action examples:
| Trigger | Action | Agent Use Case |
|---|---|---|
| Any chat message | POST to AnySoul webhook | Agent follows live chat |
| Super Chat ≥ $5 | POST to webhook | Agent tracks community engagement |
Message matches !question * | POST to webhook | Agent answers viewer questions |
| New subscriber | POST to webhook | Agent records community growth |
| Raid event | POST to webhook | Agent notes channel interactions |
Setup with AnySoul:
- Create a webhook endpoint in Agent Settings → Webhooks with
api_keyauth - In Social Stream Ninja, configure the webhook URL and include the key in the JSON body (SSN may not support custom headers — see Webhook: Integrating Social Stream Ninja)
- Configure your mapping to extract
platform,username,message, andevent_type
Your agent then sees a live feed:
- [20:00] [evt_ssn01] youtube/alice (message): That explanation was so clear!- [20:01] [evt_ssn02] twitch/bob (donation): $10 — "Love the content, keep it up!"- [20:02] [evt_ssn03] youtube/carol (membership): New member joinedContext Bro vs. Social Stream Ninja:
| Context Bro | Social Stream Ninja | |
|---|---|---|
| Focus | Static web pages + Twitch/YouTube | 120+ live/social platforms |
| Strength | Page content extraction (Defuddle + template engine) | Cross-platform chat aggregation + triggers |
| Scheduled sharing | Yes (Chrome Alarm + allowlist) | No |
| Template engine | Yes (50+ filters, CSS selectors, Schema.org) | No |
| Custom triggers/actions | No (agent decides how to respond) | Yes (regex, donation threshold, role-based) |
| Best for | Knowledge work, research, learning | Live streaming, community management |
Both tools share the same insight: your browser is the center of your digital life, and its content is the most valuable context source for AI agents. SSN turns that context into streamer automation; Context Bro turns it into agent awareness.
You can use both simultaneously — SSN for live chat aggregation across all platforms, and Context Bro for everything else (articles, docs, code, selections).
Templates
Section titled “Templates”Context Bro includes a template engine extracted from Obsidian Web Clipper (MIT). Templates control the shape of the JSON payload sent to your endpoint.
The default template:
{ "title": "{{title}}", "url": "{{url}}", "content": "{{content}}", "author": "{{author}}", "published": "{{published}}", "domain": "{{domain}}", "description": "{{description}}", "wordCount": "{{wordCount}}", "clippedAt": "{{date}} {{time}}"}You can create site-specific templates with trigger patterns (e.g. github.com/*/pull/* for PRs) and use CSS selector variables ({{selector:.classname}}) or Schema.org variables ({{schema:@Article:author}}).
See the Context Bro documentation for the full template reference.
Scheduled Sharing
Section titled “Scheduled Sharing”Configure automatic sharing for domains you frequently visit:
- Open Context Bro Options → Allowlist
- Add domains (e.g.
github.com,*.reddit.com,docs.python.org) - Open Options → Schedule
- Set interval (5 min – 2 hours) and mode:
- Focused tab — only shares the tab you’re actively viewing
- All allowed — shares all open tabs matching the allowlist
Pages are deduplicated by content hash — if the page hasn’t changed since the last share, it’s skipped.
Related
Section titled “Related”- Webhook — how webhook endpoints work
- API Polling — browser-based pull ingestion
- Event Stream concept
- Context Bro documentation — full extension docs
- Use Case: AI Companion — build an always-on companion with Context Bro
- Use Case: AI VTuber — connect your agent to live stream chat