关于 background-agent-pings
一项通过系统提醒跟踪后台 Agent 进度、避免轮询的工作流技能。它让 Agent 在等待进度或完成通知时继续处理其他任务。
主要功能
- 01通过提醒跟踪进度
- 02避免反复轮询
- 03收到通知后检查输出文件
适用场景
- 01后台 Agent 运行时继续工作
- 02收到完成信号后读取结果
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ parcadei/ continuous-claude-v3 --skill background-agent-pings安装后在 Claude Code 中输入/background-agent-pings确认已加载。
详细介绍
后台 Agent 提示
将系统提醒视为 Agent 进度通知。不要轮询。
模式
启动后台 Agent 后,继续处理其他任务。系统会通过提醒通知你:
- Agent 有进展:
Agent <id> progress: X new tools used, Y new tokens - Agent 写入输出文件(检查你指定的路径)
应该做
1. Task(run_in_background=true, prompt="... Output to: .claude/cache/agents/<type>/output.md")
2. Continue with next task immediately
3. When system reminder shows agent activity, check if output file exists
4. Read output file only when agent signals completion
不应该做
# BAD: Polling wastes tokens and time
Task(run_in_background=true)
Bash("sleep 5 && ls ...") # polling
Bash("tail /tmp/claude/.../tasks/<id>.output") # polling
TaskOutput(task_id="...") # floods context
重要原因
- 轮询会在重复检查时浪费令牌
TaskOutput会将 Agent 的完整对话记录灌入主上下文- 系统提醒不消耗资源——系统会自动推送给你
- 等待期间继续高效工作
来源
- 本次会话:意识到当系统提醒已能提供进度更新时,轮询 Agent 输出会浪费时间
评论
支持 Markdown