bisect

bisect is a command for coding agents from wangke19/gemini-ai-helpers. It costs 10 tokens per session (3,814 once invoked), scanned A, a copy of bisect, Apache-2.0.

An interactive guide for Git bisect, a method that uses binary search to find which commit introduced a bug or other change.

In plain words
What is it for?
Use it to locate the commit behind a bug, behaviour change, new feature, or performance regression.
Why use it?
It reduces the number of commits you must inspect and explains the process using clearer terms.

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/bisect
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 bisect

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/bisect.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/bisect)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/bisect"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-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,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.03814
Opus 5 $0.00005 $0.01907
Sonnet 5 $0.00002 $0.00763
Haiku 4.5 $0.00001 $0.00381

Measured yesterday against content hash 0ad643f8f209, 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

This is a copy

100% identical to bisect — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

extensions/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 0ad643f8f209

Subscribe to this mod's changes

bisect is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 10 tokens to every session and 3,814 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to bisect, differing in 2 lines, and is treated as a copy.