xushenjie

Claude Session Sync — Development skill for Claude Code

Development community

Sync local Claude Code CLI sessions into the Claude desktop app sidebar (unofficial).

How to install Claude Session Sync

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

What Claude Session Sync does

Sync local Claude Code CLI sessions into the Claude desktop app sidebar (unofficial).

Alternatives in Development

  • Claude Desktop Debian — Unofficial Claude desktop app for Debian/Linux 2.5k ★
  • InspireSkill — InspireSkill: Local agent cockpit for the Inspire compute platform, unifying a composable CLI, Agent Skill, an 577 ★
  • Monet — Monet — Multi-engine mission control for coding agents (Claude Code and Codex today) 283 ★

README

claude-session-sync

**English** | [简体中文](https://github.com/xushenjie/claude-session-sync/blob/main/README.zh-CN.md)

[![CI](https://github.com/xushenjie/claude-session-sync/actions/workflows/ci.yml/badge.svg)](https://github.com/xushenjie/claude-session-sync/actions/workflows/ci.yml)

Make your local Claude Code **CLI sessions** show up in the sidebar of the **Claude desktop app's Code tab**, across multiple accounts and organizations. Sessions you archived or deleted in the desktop app are left out automatically. It can also permanently purge archived sessions.

⚠️ **Unofficial tool, not affiliated with Anthropic.** The desktop app's index format is undocumented and may change with any update. The tool previews by default, refuses to write while the desktop app is running, and every write or deletion can be undone.


Why

Local CLI and desktop sessions share the same transcripts, but **each side keeps its own session list**:

Desktop sidebar index (one per account/org)
  claude-code-sessions///
    ├─ local_.json        session index; cliSessionId points to a transcript below
    ├─ archived-sessions.idx    archived sessions (local_ IDs)
    └─ deleted_     marker left when a session is deleted in the desktop app
        │
        ▼
Transcripts (shared by CLI and desktop, account-independent)
  ~/.claude/projects//.jsonl
        ▲
        └─ `claude --resume` scans these directly

As a result:

  • the CLI sees sessions created in the desktop app, but the desktop app doesn't see sessions created in the CLI;
  • after switching account or organization, the desktop app reads a different index directory, so the list changes;
  • the official import paths (/desktop, claude --desktop --resume , desktop Help → Import CLI sessions) only import into the current account, and sometimes miss sessions.

This tool adds the missing index files for **every account/org** so CLI sessions appear in