Context-Resolver

Context Resolver

Seamlessly continue AI conversations across tools when you hit context window limits.

Context Resolver Logo

Capture → Compress → Continue


The Problem

You’re deep in a conversation with ChatGPT, debugging a complex issue. 50 messages in, you hit the context window limit. Now what?

The Solution

Context Resolver is a Chrome extension that acts as portable AI conversation memory:

  1. Capture — One-click extraction of your full conversation from any supported AI tool
  2. Compress — Intelligent compression that preserves key decisions, code, and requirements
  3. Continue — One-click injection of compressed context into any other AI tool

All data stays 100% local in your browser. No servers. No accounts. No tracking.


Supported Platforms

Platform Capture Inject
🤖 ChatGPT (chatgpt.com)
🟠 Claude (claude.ai)
✨ Gemini (gemini.google.com)
🔍 Perplexity (perplexity.ai)
🐋 DeepSeek (chat.deepseek.com)
⚡ Grok (grok.com)

Features

🎯 One-Click Capture

Navigate to any supported AI chat and click Capture Context. The extension extracts all messages, preserving code blocks, formatting, and conversation structure.

📦 Smart Compression

Three compression levels to fit any context window:

Level Size What’s Preserved
Full 100% Everything — raw conversation
Summary ~30-40% First/last exchanges + all code blocks + key decisions
Key Points ~10-15% Only decisions, requirements, action items, and code

💉 Structured Injection

Injects context with a structured handoff prompt that tells the receiving AI tool:

📚 Context Library

Manage multiple saved contexts with:

🔒 Privacy-First

⌨️ Keyboard Shortcuts

| Shortcut | Action | |:———|:——-| | ⌘⇧C / Ctrl+Shift+C | Capture context from current tab | | ⌘⇧V / Ctrl+Shift+V | Inject context into current tab |

💾 Export & Import

Backup your entire context library to JSON and import it on another machine.


Installation

This is the easiest way to install the extension for free:

  1. Go to the Releases page of this repository.
  2. Download the latest context-resolver-vX.X.X.zip file from the Assets section.
  3. Extract the .zip file into a folder on your computer.
  4. Open Google Chrome and navigate to chrome://extensions/.
  5. Enable Developer mode (the toggle in the top-right corner).
  6. Click the Load unpacked button in the top-left corner.
  7. Select the folder you extracted in Step 3.
  8. 📌 Tip: Click the puzzle piece icon in Chrome’s toolbar and pin Context Resolver so the side panel is always accessible!

Method 2: Build From Source (For Developers)

  1. Clone this repository: git clone https://github.com/PuneetDadhich/Context-Resolver.git
  2. Navigate to the project directory.
  3. Open Chrome and go to chrome://extensions/
  4. Enable Developer mode and click Load unpacked
  5. Select the cloned repository folder.

Usage

Capturing Context

  1. Navigate to any supported AI chat (e.g., ChatGPT)
  2. Have a conversation (or open an existing one)
  3. Click the Context Resolver icon in the toolbar to open the side panel
  4. Click Capture Context
  5. Your conversation is saved to the library

Injecting Context

  1. Navigate to a different AI chat (e.g., Claude)
  2. Open the Context Resolver side panel
  3. Click on a saved context from your library
  4. Choose a compression level (Full / Summary / Key Points)
  5. Click Inject into Current Chat
  6. The compressed context is pasted into the chat input
  7. Send the message to continue your conversation

Architecture

Context Resolver/
├── manifest.json                    # Manifest V3 configuration
├── icons/                           # Extension icons (16-128px)
├── background/
│   └── service-worker.js            # Event-driven message router
├── sidepanel/
│   ├── sidepanel.html               # Side panel UI
│   ├── sidepanel.css                # Premium dark-mode styles
│   └── sidepanel.js                 # UI logic & state management
├── content-scripts/
│   ├── platform-detector.js         # URL-based platform detection
│   ├── injector.js                  # Cross-platform injection utilities
│   └── adapters/
│       ├── base-adapter.js          # Abstract base adapter
│       ├── chatgpt-adapter.js       # ChatGPT DOM extraction
│       ├── claude-adapter.js        # Claude DOM extraction
│       ├── gemini-adapter.js        # Gemini DOM extraction
│       ├── perplexity-adapter.js    # Perplexity DOM extraction
│       ├── deepseek-adapter.js      # DeepSeek DOM extraction
│       └── grok-adapter.js          # Grok DOM extraction
├── lib/
│   ├── utils.js                     # Shared utilities
│   ├── storage.js                   # chrome.storage wrapper
│   ├── compressor.js                # Context compression engine
│   └── template.js                  # Handoff prompt templates
└── styles/
    └── design-tokens.css            # CSS design system

Key Design Decisions


Troubleshooting

“No supported AI platform detected”

Make sure you’re on the chat page of a supported platform, not a settings or account page.

Capture returns empty messages

Some platforms lazy-load messages. Try scrolling through the entire conversation before capturing.

Injection doesn’t paste text

Some platforms use custom editors (like ProseMirror or Quill). If direct injection fails, the text is copied to your clipboard — just paste manually with Ctrl+V.

Extension icon not visible

Click the puzzle piece icon in Chrome’s toolbar and pin Context Resolver.


Contributing

Contributions are welcome! To add support for a new platform:

  1. Create a new adapter in content-scripts/adapters/
  2. Extend BaseAdapter and implement static matches(), getMessages(), getInputElement()
  3. Register the adapter in content-scripts/platform-detector.js
  4. Add the URL pattern to manifest.json (content_scripts matches + host_permissions)

Privacy Policy

Context Resolver does not collect, transmit, or store any user data externally.

See PRIVACY.md for the full privacy policy.


License

MIT License — see LICENSE for details.


Changelog

v1.0.0 (2026-06-08)