add-debug-wait

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

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.

agentmods
npx agentmods add commands/openshift-eng/ai-helpers/add-debug-wait
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers
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,311 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.05311
Opus 5 $0.00006 $0.02655
Sonnet 5 $0.00002 $0.01062
Haiku 4.5 $0.00001 $0.00531

Measured 2d ago against content hash a6ebebafca30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 715 lines

How it starts

The opening of the file, as written. The whole thing — 715 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. Adds - ref: wait before the last test step (with optional timeout configuration)
  4. Creates a git commit
  5. Pushes the commit to your fork (origin remote)
  6. 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
  4. OpenShift Release Repo Path: (prompt if not in current directory)

    Path to openshift/release repository:
    Default: ~/repos/openshift-release
    

Read the full file on GitHub · 715 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. 2d 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 (114 stars, last pushed 5d ago), licensed Apache-2.0. It adds 12 tokens to every session and 5,311 once invoked, about $0.0001 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.