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.
git clone --depth 1 https://github.com/openshift-eng/ai-helpersWrote 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.
[](https://agentmods.dev/commands/openshift-eng/ai-helpers/payload-revert)<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/payload-revert"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/payload-revert/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.
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/payload-revert"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/payload-revert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00012 | $0.00818 |
| Opus 5.5 | $0.00005 | $0.00327 |
| Sonnet 5.5 | $0.00002 | $0.00164 |
| Haiku 4.5 | $0.00001 | $0.00082 |
Grade A, and why
payload-revert 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 1mo 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- payload-revert — 91% identical, 16 lines differ
How it starts
The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Name
ci:payload-revert
Synopsis
/ci:payload-revert <payload-tag>
Description
The ci:payload-revert command reads the payload results YAML produced by /ci:payload-analysis and stages reverts for all high-confidence candidates (confidence score >= 85) that have not already been reverted.
For each qualifying candidate, it creates a TRT JIRA bug, opens a revert PR, and triggers payload validation jobs using the stage-payload-reverts skill.
This command is one of three composable stages in the payload triage pipeline:
/ci:payload-analysis— produces the payload results YAML/ci:payload-revert— stages reverts for HIGH confidence candidates (this command)/ci:payload-experiment— opens draft revert PRs for MEDIUM confidence candidates
Job Triggering Limits
- Non-aggregated jobs: Up to 5 total across all candidates
- Aggregated jobs: Up to 1 total
When the number of failing jobs across all candidates exceeds these limits, prioritize jobs from higher-confidence candidates first.
Implementation
-
Parse the payload tag from the argument. Extract
version,stream, andarchitecturefrom the tag (seepayload-analysisStep 1 for parsing rules). -
Read the payload results YAML using the
payload-results-yamlskill: Look forpayload-results-{tag}.yamlin the current working directory. If not found, print an error and exit:Error: Payload results YAML not found for {payload_tag}. Run `/ci:payload-analysis {payload_tag}` first to generate it. -
Filter candidates: Select
type: "pr"candidates withconfidence_score >= 85. Exclude any that already have an action withstatusof"open"or"merged"(pre-existing revert).type: "rhcos_rpm"candidates are never reverted — they cannot be pulled out of a payload like a PR; thepayload-results-yamlskill's Read Candidates operation excludes them for this reason. -
Dispatch to
stage-payload-revertsskill: Pass all qualifying candidates with their context (results YAML path, payload tag, version, stream, architecture, release controller URL, and failing jobs). The skill updates the results YAML and HTML report in place. Thetrigger-payload-jobskill validates that aggregated jobs haveunderlying_job_nameset and skips them with an error if not.
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.
- 1mo ago First seen · 73 lines · 12 tokens per session scan A 581a292ceed2
payload-revert is a command published in the GitHub repository openshift-eng/ai-helpers (120 stars, last pushed today), licensed Apache-2.0. It adds 12 tokens to every session and 818 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.
Other commands, from other repositories
barista-fix
Attempt a small, focused fix for a frappe-ui issue and open a draft PR.
fix-issue
Fixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to…
unbloat
Remove dead code, duplicate files, and unused dependencies with user approval at each step. Backs up before deleting.
fix-issue
Analyze and fix the GitHub issue: $ARGUMENTS.
AGENTS
Run the current binary in a temporary test repository with a real PTY. Use tmux-cli when available, capture terminal output, and inspect -vv logs when behavior depends on timing or shell state. Avoid treating a piped command as proof of interactive behavior.
bug-fix
Streamlines bug fixing by creating a GitHub issue first, then a feature branch for implementing and thoroughly testing the solution before merging.