In short.
Bisect anything is a debugging skill for developers and coding assistants that helps locate a breaking change, but its result depends on correctly distinguishing the bug from unrelated failures. Its Python scripts search history in a separate Git worktree, repeat checks, skip unbuildable commits and reduce failing patches or inputs. Demonstration and self-test code are included, but execution results are not supplied. Material limitations include Unix-oriented implementation, reductions that need not be globally smallest, mixed pass/skip voting behavior and interruption-dependent server cleanup.
Researched and written by an AI model and checked by a second AI model. How it works
Covers all 12 supplied files under skills/coding/bisect-anything at revision 58224d131814572224537fb516b8c5d33dd5fa67: SKILL.md, reference.md, two example programs and eight supporting Python files. The related repository-root LICENSE is also included. Other simcraft folders, repository-wide installation material, assistant-host integrations and target-project dependencies are outside the supplied scope. No code was executed; test outcomes, measured performance, platform compatibility and real-project behavior remain unassessed.
The overview
Identity
Bisect anything is the skills/coding/bisect-anything folder in dotslashsimran/simcraft. It contains assistant instructions, a reference document, two example programs and eight supporting Python files. The instructions guide an assistant through reproducing a regression, locating its introduction and explaining the responsible change; the scripts can also be invoked directly.
Original source: [https://github.com/dotslashsimran/simcraft/tree/main/skills/coding/bisect-anything]. The supplied snapshot is revision 58224d131814572224537fb516b8c5d33dd5fa67: [https://github.com/dotslashsimran/simcraft/tree/58224d131814572224537fb516b8c5d33dd5fa67/skills/coding/bisect-anything].
Assessment
The strongest fit is a reproducible regression with a known working revision, a broken revision and a command that checks one precise symptom. The useful design choices are checking both endpoints before searching, separating build failures from bug failures, and recording skipped commits instead of forcing a single answer.
The skill still requires engineering judgment: someone must reproduce the problem, make old revisions build and interpret the resulting diff. Accuracy, time savings and reliability on real projects are unknown because no execution results are supplied.
Users
Developers, test engineers and maintainers investigating changed behavior can use it for failing tests, incorrect output, slowdowns, crashes, visual changes or server responses. Dependency versions and input combinations are also supported search targets.
Beginners receive explanations and recipes, but still need help with Git references, shell commands and writing a meaningful check. Experienced developers get controls for merge history, repeat voting, dependency installation, overlays and patch reduction. Assistant-specific installation and compatibility are not established.
Capabilities
The main wrapper implements endpoint verification, separate worktrees, install caching based on dependency-file contents, per-commit builds, test-file overlays, repeated checks, timeout classification, path filtering, first-parent history and searching for a fix. It records steps in steps.jsonl and can export a result as JSON.
The comparison helpers cover normalized text output, median benchmark timings, PNG pixel differences with tolerance and masks, and server status or response checks. The image helper compares existing screenshots; producing a browser screenshot requires an external rendering command.
bisect_list.py searches ordered candidates or reduces sets of inputs. hunk_minimise.py reduces a commit by hunks or files and writes minimal.patch. Both reductions depend on the supplied check and its treatment of untestable candidates.
Using it
Requirements
The scripts specify Python 3.9 or later and use its standard library. Git is required for history search and hunk reduction; the documented first-parent option requires Git 2.29 or later. The target project still needs its own dependencies, build tools and any historical toolchain versions.
A Unix-like environment is the practical assumption: process cleanup uses os.killpg and Unix signals, CPU timing imports resource, and examples use Unix shell utilities. Windows compatibility is not established. Sufficient disk space and permission to create worktrees, install dependencies and write logs are needed.
The bundled scripts contain no model API integration. Any coding assistant used to interpret the skill has separate requirements that are not specified here.
Mechanism
An oracle is a command that classifies one candidate. Exit 0 means working, 125 means untestable, and other outcomes mean broken. The shared wrapper also classifies crashes and timeouts, with an option to treat timeouts as untestable. Install or build failures are skipped during commit search.
The driver checks that the working revision is an ancestor of the broken revision, creates a detached worktree and normally verifies both endpoints. Git then narrows the history using the oracle. Ordered-list search similarly assumes a single transition from working to broken; repeated fixes and regressions can invalidate that interpretation.
Hunk and input reduction use delta debugging: try subsets and retain combinations that still reproduce the failure. These reductions seek a locally irreducible result, rather than proving that no smaller failing combination exists anywhere.
Setup
Acquire the complete skill folder from the pinned source and preserve its relative layout. SKILL.md refers to ~/simcraft/skills/coding/bisect-anything/scripts/; adapt that location to the actual checkout. The instruction document alone does not contain the helper implementations or reference material.
Choose working and broken revisions, establish how to install and build historical versions, and keep the symptom-checking script outside the target repository. If a new test must appear inside each historical tree, the wrapper provides an overlay option. Keep endpoint verification enabled.
The supplied local demonstration is invoked from the skill folder with python3 examples/selftest.py. Its presence documents an evaluation route; its outcome is unknown.
Example
For an npm project, the following adapts the documented command. Replace /path/to/project and GOOD_COMMIT with actual values, and provide /tmp/repro.js as a narrowly targeted check that exits 0 when working and 1 when the regression appears.
python3 scripts/bisect.py --repo /path/to/project --good GOOD_COMMIT --bad HEAD --install "npm ci" --build "npm run build" --oracle "node /tmp/repro.js" --repeats 3 --timeout 120
The bundled demonstration plants an even-length median bug among unrelated changes. By inspection, its changed implementation would return 3 for [1, 2, 3, 4], while the supplied test expects 2.5. That illustrates a specific oracle suitable for both history search and hunk reduction; it is not an observed test result.
Assessment & evidence
Limitations
A reliable answer requires a symptom-specific oracle and suitable history. Unrelated failures can produce incorrect blame, skipped commits can leave several candidates, and a gradual slowdown identifies a chosen threshold crossing rather than necessarily one causal change. The benchmark helper skips measurements near its threshold. The image helper supports only 8-bit, non-interlaced PNGs.
The shared any-bad voter has a consequential edge case: it returns good when at least one attempt passed and none failed, even when other attempts were skipped. Thus a good result does not establish that every requested repetition was testable and passed.
Reduction is not guaranteed to find the globally smallest failing set. Unbuildable or skipped subsets are treated as not reproducing the failure, so removing a retained hunk can make the code untestable rather than demonstrate a passing program. The scripts' printed claims about smallest sets and passing removals need that qualification.
A worktree separates checked-out files but does not sandbox commands. Install, build and oracle commands execute through a shell and inherit the environment. Overlay destinations are joined to the worktree path without rejecting absolute paths or parent-directory traversal, so destinations require care.
Server cleanup has an interruption gap. The server helper starts its server in a separate process group, while the outer timeout handler uses SIGKILL on the oracle's group. If that timeout kills the helper, its cleanup block cannot run, and the separately grouped server can remain. Cleanup under all interruption paths is therefore not established.
Reasoning
The practical value is concentrating a repeatable investigation around one observable symptom. Endpoint verification can expose an unsuitable check before a long search, while build skips preserve the distinction between broken behavior and unavailable evidence. Logs support explaining uncertainty.
A found commit remains a starting point for causal explanation. The reference appropriately calls for reading surrounding code, checking the responsible hunk and turning the oracle into a regression test. A commit title or reduced patch alone does not explain why the symptom occurs.
Alternatives
The documented baseline is direct git bisect run with a custom check. That leaves endpoint validation, worktree management, setup, repeat voting and crash-exit handling to the user. It may suffice when the investigation needs little surrounding automation.
For reducing a small change manually, the reference describes reverting it without committing and restoring files or hunks incrementally while checking the symptom. No comparative runtime, accuracy or usability measurements between these approaches are supplied.
Evidence
The supplied material includes the instructions, reference, all supporting scripts, demo-repository generator, self-test source and repository licence. The implementation exposes the search, classification, caching, reduction and cleanup behavior described here.
The self-test source intends to check planted functional, performance and visual regressions, server behavior, flaky checks, merge handling, ambiguous skips, install caching, hunk reduction and preservation of the main checkout. These are programmed assertions, not supplied passing results. Nothing was executed, and real-project accuracy, benchmark results and end-to-end assistant behavior remain unassessed.
Access & freshness
Costs
The MIT notice permits use and redistribution without specifying a licence fee. Total operating cost is unknown: dependency downloads, repeated builds, repeated benchmarks, disk use and any chosen assistant or CI infrastructure determine consumption. No measured resource costs, paid-service prices or demonstrated cost savings are supplied.
Rights
The supplied repository-level MIT License names Simran Sachdeva, copyright 2026. It permits use, copying, modification, publication, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It includes warranty and liability disclaimers.
The notice is available at [https://raw.githubusercontent.com/dotslashsimran/simcraft/58224d131814572224537fb516b8c5d33dd5fa67/LICENSE]. Target-project code, dependencies and generated screenshots may have separate rights that this notice does not establish.
Freshness
The snapshot was captured on 2026-11-16 at 01:07:17.641 UTC and is pinned to revision 58224d131814572224537fb516b8c5d33dd5fa67. No separate skill release version or commit publication date is supplied. Current main-branch contents, later fixes and compatibility with future toolchains are unknown.
Actions
Start with one reproducible symptom and demonstrate that its oracle distinguishes the two endpoints. Freeze changing inputs, disable inappropriate test caches and establish historical build commands. For performance investigations, measure both endpoints before choosing a threshold.
Before unattended use, address the mixed pass/skip voting case and forced-interruption server cleanup described above. Keep overlay destinations inside the worktree. Evaluate the supplied self-test in the intended environment; its results are currently unknown.
After a search, inspect skipped candidates and the actual diff before naming a cause. Treat an ambiguous result as a candidate range. Use reduction to aid inspection, then validate the proposed fix with a regression test derived from the oracle.
