Squash - Browser Memory Layer for AI
Squash adds an invisible memory layer to your browser, compressing every click into portable context for any AI agent.
What it does
Squash studies your browsing patterns, learns how you work, and automatically provides relevant context when you use AI tools like ChatGPT or Claude. No more re-explaining yourself to every new AI conversation.
Quick Start
Clone and build:
git clone https://github.com/kstonekuan/squash-browser-memory.git
cd squash-browser-memory
pnpm install
pnpm build
Install in Chrome:
- Open
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" → select the
dist
folder
Choose your AI provider (in extension settings):
- Chrome AI (Local): Private, on-device analysis
- Claude API: More powerful, requires API key
Key Features
- Ambient Analysis: Runs in the background, building understanding over time
- Smart Memory: Learns and refines patterns across sessions
- Privacy First: Local analysis by default, explicit consent for remote services
- Context Injection: Adds a "Context" button to ChatGPT and Claude that inserts relevant info from your browsing history
AI Provider Setup
Chrome AI (100% Local)
- Chrome 138+ required
- Enable in
chrome://flags
→ "Prompt API for Gemini Nano"
- Update in
chrome://components
→ "Optimization Guide On Device Model" (~22GB download)
Claude API (Remote)
Usage
- Ambient Mode: Enable in Advanced Settings for automatic hourly analysis
- Manual Analysis: Click "Analyze History" in the side panel
- Context Injection: Type in ChatGPT/Claude → click "Context" → select relevant suggestions
Planned Features
- MCP Server Integration: Expose your browsing patterns and profile as an MCP (Model Context Protocol) server for other AI tools
- More AI Providers: Support for additional LLM providers beyond Chrome AI and Claude
- Enhanced Context Matching: Smarter relevance algorithms for context suggestions
- Workflow Automation: Detect and suggest automation for repetitive tasks
For Developers
pnpm dev # Development with hot reload
pnpm build # Build extension
pnpm check # Run all quality checks
pnpm test # Run tests
See ARCHITECTURE.md for technical details.
Privacy
- Local mode: Your data never leaves your device
- Remote mode: Data sent to API provider (requires explicit setup)
- All data stored locally in Chrome storage
Requirements
- Chrome 138+
- Node.js & pnpm
- ~22GB free space (for Chrome AI model)
Resources