Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Claude Context Keeper

Chrome/Edge/Brave (Manifest V3) extension. No build step, no API key.

Saves the context of your Claude chats (rule-based, or summarized by Claude, ChatGPT, Gemini or DeepSeek) and re-injects it into new chats — even after switching accounts.

Install

  1. Unzip this folder.
  2. Open chrome://extensions, turn on Developer mode.
  3. Click Load unpacked and select the claude-context-keeper folder.
  4. Open (or reload) claude.ai.

How it works

  • Auto-save (rule-based): while you chat, after ~6s idle the extension keeps your key messages, decisions/TODO lines, code heads, links and the tail of the last reply. Stored in chrome.storage.local, independent of which Claude account is logged in.
  • Summarize with AI: open an existing chat, click the floating button (bottom-right on claude.ai) or the toolbar popup, and choose Summarize with AI. Pick the platform from the dropdown:
    • Claude — types the summary prompt into the current chat, waits for the reply and saves it. Note: the prompt and reply stay visible in that chat.
    • ChatGPT / Gemini / DeepSeek — useful when your Claude limit is over. The extension builds a compact transcript (first message + latest messages, up to Max transcript characters), opens the platform in a new tab, pastes the prompt, sends it, waits for the reply, saves it as this chat's context, closes that tab and brings you back to claude.ai. You must be logged in on that site. If something fails (login, changed UI, timeout) the tab stays open with a red banner and claude.ai shows the error.
  • Restore: log out, log into the other account, open a new chat. If Auto-inject is on, the saved context is typed into the empty input box (never auto-sent). Add your question after "My question:" and send. You can also click Inject any time.
  • Popup: pick the AI platform, enable/disable, edit or delete each saved context, copy all, export/import JSON, edit the prompts/prefix/suffix, and set the max injected size.

Notes

  • Platform selectors live in the PLATFORMS object at the top of extai.js (claude.ai selectors are in SEL at the top of content.js). If a site changes its HTML, fix them there. On top of the selectors, reply detection has a structural fallback that keeps working when class names change, and the banner on the AI tab always offers a manual "Save reply and close tab" button as a rescue if automatic detection ever fails.
  • DeepSeek's streaming can hiccup briefly between chunks, so its reply detection uses a slightly longer stability window than ChatGPT/Gemini, tuned so the summary is saved and the tab closed within a few seconds of the reply finishing. If the reply ever looks stalled, the manual "Save reply and close tab" button in the banner is always available.
  • The transcript of your chat is sent to ChatGPT/Gemini/DeepSeek for summarizing. Keep that in mind for private chats. Automating those web UIs may also conflict with their terms, so use it for your own accounts and light use.
  • Everything stays local in your browser. Export files may contain sensitive chat content, so keep them safe.
  • Auto-inject fires on every empty new chat, not only after an account switch. Turn it off in Settings and use the Inject button if you prefer manual control.
  • Please follow Anthropic's usage policy; this is meant for carrying your own context between your own accounts.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages