query-job-status

query-job-status is a command for Claude Code from openshift-eng/ai-helpers. It costs 11 tokens per session (1,876 once invoked), scanned A, original, Apache-2.0.

A status lookup command for a Gangway job execution. Gangway is an API used to start and inspect CI jobs, and the execution ID is the unique identifier returned when a job starts.

In plain words
What is it for?
Use it to check a job execution by ID through the CI service and find its Google Cloud Storage artifacts when they are available.
Why use it?
It shows whether a started job is running, finished, or failed, along with its name, type, and available artifact location.

Command for Claude Code

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

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

Good fit Use it to check a job execution by ID through the CI service and find its Google Cloud Storage artifacts when they are available.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/ai-helpers/query-job-status
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 37 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 query-job-status

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/query-job-status"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/query-job-status.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,876 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00011 $0.01876
Opus 5.5 $0.00004 $0.00750
Sonnet 5.5 $0.00002 $0.00375
Haiku 4.5 $0.00001 $0.00188

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

Security

Grade A, and why

query-job-status scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **Execute API Request**: Make a GET request to query the job status using the `oc-auth` skill's curl wrapper:
plugins/ci/commands/query-job-status.md · 125 lines

How it starts

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

Name

ci:query-job-status

Synopsis

/query-job-status <execution-id>

Description

The query-job-status command queries the status of a gangway job execution via the REST API using the execution ID returned when a job is triggered.

The command accepts:

  • Execution ID (required, UUID returned when triggering a job)

It makes a GET request to the gangway API and returns the current status of the job including its name, type, status, and GCS path to artifacts if available. The curl_with_token.sh wrapper handles all authentication automatically.

Implementation

The command performs the following steps:

  1. Parse Arguments:

    • $1: execution ID (required, UUID format)
  2. Execute API Request: Make a GET request to query the job status using the oc-auth skill's curl wrapper:

    # Use curl_with_token.sh from oc-auth skill - it automatically adds the OAuth token
    # app.ci cluster API: https://api.ci.l2s4.p1.openshiftapps.com:6443
    curl_with_token.sh https://api.ci.l2s4.p1.openshiftapps.com:6443 -X GET \
      https://gangway-ci.apps.ci.l2s4.p1.openshiftapps.com/v1/executions/<EXECUTION_ID>
    

    The curl_with_token.sh wrapper retrieves the OAuth token from the app.ci cluster and adds it as an Authorization header automatically, without exposing the token.

  3. Display Results: Parse and present the JSON response with:

    • id: The execution ID
    • job_name: The name of the job
    • job_type: The type of job execution (PERIODIC, POSTSUBMIT, PRESUBMIT)
    • job_status: Current status (TRIGGERED, PENDING, SUCCESS, FAILURE, ABORTED)
    • gcs_path: Path to job artifacts in GCS (if available)
    • prow_url: Derived Prow dashboard URL (see step 4)
  4. Derive Prow URL from GCS Path: If gcs_path is present, convert it to a Prow dashboard URL:

    • Strip the gs://<bucket-name>/ prefix (bucket is typically origin-ci-test or test-platform-results-public)
    • Prepend https://prow.ci.openshift.org/view/gs/test-platform-results-public/
    • Example: gs://origin-ci-test/logs/periodic-ci-openshift-release-master-ci-4.14-e2e-aws-ovn/1234567890 → https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/periodic-ci-openshift-release-master-ci-4.14-e2e-aws-ovn/1234567890
    • The Prow URL always uses test-platform-results-public as the bucket name regardless of what gcs_path reports

Read the full file on GitHub · 125 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. 2mo ago Changed bec86f5cb60a
  2. 3mo ago First seen · 125 lines · 11 tokens per session scan A 44b3ef1411b9

Subscribe to this mod's changes

query-job-status is a command published in the GitHub repository openshift-eng/ai-helpers (123 stars, last pushed yesterday), licensed Apache-2.0. It adds 11 tokens to every session and 1,876 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

query-job-status compared with commands from other repositories

query-job-status next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
query-job-statusopenshift-eng/ai-helpersCommand123yesterdayApache-2.0A11Claude Code
dart-fix-cidartsim/dartCommand1.2kyesterdayBSD-2-ClauseA6Claude Code
domainsgotempsh/tempsCommand955todayApache-2.0A0Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand50todayApache-2.0A0GitHub Copilot
ADO: Get Build InfojnPiyush/AgentXCommand19todayApache-2.0A24GitHub Copilot
release-managerruvnet/agentic-flowCommand85020d agononeA0Claude Code
security-checkhamza-ali-shahjahan/hamzaishCommand111mo agoMITA79Claude Code