Browse the internet together with Claude! Share webpage content instantly and ask questions directly in your browser with automatic Claude Code integration.
- Instantly shares webpage content to Claude Code context
- Continue conversation in Claude Code terminal
- Perfect for ongoing discussions and analysis
- Works exactly like the original version
- Opens beautiful popup dialog
- Ask questions directly about the webpage
- Claude responds in popup - no window switching!
- Automatic Claude Code integration via subprocess
- Session-specific context files for each conversation
Use Ctrl+Shift+C when you want to build context for ongoing conversation, and Ctrl+Shift+D when you have a quick question about the current page!
cd shared_browsing/
pip3 install flask flask-cors requests beautifulsoup4
./start.sh- Open Firefox
- Go to
about:debugging - Click "This Firefox"
- Click "Load Temporary Add-on..."
- Select
firefox_extension/manifest.json
- Visit any webpage
- Press Ctrl+Shift+C for classic context sharing
- Press Ctrl+Shift+D for interactive questions
- Both modes work simultaneously!
- Ctrl+Shift+C on any webpage
- Content shared to Claude Code context
- Switch to Claude Code terminal
- Ask questions about the shared content
- Perfect for ongoing conversations and context building
- Ctrl+Shift+D on any webpage
- Beautiful popup appears with page title and URL
- Type your question about the page content
- Click "Ask Claude" (or Ctrl+Enter)
- Claude analyzes the full page content automatically
- Response appears in the popup instantly!
Examples:
- "What is this article about?"
- "Summarize the main points"
- "Is there anything controversial here?"
- "What are the key takeaways?"
- Extension Icon: Click toolbar icon
- Right-click Menu: "π€ Share with Claude"
- Page title and URL
- Full page content (no length limits in develop!)
- Timestamp for context
- No sensitive data (passwords filtered out)
- Automatic password field filtering
- Script and style removal
- Ad and navigation filtering
- Content sanitization for safe processing
- Session-specific context files (develop branch)
- Firefox 60+
- Python 3.7+
- API server running on 127.0.0.1:8080
shared_browsing/
βββ api/
β βββ server.py # Main API server
β βββ requirements.txt # Python dependencies
β βββ context_history.json # Saved context
βββ firefox_extension/
β βββ manifest.json # Extension config
β βββ background.js # Background script
β βββ content.js # Content extraction
β βββ popup.html # Extension popup
β βββ popup.js # Popup logic
βββ README.md # This file
- Check if API server is running:
curl 127.0.0.1:8080/api/status - Restart the server:
./start.sh
- Make sure server is running on port 8080
- Check firewall settings
- Verify the server GUI shows received content
- Check browser console for errors (F12)
- Batch browsing: Share multiple pages quickly with Ctrl+Shift+C
- Context persistence: All shared content is saved automatically
- Logged-in content: Works with authenticated/personalized pages
- Clean extraction: Main content only, no ads or navigation
- π Browse to interesting article/discussion
- β¨οΈ Press
Ctrl+Shift+C - π€ Ask Claude about the content
- π Continue browsing and sharing
- π¬ Maintain context across multiple pages
No more copy-paste! Instant context sharing! π
This system has been successfully tested and verified to work with:
- β Firefox Extension: Captures content via Ctrl+Shift+C
- β API Server: Runs on 127.0.0.1:8080 with CORS enabled
- β Content Filtering: Automatically removes passwords and sensitive data
- β Context Persistence: Maintains conversation history across pages
- β Claude Integration: Real-time content sharing with Claude Code
Last tested: October 2025 with Firefox and Python 3.9
GET /api/status- Check server statusPOST /api/extract- Extract webpage contentPOST /api/add_message- Add user message to contextGET /api/get_context- Get full context for ClaudePOST /api/clear_context- Clear context historyPOST /api/ask_claude- Ask Claude directly (develop branch only)
# Test server status
curl http://127.0.0.1:8080/api/status
# Extract webpage
curl -X POST http://127.0.0.1:8080/api/extract \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "method": "requests"}'
# Test interactive Claude (develop branch only)
curl -X POST http://127.0.0.1:8080/api/ask_claude \
-H "Content-Type: application/json" \
-d '{"pageData": {"url": "https://example.com", "content": "Sample content"}, "prompt": "What is this about?"}'- No more context switching! Ask questions directly in browser
- Beautiful popup interface with real-time responses
- Automatic Claude Code execution via subprocess
- Session-specific context files for better isolation
- Enhanced prompt engineering ensures Claude reads full page content
- Removed all content length limits for full page extraction
- Session-based context files (
session_context_[timestamp].json) - Enhanced error handling and timeout management
- Auto-cleanup of temporary files after 5 minutes
- Improved README and documentation for AI agents
Thanks to Knight WIRTUOZ from Hejto.pl for suggesting the interactive popup feature that eliminates window switching!
| Feature | Main Branch | Develop Branch |
|---|---|---|
| Content Sharing | β Ctrl+Shift+C | β Ctrl+Shift+C |
| Claude Integration | Manual (context) | π Automatic (popup) |
| User Experience | Switch to terminal | Stay in browser |
| Response Time | Depends on manual input | β‘ Instant |
| Content Limits | Basic filtering | π₯ No limits |
| Session Management | Single context file | π Per-session files |
Recommendation: Use develop branch for the best experience!