add-debug-wait

add-debug-wait is a command for Claude Code from openshift-eng/ai-helpers. It costs 12 tokens per session (5,706 once invoked), scanned A, original, Apache-2.0.

A command that adds a timed pause to a continuous integration (CI) job or workflow before its final test step. It commits the change, pushes it to your fork, and opens a pull request.

In plain words
What is it for?
Use it to add a wait step to a named CI job or workflow, optionally setting how many hours it should wait.
Why use it?
It lets a failing CI job pause long enough for you to inspect or debug it before the job finishes. It avoids manually editing the workflow, committing the change, and creating the pull request.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the ci plugin — 35 skills, 21 commands, 2 agents shipped together

Good fit Use it to add a wait step to a named CI job or workflow, optionally setting how many hours it should wait.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/ai-helpers/add-debug-wait
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.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install ci, the plugin that ships this one along with the rest of its 35 skills, 21 commands, 2 agents.

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 add-debug-wait

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/add-debug-wait/github.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/add-debug-wait)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/add-debug-wait"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/add-debug-wait/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 add-debug-wait

Your own site · 80×15
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/add-debug-wait"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/add-debug-wait.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,706 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.00012 $0.05706
Opus 5.5 $0.00005 $0.02282
Sonnet 5.5 $0.00002 $0.01141
Haiku 4.5 $0.00001 $0.00571

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

Security

Grade A, and why

add-debug-wait 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 17d ago.

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.

plugins/ci/commands/add-debug-wait.md · 749 lines

How it starts

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

Name

ci:add-debug-wait

Synopsis

/ci:add-debug-wait <workflow-or-job-name> [timeout]

Description

The ci:add-debug-wait command adds a wait step to a CI job/workflow for debugging test failures.

What it does:

  1. Takes job name, OCP version, and optional timeout as input
  2. Finds and edits the job config or workflow file
  3. Asks if any existing test steps should be removed (and cleans up orphaned env vars)
  4. Adds - ref: wait before the last remaining test step (with optional timeout configuration)
  5. Runs make update to validate and regenerate Prow jobs
  6. Creates a git commit, pushes to your fork, and creates a PR via gh

That's it! Simple, fast, and automated.

Implementation

The command performs the following steps:

Step 1: Gather Required Information

Prompt user for (in this order):

  1. Workflow/Job Name: (from command argument $1 or prompt)

    Workflow or job name: <user-input>
    Example: aws-c2s-ipi-disc-priv-fips-f7
    Example: baremetalds-two-node-arbiter-e2e-openshift-test-private-tests
    
  2. Timeout (optional, from command argument $2):

    Wait timeout in hours (optional, default: 3h):
    Examples: "1h", "2h", "8h", "24h", "72h"
    Valid range: 1h to 72h
    
    • If not provided, uses the wait step's default behavior (3 hours)
    • Format: Integer followed by 'h' (e.g., "1h", "2h", "8h")
    • Valid range: 1h to 72h (maximum enforced by wait step's timeout setting)
    • For job config files (ci-operator/config/): Set as the TIMEOUT env var (e.g., TIMEOUT: +8 hours) in the job's env: section
    • For workflow files (ci-operator/step-registry/): Set as timeout: (normalized to Go duration format, e.g., "8h" → "8h0m0s") and best_effort: true properties on the ref step
  3. OCP Version: (prompt - REQUIRED for searching job configs)

    OCP version for debugging (e.g., 4.18, 4.19, 4.20, 4.21, 4.22):
    

    This is used to:

    • Search the correct job config file (e.g., release-4.21)
    • Document which version needs debugging
    • Add context to the PR

Read the full file on GitHub · 749 lines

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. 17d ago Changed · +34 lines 46a0bb850b4a
  2. 1mo ago First seen · 715 lines · 12 tokens per session scan A a6ebebafca30

Subscribe to this mod's changes

add-debug-wait is a command published in the GitHub repository openshift-eng/ai-helpers (119 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 5,706 once invoked, about $0.0000 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.