session-manager

session-manager is a skill for Claude Code from sxhmilyoyo/sundayhao-plugins. It costs 132 tokens per session (1,732 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; mentions Claude Code.

Part of the second-brain plugin — 5 skills, 3 hooks 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 5 skills, 3 hooks.

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 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,732 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.00132 $0.01732
Opus 5 $0.00066 $0.00866
Sonnet 5 $0.00026 $0.00346
Haiku 4.5 $0.00013 $0.00173

Measured 9d ago against content hash ce9e2aaab25a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 161 lines

How it starts

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

Session Manager

Manage metadata for the current active session's session.md file via Obsidian CLI.

Deriving the Session Path

The session docs path is injected into your system prompt by the SessionStart hook. It looks like:

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

To get the session.md vault-relative path for Obsidian CLI:

  1. Take the injected docs path
  2. Find _sessions/ in it — everything from _sessions/ onward is vault-relative
  3. Remove the trailing docs/ and append session.md

Example:

  • Injected: .../knowledge-bank/_sessions/2026-03-04/abc123-def456/docs/
  • Vault-relative session.md: _sessions/2026-03-04/abc123-def456/session.md

If the session docs path is not in your system prompt, ask the user for the session folder path.

Properties You Can Update

Property Type Purpose
session_name text Session name (auto-synced from /rename customTitle on invocation)
project text Project name (auto-set from cwd at session start, customizable)
tags list Freeform categorization (e.g., brainstorming, debugging, architecture)
summary text One-line description of what the session accomplished

Do NOT modify other frontmatter properties (session_id, date, cwd, etc.) — those are managed by hooks.

Commands

Set a property:

obsidian vault="knowledge-bank" property:set name="<property>" value="<value>" [type="list"] path="<vault-relative-path>"

Read current metadata:

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

Tag Suggestion Workflow

When the user wants to set tags, do NOT set them directly. Instead, suggest existing tags to promote consistency.

Step 1: Load existing tags

Read from ccfind's cache (field 5, comma-separated):

CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/ccfind/sessions.tsv"
cut -f5 "$CACHE" 2>/dev/null | tr ',' '\n' | sed 's/^ *//;s/ *$//' | grep -v '^-$' | grep -v '^$' | sort -u

Read the full file on GitHub · 161 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. 9d 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 1mo ago), licensed Apache-2.0. It adds 132 tokens to every session and 1,732 once invoked, about $0.0007 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.

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

pocket-init

Onboards an existing (brownfield) project onto Pocket. Scans the codebase and writes a project memory file (CLAUDE.md or AGENTS.md), optionally enables Pocket Enterprise (mode init) and scaffolds GitHub issue/PR templates. Trigger on "pocket-init", "set up pocket", "onboard this project", "generate CLAUDE.md", "enable…

rfxlamia/pocketto · 85 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

memory-protocol

A shared set of rules for using a persistent memory service across coding-agent sessions.

vbcherepanov/total-agent-memory · 120 tokens