Claude Persist banner
jagajaga jagajaga

Claude Persist

Communication community

Description

Persistent Claude Code sessions for VS Code / code-server — a server-side daemon + chat extension that survive browser refreshes

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Persist icon

Claude Persist

Persistent Claude Code sessions for VS Code and code-server.
Refresh the browser, close the laptop, come back on your phone —
the session keeps running on the server and the chat picks up where it left off.


**Install:** search **Claude Persist** in the Extensions view, or from [the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=jaga.claude-persist-vscode) and [Open VSX](https://open-vsx.org/extension/jaga/claude-persist-vscode). Your editor picks the build for its platform. The [listing](https://marketplace.visualstudio.com/items?itemName=jaga.claude-persist-vscode) has the feature list, requirements, settings and first-run steps; this file is about how it works and how to hack on it.

This is a community project. It is not affiliated with, or endorsed by, Anthropic.

![Claude Persist: sessions grouped by folder in the sidebar, a running turn with tool cards, and the composer showing model, branch and permission mode](extension/media/screenshot.png)

Why

A VS Code extension's processes die with the extension host. In code-server that host restarts on every page refresh, which is why the official Claude Code extension loses a live session when you reload ([anthropics/claude-code#36845](https://github.com/anthropics/claude-code/issues/36845)). Desktop VS Code restarts it too, just less often: on reload, on an extension update, on a crash.

VS Code solved this for terminals by moving them out of the extension host and into a process that outlives it. Claude Persist does the same for Claude sessions: the conversation lives in a daemon, and every window is a disposable view onto it.

browser tab           server
┌───────────────┐   ┌─────────────────────────────────┐
│ webview tabs  │   │  extension host (thin client)   │
│ (disposable)  │◄─►│