← Back to Skills Marketplace
wangxiaofei860208-source

Agent Summary

by wangxiaofei860208-source · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
111
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install agent-summary
Description
Agent进度摘要系统,定期检查子Agent状态并生成简短进度报告。参考Claude Code的AgentSummary机制,每30秒对子Agent生成3-5词状态摘要。
README (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 成本极低

使用方式

1. 手动检查

subagents list → 获取所有Worker状态
对每个活跃Worker:
  sessions_history(sessionKey, limit=2) → 获取最新消息
  → 生成摘要

2. 在心跳中集成

在 HEARTBEAT.md 中加入 Agent Summary 检查:

## Agent Summary Check
- 检查是否有活跃的子Agent
- 如有,生成进度摘要
- 只在有变化时通知用户

3. Coordinator集成

在协调器模式下,定期检查Worker进度:

每30秒:
  1. subagents list → 获取活跃Workers
  2. 对每个Worker获取最新2条消息
  3. 生成3-5词进度摘要
  4. 汇总报告给用户(仅在变化时)

摘要格式

📊 Agent Status:
  ├─ 🟢 researcher: "Searching Rust async docs"
  ├─ 🟢 coder: "Writing unit tests for auth module"
  └─ ⚪ devops: completed ✓

注意

  • 不要频繁轮询,最多每30秒一次
  • 只在有变化时通知用户
  • 完成/失败的Agent立即报告
  • 深夜(23:00-08:00)不打扰用户
Usage Guidance
这项技能在功能与所需权限上是自洽且低风险的,但在部署前请考虑: - sessions_history 会暴露子Agent的对话内容(可能包含敏感信息)。确认你是否愿意授予该访问权并检查审计/访问控制。 - 虽然建议每30秒轮询且仅在变化时通知,仍要评估对平台配额和通知噪音的影响。 - 因为这是 instruction-only(没有代码文件),它不会在运行环境写入二进制,但技能会依赖平台提供的 subagents/sessions_history 接口;在不信任来源或在生产环境使用前,先在受限环境中测试其行为。 总体上可以使用,但请先确认对话历史访问策略与隐私要求。
Capability Analysis
Type: OpenClaw Skill Name: agent-summary Version: 1.0.0 The agent-summary skill is a monitoring utility designed to track and summarize the progress of sub-agents in 3–5 words, modeled after Claude Code's internal mechanisms. It utilizes standard sub-agent management and session history tools to provide status updates without any evidence of data exfiltration, malicious execution, or harmful prompt injection.
Capability Assessment
Purpose & Capability
技能名称与描述是“Agent进度摘要”;SKILL.md 中明确使用 subagents list 和 sessions_history 来获取子Agent对话历史并生成 3–5 词摘要。metadata 要求的能力(subagents、sessions_history)与运行指令一致,未请求与功能无关的凭据或二进制。
Instruction Scope
指令限定为读取子Agent的最近消息(sessions_history(sessionKey, limit=2))并生成小型摘要,且建议每30秒最多一次并仅在有变化时通知用户——范围相对受限。但需注意:sessions_history 会包含对话内容,可能含敏感信息;管理员应确认允许该技能访问子Agent会话历史并评估隐私/合规影响。
Install Mechanism
无安装规范且为 instruction-only(仅 SKILL.md),因此不会在客户端写入或下载文件,安装风险最低。
Credentials
未声明任何环境变量、凭据或配置路径;唯一需要的能力是平台级的子Agent与会话历史接口,这与技能目的直接相关,未要求不相称的秘密或外部服务访问。
Persistence & Privilege
flags 显示 always:false(默认),也没有请求修改其他技能或持久化系统范围配置。允许模型自主调用是默认行为且在此上下文内合理。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-summary
  3. After installation, invoke the skill by name or use /agent-summary
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of agent-summary, an Agent进度摘要系统. - Periodically summarizes each subAgent's status (every 30 seconds) with a concise 3–5 word description. - Only notifies users if there is a change or when subAgents complete or fail. - Optimizes queries for minimal token usage and high cache hit rate. - Integrates with subagents, sessions_history, and supports both manual and heartbeat/coordinator modes. - Quiet hours respected (23:00–08:00): no user notifications during this period.
Metadata
Slug agent-summary
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Agent Summary?

Agent进度摘要系统,定期检查子Agent状态并生成简短进度报告。参考Claude Code的AgentSummary机制,每30秒对子Agent生成3-5词状态摘要。 It is an AI Agent Skill for Claude Code / OpenClaw, with 111 downloads so far.

How do I install Agent Summary?

Run "/install agent-summary" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Summary free?

Yes, Agent Summary is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Agent Summary support?

Agent Summary is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Summary?

It is built and maintained by wangxiaofei860208-source (@wangxiaofei860208-source); the current version is v1.0.0.

💬 Comments