--- name: bisect description: Bisect a ClickHouse regression using pre-built master binaries from CI. Use when the user wants to find the commit that introduced a bug. argument-hint: [good-ref] [bad-ref] disable-model-invocation: false allowed-tools: Task, Bash(git:*), Bash(curl:*), Bash(chmod:*), Bash(mkdir:*), Bash(ls:*), Bash(/tmp/*), Bash(cat:*), Bash(utils/auto-bisect/*), Read, Write, Glob, Grep, WebFetch, LSP --- # ClickHouse Bisect Skill Bisect a ClickHouse regression using `utils/auto-bisect/bisect.sh`, which downloads pre-built CI binaries and manages the bisect loop automatically. ## Arguments - `$0` (required): Path to a SQL repro file (e.g., `/tmp/repro.sql`) - `$1` (optional): Good ref — a git tag, branch, or SHA known to be good (default: latest `v*.1.1-*` tag) - `$2` (optional): Bad ref — a git tag, branch, or SHA known to be bad (default: `HEAD`) ## How the auto-bisect script works `utils/auto-bisect/bisect.sh` orchestrates the full bisect: 1. For each commit, `helpers/download.sh` fetches the release binary from CI S3 2. `env/