bisect

bisect is a command for coding agents from openshift-eng/ai-helpers. It costs 10 tokens per session (3,815 once invoked), scanned A, original, Apache-2.0.

An interactive assistant for Git bisect, a method that uses binary search to find which commit introduced a bug or other behavior change. It asks whether the change is present in selected commits and narrows the search.

In plain words
What is it for?
Use it to investigate bugs, feature changes, or performance regressions and identify the commit responsible.
Why use it?
It makes the bisect process easier to follow and can automate evaluations when the test condition is clear.

Command

Part of the git plugin — 2 skills, 10 commands shipped together

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/bisect
Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Or install git, the plugin that ships this one along with the rest of its 2 skills, 10 commands.

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 bisect

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/bisect.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/bisect)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/bisect"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/bisect.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,815 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.00010 $0.03815
Opus 5 $0.00005 $0.01907
Sonnet 5 $0.00002 $0.00763
Haiku 4.5 $0.00001 $0.00381

Measured yesterday against content hash b256b4a62bbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bisect 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • bisect — 100% identical, 2 lines differ
plugins/git/commands/bisect.md · 514 lines

How it starts

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

Name

git:bisect

Synopsis

/git:bisect                       # Fully interactive - will ask for all inputs
/git:bisect [good-commit] [bad-commit]  # With commit references

Description

The git:bisect command is an interactive git bisect assistant that helps find the exact commit that introduced a specific change (bug, behavior change, feature, performance regression, etc.) using binary search.

What This Command Does:

  1. Guides you through setup - Validates commits, checks for conflicts
  2. Presents commits for evaluation - Shows relevant info about each commit
  3. Learns from your decisions - Detects patterns in your choices
  4. Can automate - If it understands your criterion, it can evaluate automatically (with your permission)
  5. Reports the result - Shows the culprit commit with full details

Terminology

Git bisect uses confusing terms. This command uses clearer labels:

What You See Git Term Meaning
"Change IS in the code" bad The change you're looking for EXISTS in this commit
"Change is NOT in the code" good The change you're looking for does NOT exist yet

Never use "good" or "bad" alone - always explain what they mean in context.

Workflow

1. Provide (or select) reference commits
         ↓
2. Describe what change you're looking for
         ↓
3. [If criterion is clear] Confirm understanding → Choose manual/auto
         ↓
4. Evaluate commits (manually or automatically)
         ↓
5. Receive final report with culprit commit
         ↓
6. Clean up (git bisect reset)

Commands During Bisect

At any point during the bisect, you can:

  • "show diff" or "more details" - See the full diff for the current commit
  • "skip" - Skip a commit that cannot be tested (won't build, etc.)
  • "abort" - Cancel the bisect and return to your original branch
  • "automate" - Ask to enable automation (if pattern detected)

Read the full file on GitHub · 514 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. yesterday First seen · 514 lines · 10 tokens per session scan A b256b4a62bbb

Subscribe to this mod's changes

bisect is a command published in the GitHub repository openshift-eng/ai-helpers (114 stars, last pushed yesterday), licensed Apache-2.0. It adds 10 tokens to every session and 3,815 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-09-03.