add-debug-wait

add-debug-wait is a command for coding agents from wangke19/gemini-ai-helpers. It costs 12 tokens per session (4,305 once invoked), scanned A, original, Apache-2.0.

A command that inserts a temporary wait step into a named CI job or workflow before its final test step. It can set a wait limit and prepares a change for a GitHub pull request.

In plain words
What is it for?
Use it when investigating failing automated tests in a CI workflow. Provide the workflow or job name and, optionally, how long the run may wait.
Why use it?
It lets you pause a CI run after a test failure so you can inspect or debug the job before it continues. This avoids manually editing workflow files and creating the change yourself.

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/wangke19/gemini-ai-helpers/add-debug-wait
Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

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/wangke19/gemini-ai-helpers/add-debug-wait.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/add-debug-wait)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/add-debug-wait"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/add-debug-wait.svg" alt="Measured on agentmods" 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 4,305 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.04305
Opus 5 $0.00006 $0.02152
Sonnet 5 $0.00002 $0.00861
Haiku 4.5 $0.00001 $0.00430

Measured 4d ago against content hash 840456e36504, 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 4d 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.

extensions/ci/commands/add-debug-wait.md · 624 lines

How it starts

The opening of the file, as written. The whole thing — 624 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. Commits and pushes the change
  5. Gives you a GitHub link to create the PR

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)
    • Will be normalized to Go duration format (e.g., "8h" → "8h0m0s")
    • This will be set as the timeout: property on the wait step in the workflow/job YAML
  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
    

Step 2: Validate Environment

Silently validate (no user prompts):

Read the full file on GitHub · 624 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. 4d ago First seen · 624 lines · 12 tokens per session scan A 840456e36504

Subscribe to this mod's changes

add-debug-wait is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 12 tokens to every session and 4,305 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-31.