summary

A command that creates a handoff document summarizing an ongoing coding task, its progress, important files, problems, and next steps.

In plain words
What is it for?
Use it to record project background, completed and unfinished changes, errors, relevant file paths, and instructions for continuing the task.
Why use it?
It reduces the context another developer or coding agent must reconstruct when work is interrupted or moved to a different language model.

Command for Claude Code

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.

agentmods
npx agentmods add commands/beixiyo/ai-sync/summary
Clone the repo
git clone --depth 1 https://github.com/beixiyo/ai-sync

Made for: Claude Code.

Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00020 $0.00272
Opus 5 $0.00010 $0.00136
Sonnet 5 $0.00004 $0.00054
Haiku 4.5 $0.00002 $0.00027

Measured 2d ago against content hash ec9fb88f2ff1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

summary 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 2d 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/commands/summary.md · 29 lines

What it actually says

Context Handoff Summary

请分析当前的对话上下文、代码修改记录和任务目标,并结合以下系统状态,生成一份详细的任务交接文档。这份文档将用于提供给另一个 LLM 以继续当前的工作

任务摘要要求

请按照以下格式输出:

1. 背景与目标 (Background & Goals)

  • 简述当前任务的核心背景
  • 明确当前阶段的最终目标

2. 当前进度与现状 (Current Progress)

  • 列出已经完成的工作
  • 描述当前正在进行的修改
  • 特别说明: 如果当前代码有逻辑错误、编译失败或运行异常,请详细说明现状及你认为的原因

3. 重要文件引用 (Key File References)

  • 列出与任务核心相关的最重要的文件路径
  • 简要说明每个文件的作用或为何重要

4. 待办事项与下一步计划 (Remaining Tasks & Next Steps)

  • 明确接下来需要执行的具体步骤
  • 提供给新 LLM 的建议指令
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. 2d ago First seen · 29 lines · 20 tokens per session scan A ec9fb88f2ff1

Subscribe to this mod's changes

summary is a command published in the GitHub repository beixiyo/ai-sync (9 stars, last pushed 27d ago), licensed MIT. It adds 20 tokens to every session and 272 once invoked, about $0.0001 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.