name-session

name-session is a skill for Claude Code, Codex from flurdy/agent-skills. It costs 57 tokens per session (884 once invoked), scanned A, original, MIT.

A helper that proposes a readable name for the current coding session from its branch ticket, active work item, pull request, and task context. It prints the command needed to rename the session in the current client.

In plain words
What is it for?
Use it when a session name does not describe the work and you want a paste-ready rename command for Pi or Claude Code.
Why use it?
It replaces generic session names with names that make ongoing work easier to identify in a list.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/flurdy/agent-skills/name-session
Any agent
npx skills add flurdy/agent-skills --skill name-session
Clone the repo
git clone --depth 1 https://github.com/flurdy/agent-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/flurdy/agent-skills/name-session.svg)](https://agentmods.dev/skills/flurdy/agent-skills/name-session)
Your own site
<a href="https://agentmods.dev/skills/flurdy/agent-skills/name-session"><img src="https://agentmods.dev/badge/skills/flurdy/agent-skills/name-session.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00057 $0.00884
Opus 5 $0.00028 $0.00442
Sonnet 5 $0.00011 $0.00177
Haiku 4.5 $0.00006 $0.00088

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

Security

Grade A, and why

name-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 5d 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.

skills/name-session/SKILL.md · 79 lines

How it starts

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

Name session — propose a conventional session name

Build a <scope>-<descriptive> name from the current context and emit the active client's ready-to-paste rename command.

Important — client command and limitation

  • It cannot rename the session for you. Slash commands emitted in model output are inert text; the user must enter the command in the client's command input.
  • Pi: use /name {session-name}. Never suggest /rename or /settings name in Pi.
  • Claude Code: use /rename {session-name}.
  • If the client is unknown, state both commands rather than guessing.

Convention

<scope>-<descriptive>
  • scope — the most specific identifier available, in priority order:
    1. Jira ticket from the branch name (e.g. AB-1505) — keep its natural Jira case.
    2. Active bead ID (e.g. bd-123) if no ticket.
    3. PR number (e.g. pr-6563) if neither.
    4. Omit the scope entirely if none apply — just use the descriptive part.
  • descriptive — kebab-case, ≤4 words, the most specific noun phrase for what this session is doing. rebase-pr-status beats git-stuff. Derive it from the conversation, not the branch (the branch already gives the scope).

Examples: AB-1505-rebase-pr-status, bd-412-flaky-test-hunt, pr-6563-review-comments, auth0-logout-investigation.

Instructions

1. Gather scope signals (parallel)

git rev-parse --abbrev-ref HEAD
bd list --status=in_progress 2>/dev/null
  • Extract a Jira ticket from the branch by matching /[A-Z]+-\d+/.
  • If no ticket and exactly one bead is in progress, use its ID.
  • If neither and there's an obvious PR in play this session, run gh pr view --json number,title to grab the number. Don't fetch a PR speculatively — only if the session is clearly about one.

Fail soft: any missing signal just drops to the next priority. Not in a git repo → skip straight to a descriptive-only name.

2. Derive the descriptive half

From the current conversation, pick the ≤4-word kebab phrase that best names what this session is for. Prefer the concrete task over the topic — rebase-pr-status over maintenance. If the session genuinely spans several unrelated things, name the dominant one; don't try to cram them all in.

Read the full file on GitHub · 79 lines

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. 5d ago First seen · 79 lines · 57 tokens per session scan A 5d8d5e3d1bc2

Subscribe to this mod's changes

name-session is a skill published in the GitHub repository flurdy/agent-skills (8 stars, last pushed 7d ago), licensed MIT. It adds 57 tokens to every session and 884 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-31.