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.
npx agentmods add instructions/sleeyax/claude-code-session-bot/claude-mdgit clone --depth 1 https://github.com/sleeyax/claude-code-session-botWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00449 | $0.00449 |
| Opus 5 | $0.00225 | $0.00225 |
| Sonnet 5 | $0.00090 | $0.00090 |
| Haiku 4.5 | $0.00045 | $0.00045 |
Grade A, and why
claude-code-session-bot 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 3d 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.
What it actually says
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project
Telegram bot that manages Claude Code Pro 5-hour session cooldowns. Schedules automated warmups via claude CLI so you have remaining usage at a target time.
Commands
pnpm dev # run with tsx --watch (hot reload)
pnpm build # tsc → dist/
pnpm start # run compiled dist/main.js
docker compose up -d --build # production deploy
No test or lint setup exists yet.
Architecture
TypeScript (ES2022/CommonJS, strict), SQLite via better-sqlite3 (WAL mode), Telegram API via node-telegram-bot-api.
All source files are located in src/:
- main.ts — entry point; inits DB, bot, restores pending schedules
- bot.ts — Telegram command handlers (
/warmup,/schedule,/session,/cancel,/history,/schedules) - warmup.ts — spawns
claude -p "ready" --output-format jsonsubprocess; parses token usage - scheduler.ts — in-memory
setTimeouttimers + DB persistence; restores timers on restart - db.ts — SQLite CRUD for
sessionsandschedulestables - config.ts — env var validation (
TELEGRAM_BOT_TOKEN,TELEGRAM_ALLOWED_USER_IDS, optionalTIMEZONE,DB_PATH) - types.ts — interfaces:
Session,Schedule,WarmupResult
See README.md for full usage details.
Key Details
- Session duration fixed at 5 hours (
SESSION_DURATION_MS) - Only tracks sessions the bot starts (no external session tracking)
- Auth: only Telegram user IDs in
TELEGRAM_ALLOWED_USER_IDScan use commands - Date parsing via chrono-node (natural language: "tomorrow 9am", "jan 30 8:00")
- Requires
claudeCLI installed and authenticated on host
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.
- 3d ago First seen · 43 lines · 449 tokens per session scan A eba50269737e
claude-code-session-bot CLAUDE.md is an instructions file published in the GitHub repository sleeyax/claude-code-session-bot (11 stars, last pushed 7mo ago), licensed MIT. It adds 449 tokens to every session, about $0.0022 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.
Other instructions, from other repositories
claude-telegram-bot-bridge CLAUDE.md
Claude Code instructions for terranc/claude-telegram-bot-bridge, covering claude.md, project overview, code style, setup and run (foreground, default).
nonebot-plugin-codex AGENTS.md
AGENTS.md instructions for ttiee/nonebot-plugin-codex, covering repository guidelines, project scope, repository layout, working norms and development commands.
codex-telegram-bot AGENTS.md
AGENTS.md instructions for JJPanda4590/codex-telegram-bot, covering agents.md, highest priority rule, project overview, key files and runtime commands.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.