Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add codika-io/clave/plugin install claveWrote 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.
[](https://agentmods.dev/skills/codika-io/clave/recover-sessions)<a href="https://agentmods.dev/skills/codika-io/clave/recover-sessions"><img src="https://agentmods.dev/badge/skills/codika-io/clave/recover-sessions/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.
<a href="https://agentmods.dev/skills/codika-io/clave/recover-sessions"><img src="https://agentmods.dev/badge/skills/codika-io/clave/recover-sessions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00075 | $0.02081 |
| Opus 5.5 | $0.00030 | $0.00832 |
| Sonnet 5.5 | $0.00015 | $0.00416 |
| Haiku 4.5 | $0.00007 | $0.00208 |
Grade B, and why
recover-sessions scanned grade B with 1 finding 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 3mo ago.
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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
Retention is a **local** setting, `cleanupPeriodDays` in `~/.claude/settings.json` (default 30 days). It is not a server-side policy — nothing is fetched from Anthropic and nothing expires in the cloud. If the user's set How it starts
The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Recover Sessions
Clave tabs are disposable; the conversations behind them are not. Claude Code writes every session to a local transcript file that survives an app crash, a machine reboot, and Clave's own state being wiped. This skill finds those transcripts, works out what each session was about, and rebuilds the user's groups and tabs with the real conversations restored — not empty tabs.
Use it when the user says any of: "I lost my sessions", "my computer crashed, get my workspace back", "what was I working on?", "recover what I had".
What the user gets back
Their history, verbatim. claude --resume <session-id> reopens a session with its full context, so a recovered tab picks up exactly where it stopped. What is genuinely lost is only Clave's own arrangement — which group a tab sat in and what it was called — and that is what you reconstruct from evidence plus the user's memory.
Where the transcripts live
~/.claude/projects/<path-encoded-cwd>/<session-uuid>.jsonl
One JSONL file per session; the filename stem IS the session id you resume with. The directory name is the session's working directory with / replaced by -.
Retention is a local setting, cleanupPeriodDays in ~/.claude/settings.json (default 30 days). It is not a server-side policy — nothing is fetched from Anthropic and nothing expires in the cloud. If the user's setting is low and they care about recovery, mention raising it; that is the whole fix.
Step 1 — Ask what they remember, briefly
Before scanning, get the user's own picture in one short exchange: roughly how many groups, what the big ones were about, and when they were last working. Do not interrogate them. Vague answers are fine and normal ("one group for the mobile app, a big one for the API rewrite, and something about billing") — the scan supplies the precision, their memory supplies the grouping and the names.
If they cannot remember anything, skip straight to the scan and present what you find, newest first.
What ships with it
1 file 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.
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.
- 3mo ago First seen · 131 lines · 75 tokens per session scan B 0b9df731d9ac
recover-sessions is a skill published in the GitHub repository codika-io/clave (47 stars, last pushed 2mo ago), licensed MIT. It adds 75 tokens to every session and 2,081 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
recover-sessions compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| recover-sessionscodika-io/clave | Skill | 47 | 2mo ago | MIT | B | 75 | Claude Code |
| warpctrlwarpdotdev/warp | Skill | 66k | yesterday | AGPL-3.0 | A | 69 | Claude Code, Codex |
| change-keybindingwarpdotdev/warp | Skill | 66k | yesterday | AGPL-3.0 | A | 82 | Claude Code, Codex |
| daily-briefingvellum-ai/vellum-assistant | Skill | 1.5k | 5d ago | MIT | A | 75 | Claude Code, Codex |
| create-tab-configwarpdotdev/warp | Skill | 66k | yesterday | AGPL-3.0 | A | 44 | Claude Code, Codex |
| screencapyahorbarkouski/screencap | Skill | 131 | 4d ago | MIT | A | 138 | Claude Code, Codex |
| liney-clieverettjf/liney | Skill | 149 | 17d ago | Apache-2.0 | B | 195 | Claude Code, Codex |