跳到正文
cccskills
免费在 GitHub 公开

omcustom-loop

Prevent session idle during background agent work via SubagentStop prompt hook auto-continuation

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

/omcustom:loop — Session Auto-Continuation

Overview

Prevents session idle when background subagents complete by using a SubagentStop prompt hook that nudges the orchestrator to check for pending workflow steps.

How It Works

  1. When a background subagent completes, Claude Code fires the SubagentStop event
  2. The prompt hook injects a message asking the orchestrator to check for pending steps
  3. If pending steps exist, the orchestrator proceeds automatically
  4. If no pending steps, it reports results and waits for user input

Safety Limits

  • 3 consecutive auto-continues max: After 3 automatic progressions without user interaction, the system pauses and asks the user before proceeding
  • stuck-detector integration: If the same action repeats 3+ times, stuck-detector intervenes
  • cost-cap-advisor: Cost monitoring continues during auto-continuation

Configuration

The hook is configured in .claude/hooks/hooks.json under SubagentStop. It works alongside the existing task-outcome-recorder.sh command hook.

Limitations

  • Platform constraint: Claude Code's turn-based model means the prompt hook only fires when a subagent completes — it cannot wake the model from true idle state
  • Foreground agents preferred: For guaranteed continuation, use foreground parallel agents (R009) instead of background agents
  • PoC status: This is an experimental feature. If the prompt hook doesn't reliably trigger in all scenarios, fall back to foreground agent patterns

Usage

/omcustom:loop          # Show current auto-continuation status
/omcustom:loop status   # Same as above

The feature is active by default via hooks.json. No explicit activation needed.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Pre-action boundary checking — validates agent tool calls against declared capabilities and task contracts

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Auto-detect project context and optimize harness — deactivate unused agents/skills, suggest missing experts, generate project profile

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Adversarial code review using attacker mindset — trust boundary, attack surface, business logic, and defense evaluation

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Apache Airflow best practices for DAG authoring, testing, and production deployment

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Alembic migration patterns for naming conventions, safety checks, expand-contract, env.py configuration, and CI integration

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

Pre-routing ambiguity analysis — scores request clarity and asks clarifying questions when needed (inspired by ouroboros)

中文简介正在准备中。当前显示原文说明。

baekenough/second-brain152026年10月8日 更新

查看 baekenough 的全部技能

报告此技能的问题