session-manager

session-manager is a skill for Claude Code from sxhmilyoyo/sundayhao-plugins. It costs 49 tokens per session (1,099 once invoked), scanned A, original, Apache-2.0.

A session metadata tool that updates the current coding session’s project, tags, name, and summary in an Obsidian note.

In plain words
What is it for?
Use it to label a session, assign it to a project, add categories such as debugging, or write a one-line recap.
Why use it?
It keeps session details organized and searchable instead of leaving them scattered or unnamed.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: names the AskUserQuestion tool.

Part of the second-brain plugin — 6 skills shipped together

Good fit Use it to label a session, assign it to a project, add categories such as debugging, or write a one-line recap.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sxhmilyoyo/sundayhao-plugins/session-manager
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 sxhmilyoyo/sundayhao-plugins --skill session-manager
Clone the repo
git clone --depth 1 https://github.com/sxhmilyoyo/sundayhao-plugins

Made for: Claude Code.

Or install second-brain, the plugin that ships this one along with the rest of its 6 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sxhmilyoyo/sundayhao-plugins/session-manager"><img src="https://agentmods.dev/badge/skills/sxhmilyoyo/sundayhao-plugins/session-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,099 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.00049 $0.01099
Opus 5.5 $0.00020 $0.00440
Sonnet 5.5 $0.00010 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured 1mo ago against content hash 411a6c4529d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-manager 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 1mo 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.

second-brain/skills/session-manager/SKILL.md · 111 lines

How it starts

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

Session Manager

You own four properties on the current session's note: session_name, project, tags and summary. Ownership reads by stage. The hooks seed a note when the session starts and never overwrite a value that is already there. You are the only writer while the session runs. Once it has ended, the recap writes the session's description — its project, tags and summary — from the whole conversation, overwriting what is there, because by then it has more context than anyone had during the session (ADR-0006). Everything else on the note belongs to the hooks.

Property Type Holds
session_name text The session's name, kept in step with /rename
project text The knowledge-bank domain the work belongs to, one of the vault's projects/ folders, empty when it belongs to none
tags list Categorization, drawn from the vault's existing tags
summary text One line on what the session accomplished

project names a domain, never a repository or directory: those are tags. A value outside the domain set is unresolved, which is what a note written before this rule holds, so treat it as empty and set it properly rather than leaving it to be read as a domain.

Preflight

Run all five steps on every invocation, before the user's request and whatever they asked for.

1. Locate the note. The SessionStart hook injects a docs path into your system prompt:

Session docs path: {KB_PATH}/_sessions/2026-03-04/abc123-def456/docs/

Everything from _sessions/ onward is vault-relative. Drop the trailing docs/ and append session.md, giving _sessions/2026-03-04/abc123-def456/session.md. Read it:

obsidian vault="knowledge-bank" read path="<vault-relative-path>"

If no docs path was injected, ask the user for the session folder.

2. Sync the name. /rename writes a customTitle to the transcript, which the note does not see:

Read the full file on GitHub · 111 lines

Files

What ships with it

2 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. 1mo ago Changed 411a6c4529d5
  2. 1mo ago Changed · +17 lines 9e1d58a38756
  3. 1mo ago Changed · -67 lines · -83 tokens per session 85df9493fffc
  4. 1mo ago Changed 29c743c8636f
  5. 1mo ago First seen · 161 lines · 132 tokens per session scan A ce9e2aaab25a

Subscribe to this mod's changes

session-manager is a skill published in the GitHub repository sxhmilyoyo/sundayhao-plugins (8 stars, last pushed 2d ago), licensed Apache-2.0. It adds 49 tokens to every session and 1,099 once invoked, about $0.0002 per session on Opus 5.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.

Related

Other skills, from other repositories

evolving-status

View Self-Evolving Loop session status, history, and memory metrics.

claude-world/director-mode-lite · 17 tokens

dream

Check this project's memory notes against the repo, fix the ones that went false, and tidy the index, as one git commit you can revert. Checks only notes that are new or name a changed file; pass all to check every note. Costs one Sonnet call per 15 notes, plus one.

saadshahd/moo.md · 65 tokens

pocket-init

Onboards an existing project onto Pocket by scanning its local configuration, writing a merge-safe project guide, and optionally calibrating a local Pocket Education learner profile. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "generate AGENTS.md", or "enable education…

rfxlamia/pocketto · 72 tokens

learn-from-fix

Capture Elixir/Ecto/LiveView lessons and Hex API rules. Use after corrections or when asked to document learning, record a lesson, prevent a fixed mistake, or remember package guidance with --library.

oliver-kriska/claude-elixir-phoenix · 46 tokens

compound-docs

Searchable Elixir/Phoenix/Ecto solution documentation system with YAML frontmatter. Builds institutional knowledge from solved problems. Use when consulting past solutions before investigating new issues.

oliver-kriska/claude-elixir-phoenix · 38 tokens

cdb-scan

Map this codebase into project memory — a code graph of every symbol and how they connect, plus a written profile of stack, layout, conventions and workflows. Re-run any time to refresh both in place. Use when memory is newly installed on an existing project, or when the project has changed enough that the stored map…

Avijit07x/claude-db · 72 tokens