agent-ops

Agent session 运维工具。当需要检测和恢复 API 限速、回收死 session 的知识、在破坏性操作前自动快照、或监控 context 使用率时使用。不用于安装 hook 脚本(用 agent-hooks)或架构设计(用 harness-design-patterns)。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agent-ops" with this command: npx skills add lanyasheng/agent-ops

Agent Ops

Agent session 运维工具集。监控、恢复、保护运行中的 agent session。

When to Use

  • tmux 中的 agent 遇到 API 限速后挂死 → Rate Limit 恢复
  • Session 静默死亡,需要回收其知识 → Stale Session Daemon
  • Bash 命令可能造成不可逆破坏 → Checkpoint + Rollback
  • Context 快用完,需要预算管理 → Token Budget / Context 估算
  • 模型反复失败需要切换 → Auto Model Fallback

When NOT to Use

  • 安装 Stop/PreToolUse hook → 用 agent-hooks
  • 设计 agent 架构 → 用 harness-design-patterns

工具概览

工具类型功能详情
Rate Limit 恢复bash 脚本 / cron扫描 tmux pane 检测限速,自动发 Enter 恢复详情
Context 估算bash 脚本读 transcript 尾部 4KB 提取 token 使用率详情
Stale Session Daemondaemon / cronHeartbeat 检测 + 死 session 知识回收详情
Checkpoint + Rollbackhook 脚本PreToolUse git stash + PostToolUseFailure 自动回滚详情
Token Budgethook 脚本UserPromptSubmit 注入预算感知指令详情
Auto Model Fallbackhook 脚本3 次连续失败后升级 Haiku→Sonnet→Opus详情

Scripts

脚本用途
scripts/context-usage.sh <transcript>从 transcript JSONL 尾部估算 context 使用率

Session State

所有状态统一在 sessions/<session-id>/ 下。详见 session-state-layout.md

条件判断规则

  • 如果只有 1-2 个 session 在跑 → Rate Limit 恢复手动即可,不需要 daemon
  • 如果 session 预计 < 30 分钟 → 不需要 Stale Session Daemon
  • 如果没有破坏性 Bash 命令 → 不需要 Checkpoint
  • 如果不确定 context 够不够 → 先跑 context-usage.sh 检查再决定

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Influencer

Create, manage, and scale AI-generated virtual influencers with consistent characters, multi-platform content, and monetization workflows.

Registry SourceRecently Updated
Automation

Movie

Create films with AI video generation by managing scripts, prompts, consistency, and production workflows from concept to final cut.

Registry SourceRecently Updated
Automation

origram

Bot-friendly photo sharing webservice via HTTP 402 protocol. Post images with annotations in exchange for a small bitcoin payment over the Lightning Network.

Registry SourceRecently Updated
Automation

LocalUDPMessenger

Use when agents need to communicate over the local network — "send message to agent", "discover agents", "check for messages", "coordinate with other agents", "approve agent", "agent status", "add peer", "message log"

Registry SourceRecently Updated