background-watch-hook

background-watch-hook is a skill for Claude Code, Codex from avibe-bot/avibe. It costs 32 tokens per session (1,336 once invoked), scanned A, original, MIT.

A managed background watcher that waits for an event and then returns to the same conversation. It can monitor pull requests, CI or deployments, files, logs, and process completion; CI means automated checks that run when code changes.

In plain words
What is it for?
Waiting for pull-request activity, automated checks, deployments, exports, file changes, log entries, or processes to finish.
Why use it?
It removes the need to keep polling while something finishes, while still allowing the wait to be inspected, paused, resumed, or removed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Waiting for pull-request activity, automated checks, deployments, exports, file changes, log entries, or processes to finish.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/avibe-bot/avibe/background-watch-hook
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add avibe-bot/avibe --skill background-watch-hook
Clone the repo
git clone --depth 1 https://github.com/avibe-bot/avibe

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for background-watch-hook

README.md
[![agentmods](https://agentmods.dev/badge/skills/avibe-bot/avibe/background-watch-hook/github.svg)](https://agentmods.dev/skills/avibe-bot/avibe/background-watch-hook)
Your own site
<a href="https://agentmods.dev/skills/avibe-bot/avibe/background-watch-hook"><img src="https://agentmods.dev/badge/skills/avibe-bot/avibe/background-watch-hook/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for background-watch-hook

Your own site · 80×15
<a href="https://agentmods.dev/skills/avibe-bot/avibe/background-watch-hook"><img src="https://agentmods.dev/badge/skills/avibe-bot/avibe/background-watch-hook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 333
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
  • medium Tool Misuse · line 438
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01336
Opus 5.5 $0.00013 $0.00534
Sonnet 5.5 $0.00006 $0.00267
Haiku 4.5 $0.00003 $0.00134

Measured 2d ago against content hash d896d7bddde9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

background-watch-hook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/_github_actions_wait.py, scripts/_github_wait_common.py, scripts/wait_action.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/background-watch-hook/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Background Watch Hook

Use vibe watch for a durable wait that resumes an Agent when an external event arrives. The waiter detects events; the follow-up Agent verifies live state and acts. A success candidate is not merge authorization.

Contract and lifecycle

Waiter exit Meaning
0 One new reportable event; summary on stdout
75 (or configured retry code) Still waiting; no Agent turn
64 plus avibe-watch: no-event on stderr Quiet completed cycle: retire once, re-arm forever
124 or other terminal failure Notify the Agent and stop

A bare 64 is an error. Keep diagnostics on stderr. A once Watch waiting for its first event uses a retry code, not 64. Forever waiters need durable cursors or edge detection; a persistent true condition is not a new event. Avibe serializes follow-ups, re-arms after they settle, and pauses rapid repeated events for repair.

  • Read vibe watch add --help before first use; inspect/update with vibe watch <list|show|update|pause|resume|remove>.
  • --timeout bounds each cycle (default six hours); --lifetime-timeout bounds the whole Watch. Use 0 for an intentionally unbounded PR delivery loop.
  • Remove the Watch at close-out. Do not use detached shells for durable waits.

Session targeting

  • Inside an Avibe-injected Agent shell, omitting the target continues this conversation.
  • Use --session-id <id> only when resuming a different existing Agent Session.
  • Use --create-session --same-scope for one visible sibling Session; use --create-session-per-run --same-scope for a separate visible Session per event.
  • Use --scope-id <scopes.id> instead of --same-scope for an explicit scope.
  • If --cwd is omitted, Avibe uses the command's current working directory.

Preferred PR + CI watch

Use --forever and one owner-specific state file for the whole loop. Seed and arm before the watched push/review trigger; for a new PR, create it first, then immediately seed/arm. Keep the same Watch and cursor across all later rounds.

Read the full file on GitHub · 105 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +4 lines d896d7bddde9
  2. 5d ago Changed 9f1bbcbc1b49
  3. 10d ago Changed · -460 lines · -12 tokens per session 8de17d5568ab
  4. 1mo ago Changed · +17 lines 59507a4ebbec
  5. 1mo ago First seen · 544 lines · 44 tokens per session scan A d848dc785df0

Subscribe to this mod's changes

background-watch-hook is a skill published in the GitHub repository avibe-bot/avibe (632 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 1,336 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.