bisect

bisect is a skill for Claude Code, Codex from paultyng/skill-issue. It costs 121 tokens per session (2,248 once invoked), scanned A, original, MIT.

A workflow for using Git bisect to find the first commit that introduced a regression. A regression is a behavior, test, or build that worked before and now fails.

In plain words
What is it for?
Use it to investigate a reproducible regression by supplying a known-good version, a known-bad version, and a command that tests the behavior.
Why use it?
It narrows a long sequence of changes to the commit where the problem first appeared, provided there is a reliable test that distinguishes working from broken code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./cmd/server & PID=$!; sleep 1; curl -fsS localhost:8080/health; kill $PID.

Good fit Use it to investigate a reproducible regression by supplying a known-good version, a known-bad version, and a command that tests the behavior.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/paultyng/skill-issue
agentmods
npx agentmods add skills/paultyng/skill-issue/bisect

Made for: Claude Code, Codex.

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/paultyng/skill-issue/bisect/github.svg)](https://agentmods.dev/skills/paultyng/skill-issue/bisect)
Your own site
<a href="https://agentmods.dev/skills/paultyng/skill-issue/bisect"><img src="https://agentmods.dev/badge/skills/paultyng/skill-issue/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/paultyng/skill-issue/bisect"><img src="https://agentmods.dev/badge/skills/paultyng/skill-issue/bisect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 121 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,248 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.00121 $0.02248
Opus 5.5 $0.00048 $0.00899
Sonnet 5.5 $0.00024 $0.00450
Haiku 4.5 $0.00012 $0.00225

Measured 1mo ago against content hash a81227e67424, 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 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 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.

Makes network callslowCapability

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

go run ./cmd/server & PID=$!; sleep 1; curl -fsS localhost:8080/health; kill $PID
skills/bisect/SKILL.md · 154 lines

How it starts

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

Bisect

Drive git bisect to isolate the first commit that introduced a bug, then report it. The skill stops at the report. Fixing belongs to the user with full context.

When to use

  • User asks to "bisect", "find the commit that broke X", says "this used to work", or names a regression in a specific test/build target.
  • ci-debug-loop exhausted log analysis without identifying a clear cause.
  • A behavior, test, or build that was green at a known earlier point is now red.

Do not use when the bug is obviously in the most recent commit (inspect it), or when the reproducer is too fragile/flaky to drive an automated bisect (fix the flake first).

Inputs (confirm before starting)

Per confirm-before-implementing, gather these before touching git bisect:

  • Symptom: one-line description of what's broken (e.g. "TestExchangeToken fails with unauthorized").
  • Reproducer: a shell command that exits 0 when the bug is absent, 1 when present. If the user can't supply one, build it together (see Reproducer strategy).
  • Known-bad ref: default HEAD.
  • Known-good ref: default oldest commit within the last 2 weeks:
    git rev-list --since='2 weeks ago' --reverse HEAD | head -1
    
    If the user has a tag, branch, or specific date in mind, use it instead.

Reproducer strategy

The reproducer must work at every commit in the bisect range. The reproducer that exists today often won't: APIs change, test files don't yet exist on old commits, etc. Pick the highest-applicable strategy:

  1. External reproducer (preferred). A self-contained shell script in $TMPDIR (e.g. /tmp/repro.sh) that builds and exercises the project from outside the source tree. Hits a stable surface (CLI flag, HTTP endpoint, exported function with stable signature) that survived the bisect range. Examples:
    # CLI: build and check observable behavior
    go build -o /tmp/foo ./cmd/foo && /tmp/foo --some-flag | grep -q expected
    # HTTP: spin up server, hit endpoint, kill
    go run ./cmd/server & PID=$!; sleep 1; curl -fsS localhost:8080/health; kill $PID
    
    This survives any in-tree changes because the reproducer doesn't live in the tree.

Read the full file on GitHub · 154 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. 1mo ago First seen · 154 lines · 121 tokens per session scan A a81227e67424

Subscribe to this mod's changes

bisect is a skill published in the GitHub repository paultyng/skill-issue (8 stars, last pushed yesterday), licensed MIT. It adds 121 tokens to every session and 2,248 once invoked, about $0.0005 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-31.