t00-session-end

t00-session-end is a command for Claude Code from maysunAI/T00-zh. It costs 40 tokens per session (461 once invoked), scanned A, original, MIT.

A session-closing procedure written in Chinese for archiving work and preparing a handoff. It records changed files, quality checks, bugs, a change log, and the next steps.

In plain words
What is it for?
Use it at the end of a session or when nearing the context limit to create the required project records and update the resume file.
Why use it?
It preserves what happened during a coding session so another session can continue without losing context.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it at the end of a session or when nearing the context limit to create the required project records and update the resume file.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/maysunai/t00-zh/t00-session-end
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/maysunAI/T00-zh

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 t00-session-end

README.md
[![agentmods](https://agentmods.dev/badge/commands/maysunai/t00-zh/t00-session-end/github.svg)](https://agentmods.dev/commands/maysunai/t00-zh/t00-session-end)
Your own site
<a href="https://agentmods.dev/commands/maysunai/t00-zh/t00-session-end"><img src="https://agentmods.dev/badge/commands/maysunai/t00-zh/t00-session-end/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 t00-session-end

Your own site · 80×15
<a href="https://agentmods.dev/commands/maysunai/t00-zh/t00-session-end"><img src="https://agentmods.dev/badge/commands/maysunai/t00-zh/t00-session-end.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 461 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.00040 $0.00461
Opus 5 $0.00020 $0.00230
Sonnet 5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured 9d ago against content hash 5cc7d8428939, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

t00-session-end 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.

AI00_Common/.claude/commands/t00-session-end.md · 33 lines

What it actually says

⚡ 接近 context 上限(约 100k tokens)时提前触发本命令,生成 Handoff 摘要以便下次无缝衔接。

请执行会话结束存档流程。按以下顺序完成:

  1. 确认本次变更 — 列出本次会话中修改或新增的所有文件

  2. 创建 D 文件(变更记录)Docs/P01_changes/D[NN]_[YYYYMMDD]_[概要].md

    • 包含:变更文件列表、每个文件的具体改动内容
  3. 创建 QA 文件(会话记录)Docs/QA01_sessions/QA[NNN]_session_[YYYY_MM_DD].md

    • 包含:主要作业内容、实现要点、用户原始提问(末尾必须附上)
  4. 如有 Bug 修复Docs/BG01_bugs/BG[NN]_[YYYYMMDD]_[概要].md

    • 包含:现象、根本原因、解决方法、修改文件
  5. 追加变更日志Docs/CL01_changelog/CL001_log.md

    • 格式:## [YYYY-MM-DD] — [简述]
  6. 更新 RESUME.md — 写入:今日完成项 / 下一步 / 快速上下文(3-5条)

  7. 向用户报告 — 以 Markdown 链接格式列出所有新建文件

编号规则:

  • D 文件:两位数(D01, D02...)查现有最大编号+1
  • QA 文件:三位数(QA001, QA002...)查现有最大编号+1
  • BG 文件:两位数(BG01, BG02...)
  • 同一天多次会话:文件名末尾加 _2, _3
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 · 33 lines · 40 tokens per session scan A 5cc7d8428939

Subscribe to this mod's changes

t00-session-end is a command published in the GitHub repository maysunAI/T00-zh (2 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 461 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-31.