session-manager-csk

session-manager-csk is an agent for Claude Code from byerlikaya/claude-starter-kit. It costs 43 tokens per session (960 once invoked), scanned A, original, MIT.

A session-health checker that measures how much conversation context has been used and reports whether a handover or new session is advisable. Context is the information the assistant can still reliably use in the current conversation.

In plain words
What is it for?
Use it at task completion or when checking session status, deciding whether to continue, write a handover, clear the conversation, or start a new session.
Why use it?
It reduces the chance that a long task loses important details or instructions. Its recommendation is based on a measurement rather than an estimate.

Agent for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it at task completion or when checking session status, deciding whether to continue, write a handover, clear the conversation, or start a new session.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/byerlikaya/claude-starter-kit/session-manager-csk
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.

Clone the repo
git clone --depth 1 https://github.com/byerlikaya/claude-starter-kit

Made for: Claude Code.

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-csk

README.md
[![agentmods](https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/session-manager-csk.svg)](https://agentmods.dev/agents/byerlikaya/claude-starter-kit/session-manager-csk)
Your own site
<a href="https://agentmods.dev/agents/byerlikaya/claude-starter-kit/session-manager-csk"><img src="https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/session-manager-csk.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 960 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.00043 $0.00960
Opus 5 $0.00022 $0.00480
Sonnet 5 $0.00009 $0.00192
Haiku 4.5 $0.00004 $0.00096

Measured 8d ago against content hash 22043f5ad173, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

session-manager-csk 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 8d 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.

claude-starter/agents/session-manager-csk.md · 75 lines

How it starts

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

Session Manager (Context Control)

Trigger phrases: "session status", "session health", "context status", "is a handover needed", "is it time to clear", "handover", "hand over", "switch topic", "getting long", "running out of context"

Purpose: so the user never has to track context/token management by hand. Since proactive background alerts aren't possible, the trigger is every task completion.

Expertise stance (context/operations manager)

  • Measure, do NOT guess: the assistant can't run /context; actual fill is read from the transcript via context-usage.sh (below).
  • Recommend at phase boundaries; don't interrupt the flow mid-task.
  • Handover recommendation is action-oriented: the reason + one clear next step.
  • Token discipline: on the delegate / summary / file-offload decision, apply the token-budget skill.

When

  • At the close of every task/subtask (at the very end of the DoD chain).
  • When the user says "session status?".

What it does

Appends a single line to the very END of the response:

🔋 Session: [low/medium/high fill] · Recommendation: [continue / handoff+clear / new session]

Actual fill is MEASURED, guessing is FORBIDDEN. The UserPromptSubmit hook runs context-usage.sh each turn, automatically injecting the real 🔋 Session: %.. (token) → level line into the context — use that value. If you want an exact/fresh reading, run it by hand: bash .claude/hooks/context-usage.sh (the input + cache_read + cache_creation of the last main-context turn in the transcript = the /context count). If there's no injected line (hook off / transcript unreachable) don't invent a % — say "couldn't be measured" and only report the topic change.

Thresholds (over the measured %):

  • < 50% → continue
  • 50–75% → medium (continue; hand off at the first suitable phase boundary)
  • 75% → handoff+clear: the handoff skill produces the handover summary, then /clear.

  • Topic changed at the root (independent of fill) → new session

Read the full file on GitHub · 75 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. 8d ago First seen · 75 lines · 43 tokens per session scan A 22043f5ad173

Subscribe to this mod's changes

session-manager-csk is an agent published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 960 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

stevesolun/ctx · 75 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens

template-engine

Project scaffolding and template management specialist.

vibeeval/vibecosystem · 10 tokens

observability-engineer

OpenTelemetry, Prometheus, Grafana, distributed tracing, SLO design, and alerting specialist. Use when implementing observability, designing monitoring systems, or troubleshooting production issues. Trigger phrases: observability, monitoring, tracing, Prometheus, Grafana, OpenTelemetry, SLO, SLI, alerting, metrics…

travisjneuman/.claude · 82 tokens

mobile-release-manager

App store submissions, mobile CI/CD, ASO, code signing, and beta distribution specialist. Use when preparing app releases, setting up mobile CI/CD, or managing app store presence. Trigger phrases: app store, Play Store, TestFlight, release, code signing, provisioning profile, Fastlane, ASO, beta, OTA update, version…

travisjneuman/.claude · 77 tokens