find-session

find-session is a skill for Claude Code, Codex from fleurytian/awesome-claude-skills. It costs 54 tokens per session (981 once invoked), scanned A, original, MIT.

A tool for finding the exact UUID of a Claude Code conversation and optionally creating a short shell command to reopen it.

In plain words
What is it for?
Use it to search saved Claude sessions, identify one by its contents, resume it by UUID, or create a one-word resume command.
Why use it?
It avoids resuming the wrong conversation when several sessions use the same project folder.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/foo/Desktop/MyProj.

Good fit Use it to search saved Claude sessions, identify one by its contents, resume it by UUID, or create a one-word resume command.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

Made for: Claude Code, Codex.

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 find-session

README.md
[![agentmods](https://agentmods.dev/badge/skills/fleurytian/awesome-claude-skills/find-session/github.svg)](https://agentmods.dev/skills/fleurytian/awesome-claude-skills/find-session)
Your own site
<a href="https://agentmods.dev/skills/fleurytian/awesome-claude-skills/find-session"><img src="https://agentmods.dev/badge/skills/fleurytian/awesome-claude-skills/find-session/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 find-session

Your own site · 80×15
<a href="https://agentmods.dev/skills/fleurytian/awesome-claude-skills/find-session"><img src="https://agentmods.dev/badge/skills/fleurytian/awesome-claude-skills/find-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 981 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.
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.00054 $0.00981
Opus 5 $0.00027 $0.00491
Sonnet 5 $0.00011 $0.00196
Haiku 4.5 $0.00005 $0.00098

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

Security

Grade A, and why

find-session 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 11d 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.

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.

find-session/SKILL.md · 115 lines

How it starts

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

find-session — pin a specific Claude conversation

claude --continue picks "most recent in cwd" — unreliable when multiple sessions share a directory. claude --resume <uuid> is exact. This skill finds the right UUID by grepping jsonl files, then writes a one-word shell function so the user types e.g. aichain to resume that exact conversation.

When to use

  • User says "I can't find my session" / "claude --continue picks wrong one"
  • User wants a one-word resume command for a specific long-running conversation
  • Multiple .jsonl files in ~/.claude/projects/<encoded-cwd>/ exist

Workflow

1. Find the encoded-cwd directory

Sessions are stored under ~/.claude/projects/<encoded-cwd>/. The encoding replaces / with -, so cwd /Users/foo/Desktop/MyProj becomes -Users-foo-Desktop-MyProj. Often the cwd at session-start was the user's HOME, even if work happened in a subdirectory.

If unsure which encoded-cwd to scan:

ls -dt ~/.claude/projects/*/ | head -5

The most recently modified directory is likely the right one.

2. List active session files

ls -lt ~/.claude/projects/<encoded-cwd>/*.jsonl 2>/dev/null | head -10

Multiple files = multiple sessions. The biggest by size is NOT necessarily the right one — both the current assistant and other parallel sessions can be wrong about that.

3. Get a unique-content hint from the user

Ask: "What's something only this conversation would contain? A specific filename you created, a unique tool you ran, a project name, etc."

Good hints (highly unique):

  • A hostname / URL the conversation generated (e.g. waqvu5.png)
  • A file path that was created by this session (e.g. kimi_research_results)
  • A specific function name written in this session (e.g. compute_factor_scores)
  • A unique error message they remember

Bad hints (too common, will match multiple):

  • Generic words like "Python", "test", "fix"
  • Common library names

4. grep to find matching session

for f in ~/.claude/projects/<encoded-cwd>/*.jsonl; do
  echo "=== $(basename "$f") ==="
  grep -c "<unique-string>" "$f" 2>/dev/null
done

Read the full file on GitHub · 115 lines

Files

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.

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. 11d ago First seen · 115 lines · 54 tokens per session scan A 32ed791fccec

Subscribe to this mod's changes

find-session is a skill published in the GitHub repository fleurytian/awesome-claude-skills (317 stars, last pushed 4mo ago), licensed MIT. It adds 54 tokens to every session and 981 once invoked, about $0.0003 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.