Background Agent Pings

parcadei/continuous-claude-v3/.claude/skills/background-agent-pings

作者 parcadeid07ff4b06b62无许可证3.9K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库8个月前更新

Background Agent Pings

仅含说明AI & Agents
AI 生成的概览

指导代理依靠系统提醒获取后台代理进度,而不是轮询输出。

功能
该技能描述了一套处理后台代理的工作模式:启动代理并指定输出文件路径,立即继续其他工作,等待系统提醒告知代理进度。它建议仅在代理发出完成信号时才读取输出文件,并把 sleep 后列目录、tail 任务输出或调用 TaskOutput 等轮询行为列为应避免的做法。它说明轮询会浪费 token,而 TaskOutput 会用完整的代理记录淹没主上下文。
适用场景
适用于启动后台代理并需要决定如何监控其进度的场景。适合代理异步运行、希望避免浪费 token 的轮询的情况。该技能不可由用户调用,属于面向代理的内部指引。
运行要求
除代理环境外不需要脚本或工具;它假定可以使用后台代理启动功能和系统提醒。

Background Agent Pings

Trust system reminders as agent progress notifications. Don't poll.

Pattern

When you launch a background agent, continue working on other tasks. The system will notify you via reminders when:

  • Agent makes progress: Agent <id> progress: X new tools used, Y new tokens
  • Agent writes output file (check the path you specified)

DO

1. Task(run_in_background=true, prompt="... Output to: .claude/cache/agents/<type>/output.md")2. Continue with next task immediately3. When system reminder shows agent activity, check if output file exists4. Read output file only when agent signals completion

DON'T

# BAD: Polling wastes tokens and timeTask(run_in_background=true)Bash("sleep 5 && ls ...")  # pollingBash("tail /tmp/claude/.../tasks/<id>.output")  # pollingTaskOutput(task_id="...")  # floods context

Why This Matters

  • Polling burns tokens on repeated checks
  • TaskOutput floods main context with full agent transcript
  • System reminders are free - they're pushed to you automatically
  • Continue productive work while waiting

Source

  • This session: Realized polling for agent output wasted time when system reminders already provide progress updates

来源与署名

来源:parcadei/continuous-claude-v3位于.claude/skills/background-agent-pings提交d07ff4b

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

Background Agent Pings · .claude/skills/background-agent-pings 智能体技能 | SourceWeft