bisect

bisect is a skill for Claude Code from ohm41321/luciazero. It costs 53 tokens per session (278 once invoked), scanned A, original, MIT.

A guide and script for using Git bisect to find the first commit that introduced a reproducible regression.

In plain words
What is it for?
Use it when the current code is broken, an older revision works, and one repeatable command can distinguish good from bad commits.
Why use it?
It narrows a bug to one change by testing commits between a known-good and known-bad revision in a temporary worktree.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the luciazero plugin — 16 skills, 1 agent, 7 hooks shipped together

Good fit Use it when the current code is broken, an older revision works, and one repeatable command can distinguish good from bad commits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ohm41321/luciazero/bisect
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.

Any agent
npx skills add ohm41321/luciazero --skill bisect
Clone the repo
git clone --depth 1 https://github.com/ohm41321/luciazero

Made for: Claude Code.

Or install luciazero, the plugin that ships this one along with the rest of its 16 skills, 1 agent, 7 hooks.

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/skills/ohm41321/luciazero/bisect/github.svg)](https://agentmods.dev/skills/ohm41321/luciazero/bisect)
Your own site
<a href="https://agentmods.dev/skills/ohm41321/luciazero/bisect"><img src="https://agentmods.dev/badge/skills/ohm41321/luciazero/bisect/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 bisect

Your own site · 80×15
<a href="https://agentmods.dev/skills/ohm41321/luciazero/bisect"><img src="https://agentmods.dev/badge/skills/ohm41321/luciazero/bisect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 278 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00053 $0.00278
Opus 5.5 $0.00021 $0.00111
Sonnet 5.5 $0.00011 $0.00056
Haiku 4.5 $0.00005 $0.00028

Measured 11d ago against content hash c130b318350a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/safe-bisect.cjs, scripts/safe-bisect.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/bisect/SKILL.md · 30 lines

What it actually says

Bisect

1. Freeze the criterion

Confirm the bad endpoint fails and name a good commit or tag. One unattended command decides: exit 0 means good, 1–124 means bad, and 125 means untestable. A missing executable is an infrastructure error.

2. Run in a throwaway worktree

node <this-skill-dir>/scripts/safe-bisect.cjs --good <good-rev> --bad <bad-rev> -- <verify-command> [args...]

The helper repeats each endpoint twice, uses a detached temporary worktree, cleans state, resets bisect, and removes the worktree on every exit path. Use --retries N only for endpoint samples. Make the reproduction deterministic first through /debug.

3. Interpret narrowly

Report the first bad commit, not automatically the root cause. Read its diff and relevant callers; feed /debug, keep the regression test, and run the full verification tier after fixing.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 11d ago Changed c130b318350a
  2. 1mo ago First seen · 30 lines · 53 tokens per session scan A 81387a0f07a3

Subscribe to this mod's changes

bisect is a skill published in the GitHub repository ohm41321/luciazero (6 stars, last pushed 9d ago), licensed MIT. It adds 53 tokens to every session and 278 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories