desktop-sessions-discovery

desktop-sessions-discovery is a skill for Claude Code from AnastasiyaW/codex-claude-code-config. It costs 97 tokens per session (2,212 once invoked), scanned A, original, MIT.

A tool for finding Claude Desktop sessions stored on your computer under different account and organisation folders. Claude Desktop is Anthropic's desktop app for working with Claude, an AI assistant.

In plain words
What is it for?
Use it when sessions seem missing after an account switch, when you use several Claude accounts, or when you need to search stored session files on macOS or Windows.
Why use it?
Switching Claude accounts can make older sessions disappear from the app even though their files remain on disk. This tool helps locate and selectively restore them.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the claude-code-config plugin — 57 skills, 8 agents shipped together

Good fit Use it when sessions seem missing after an account switch, when you use several Claude accounts, or when you need to search stored session files on macOS or Windows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AnastasiyaW/codex-claude-code-config --skill desktop-sessions-discovery
Clone the repo
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config

Made for: Claude Code.

Or install claude-code-config, the plugin that ships this one along with the rest of its 57 skills, 8 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for desktop-sessions-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery/github.svg)](https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery)
Your own site
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for desktop-sessions-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery"><img src="https://agentmods.dev/badge/skills/anastasiyaw/codex-claude-code-config/desktop-sessions-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,212 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00097 $0.02212
Opus 5 $0.00048 $0.01106
Sonnet 5 $0.00019 $0.00442
Haiku 4.5 $0.00010 $0.00221

Measured 2d ago against content hash c2b41362f39b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

desktop-sessions-discovery scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/sessions_find.py, scripts/sessions_inventory.py, scripts/sessions_registry.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/operational/desktop-sessions-discovery/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Desktop Sessions Discovery Toolkit

Claude desktop app (Mac/Windows native) stores sessions per <accountId>/<orgId>/. When you switch accounts, old sessions become invisible in UI — they remain on disk but LocalSessionManager.loadSessions() only reads the active accountId folder.

Related reports: #48511 was opened 2026-04-15 and is closed as not planned; #26452 was opened 2026-02-18 and remains open as checked 2026-09-06. These are version-specific user reports, not proof that the installed build has the same cause or that a fix does not exist.

This skill is a community workaround. Use at your own risk — see Caveats.

Storage paths (reverse-engineered, NOT in official Anthropic docs)

Install type Path
Win32 .exe install %APPDATA%\Claude\claude-code-sessions\<acct>\<org>\local_<sid>.json
Windows MSIX (Microsoft Store) %LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude-code-sessions\<acct>\<org>\ — issue #48362 reports an atomic-rename failure in a specific environment; verify the current local error before attributing a missing session to it.
macOS ~/Library/Application Support/Claude/claude-code-sessions/<acct>/<org>/local_<sid>.json
Legacy (pre-Feb 2026) same path, but folder name was local-agent-mode-sessions/

Source: bundled JS .vite/build/index.js line 771: const $6t="claude-code-sessions". May change in any release.

Schema of local_*.json

{
  "sessionId": "uuid",
  "cliSessionId": "uuid",
  "cwd": "C:\\path\\to\\project",
  "originCwd": "...",
  "createdAt": <unix ms timestamp OR ISO string>,
  "lastActivityAt": <unix ms timestamp OR ISO string>,
  "model": "claude-opus-4-7-...",
  "effort": "default",
  "isArchived": false,
  "title": "Human-readable title shown in UI",
  "permissionMode": "default",
  "remoteMcpServersConfig": [],
  "completedTurns": 12
}

Read the full file on GitHub · 172 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +18 lines c2b41362f39b
  2. 10d ago First seen · 154 lines · 97 tokens per session scan A 4a3081b71893

Subscribe to this mod's changes

desktop-sessions-discovery is a skill published in the GitHub repository AnastasiyaW/codex-claude-code-config (149 stars, last pushed yesterday), licensed MIT. It adds 97 tokens to every session and 2,212 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

unlazy

Enforces completion discipline for substantial autonomous work by writing acceptance gates before execution, decomposing work with the Depth Tree, running approved checks, and re-verifying evidence before reporting. Use when an agent faces a long or multi-part task, work that has returned half-done, an exhaustive…

Leonxlnx/unlazy · 100 tokens

lx

Codebase exploration tool that reads many files or whole directories in a single call, with per-file headers, glob include/exclude filters, function/type skeleton extraction (signatures only, no bodies), and head/tail line slicing.

rasros/lx · 48 tokens

flow-lean

Use when the user explicitly asks for Flow Lean, lean or less verbose output, action-first responses, expansion of a compressed Flow Lean answer, or Flow Lean recap and skills-footer controls.

FlorianBruniaux/flow-lean · 41 tokens

tldr

Verdict-first communication mode. Cuts token usage 60-75% by enforcing TLDR rules (1-sentence default, 3-word target, shape dispatch) while preserving full technical accuracy and truth priority. Supports levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "tldr mode", "talk…

0p9b/TLDR · 112 tokens

tldr-help

Quick-reference card for all tldr modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /tldr-help, "tldr help", "what TLDR commands", "how do I use TLDR".

0p9b/TLDR · 53 tokens

tldr-update

Update TLDR from GitHub and refresh installed agent hooks, skills, MCP, and rules. Triggers on /tldr-update, "tldr update", "update TLDR", or when the user asks to upgrade the TLDR install. Run via Bash: tldr update or node /bin/install.js update.

0p9b/TLDR · 73 tokens