background-watch-hook

background-watch-hook is a skill for Claude Code, Codex from avibe-bot/avibe. It costs 44 tokens per session (6,924 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…

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,924 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.
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.00044 $0.06924
Opus 5 $0.00022 $0.03462
Sonnet 5 $0.00009 $0.01385
Haiku 4.5 $0.00004 $0.00692

Measured 7d ago against content hash d848dc785df0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 7d 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 · 544 lines

How it starts

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

Background Watch Hook

Use this skill when the job is "wait now, continue later in the same conversation".

What it gives the agent:

  • a managed background task instead of manual polling
  • a clean way to come back to the same channel or thread later
  • a reusable pattern that works for reviews, CI, files, logs, and process completion

Good trigger scenarios:

  • PR reviews or comments may arrive later
  • CI, deployments, or exports need time to finish
  • a file, log line, or process exit should wake the agent up later

Prefer vibe watch when the wait should be inspectable, pausable, resumable, or removable later.

Main Tools

  • vibe watch add Main entrypoint. Starts a managed background watch and creates a follow-up Agent Run after the waiter succeeds or reaches a terminal failure.
  • vibe watch list, vibe watch show, vibe watch update, vibe watch pause, vibe watch resume, vibe watch remove Use these to inspect and manage the watch after creation.
  • scripts/wait_pr.py Bundled GitHub waiter for PR activity, with optional exact-head Actions monitoring.

Use vibe watch First

Use vibe watch add first. Most tasks only need:

  1. a short action-oriented message
  2. a blocking waiter command

Generic shape:

vibe watch add \
  --message "<what the next Agent Run should do>" \
  --name "<optional label>" \
  -- \
  <waiter command ...>

Default behavior:

  • returns immediately
  • keeps the waiter managed by Avibe
  • lets the agent inspect or stop the watch later
  • creates a follow-up Agent Run after the waiter succeeds or reaches a terminal failure

Use --forever when the same waiter should re-arm after each detected event instead of exiting after one follow-up.

vibe watch Parameters To Remember

  • --message: the instruction template for the follow-up Agent Run created from waiter output
  • --name: optional label for later management
  • --session-id: only when the follow-up should continue a different explicit Agent Session
  • --create-session --same-scope: create a visible sibling Session for the follow-up instead of continuing this conversation
  • --create-session --scope-id <scopes.id>: create the follow-up Session in a specific existing scope
  • --forever: re-arm after each detected event
  • --timeout: per-cycle timeout
  • --lifetime-timeout: whole-watch lifetime cap, mainly for forever watches

Read the full file on GitHub · 544 lines

Files

What ships with it

5 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. 7d 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 (499 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 6,924 once invoked, about $0.0002 per session on Opus 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.