agent-summary
Installation
SKILL.md
Agent Summary — 进度摘要系统
参考 Claude Code 的 AgentSummary 机制,用于监控子Agent工作状态。
核心机制
摘要生成
Claude Code 每30秒对子Agent的对话历史运行一次轻量查询,生成进度摘要:
- 原文要求 Claude 用 3-5 个词描述当前正在做什么
- ✅ "Reading runAgent.ts" — 具体
- ✅ "Fixing null check in validate.ts" — 具体
- ❌ "Investigating the issue" — 太模糊
优化策略
- 复用父Agent的上下文,最大化缓存命中率
- 摘要请求使用相同系统提示和工具列表
- 使摘要生成的 token 成本极低