session-buddy: Instructions file for Claude Code

CLAUDE.md

session-buddy CLAUDE.md is an instructions file for Claude Code from lesleslie/session-buddy. It costs 6,497 tokens per session, scanned A, original, BSD-3-Clause.

A repository instruction document for Session Buddy, an MCP server that manages Claude Code sessions and their stored context. It describes the project, setup commands, dependencies, testing, and code-quality checks.

In plain words
What is it for?
It is for installing, running, testing, linting, and understanding the Session Buddy project.
Why use it?
It gives Claude Code the project knowledge needed to work consistently in the repository.

Instructions file for Claude Code

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

This is lesleslie/session-buddy's own configuration. It tells Claude Code how to work on session-buddy itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything session-buddy configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/les/Projects/mahavishnu/.claude/decisions/2026-10-03-mainautopush.md.

Reuse

Borrowing it

Nothing to install: this file belongs to lesleslie/session-buddy. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lesleslie/session-buddy/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/lesleslie/session-buddy

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-buddy CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lesleslie/session-buddy/claude-md"><img src="https://agentmods.dev/badge/instructions/lesleslie/session-buddy/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,497 This file is loaded in full into every session.
When invoked 6,497 The same file — it is already loaded in full.
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.06497 $0.06497
Opus 5.5 $0.02599 $0.02599
Sonnet 5.5 $0.01299 $0.01299
Haiku 4.5 $0.00650 $0.00650

Measured 4d ago against content hash 249b27db4c04, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

session-buddy CLAUDE.md 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 4d 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.md · 642 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

For a shorter, tool-neutral bootstrap document, start with AGENTS.md.

Project Overview

Session Buddy is a Claude Session Management MCP (Model Context Protocol) server providing comprehensive session management for Claude Code across any project. It operates as a standalone MCP server with isolated environment to avoid dependency conflicts.

Task System

The session-buddy task system is the typed, persistent replacement for the built-in TodoWrite/TaskCreate tool family that Anthropic's upstream API does not advertise for MiniMax-M* models served through https://api.minimax.io/anthropic (server-side tengu_vellum_ash gate; verified 2026-09-29 against the issue trackers linked from the spec). All seven tools live under the mcp__session-buddy__* namespace.

Tools

Tool Purpose
tasks_create(content, tags, owner=None, due=None, priority='normal', effort=None, parent_task_id=None, metadata=None) Mint a new task. owner and created_by are server-derived from caller identity (caller-supplied values are silently overwritten). Tags MUST include "task" (Pydantic-validated). Returns a Task whose id matches ^t-[0-9a-f]{32}$.
tasks_list(status=None, owner=None, tag=None, parent_task_id=None, include_legacy=False, k=20, cursor=None) Filter by status/owner/tag with cursor pagination. Server-side: owner is forced to caller_identity regardless of caller input. include_legacy=False by default; legacy tags=["todo"] rows are excluded unless the caller opts in.
tasks_get(task_id) Fetch by id; 404 (not 403) on missing or invisible — no info leak.
tasks_update(task_id, request: UpdateTaskRequest) Mutate mutable fields. Caller-supplied owner / created_by / completed_by are rejected with owner_mutation_forbidden. workflow_id is server-set ONLY by the handoff tool.
tasks_complete(task_id, result_notes=None) Mark as done; owner-only (non-owners get 404). No implicit dispatch — even if result_notes starts with "HANDOFF: ", no workflow is triggered. Use the mahavishnu handoff tool for that.
tasks_search(query, project=None, min_score=None, k=10) Semantic search with quick_search parity (kind=task gate → visibility → min_score).
tasks_history(task_id, k=50, cursor=None) Cursor-paginated change log; returns {items: list[TaskEvent], next_cursor: str | None}.

Read the full file on GitHub · 642 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. 4d ago Changed · +30 tokens per session 249b27db4c04
  2. 20d ago Changed · +12 tokens per session cbf1a8ce39f0
  3. 24d ago Changed · +7 tokens per session cffe427b2d52
  4. 27d ago Changed · +19 lines · +271 tokens per session a8bb653fd43d
  5. 1mo ago Changed · -3 tokens per session 3c70167eec25
  6. 1mo ago Changed 4e6b3ec22169
  7. 1mo ago Changed · +25 lines · +803 tokens per session 5dff490cb4df
  8. 1mo ago Changed · -2 tokens per session 9cb54de92004
  9. 1mo ago Changed · -2 lines · -21 tokens per session 81ac37534e9e
  10. 2mo ago First seen · 600 lines · 5,400 tokens per session scan A 97f431fe6c81

Subscribe to this mod's changes

session-buddy CLAUDE.md is an instructions file published in the GitHub repository lesleslie/session-buddy (4 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 6,497 tokens to every session, about $0.0260 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

session-buddy CLAUDE.md compared with instructions from other repositories

session-buddy CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
session-buddy CLAUDE.mdlesleslie/session-buddyInstructions file45d agoBSD-3-ClauseA6,497Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode