aicoolies logo

Git Bayesect

Bayesian git bisection for finding commits that caused flaky tests

open sourceupdated Apr 12, 2026

Git Bayesect applies Bayesian inference to git bisection, solving the problem of finding commits that introduced non-deterministic bugs like flaky tests. Unlike standard git bisect which requires binary pass-fail results, Git Bayesect handles probabilistic outcomes where a test might pass sometimes and fail sometimes, using entropy minimization to efficiently narrow down the culprit commit.

Git Bayesect extends git bisect with Bayesian inference to handle the real-world scenario where test failures are not deterministic. Standard git bisect assumes every commit is clearly good or bad, but flaky tests introduce uncertainty. A test might fail ten percent of the time after a particular commit, making it impossible to definitively mark any single run as indicating a good or bad commit. Git Bayesect models this uncertainty explicitly and converges on the most likely culprit commit through repeated observations.

The algorithm uses Beta-Bernoulli conjugacy to maintain probability distributions over which commit introduced the change, and selects commits to test via greedy minimization of expected entropy. This means each test run provides maximum information about where the regression occurred. Developers can optionally provide priors based on filenames or commit message content to speed convergence further, for example weighting commits that touch suspicious files more heavily.

Featured on Hacker News with 254 upvotes and active discussion, Git Bayesect addresses a pain point that every large engineering team faces: flaky tests that make standard bisection unreliable. The tool installs as a git subcommand via pip and integrates seamlessly with existing git workflows. For CI/CD teams maintaining test suites with intermittent failures, it provides a mathematically sound approach to regression detection.

Pricing

Free and open-source

Platforms

Python, pip install, integrates as git subcommand

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

MCPJam logo

MCPJam Inspector

Test and debug MCP servers before they ship

Open-source platform for inspecting, debugging and regression-testing MCP servers, MCP Apps and ChatGPT apps, with OAuth and protocol conformance for local and CI workflows.

freemiumOpen SourceTelemetry
KaibanJS logo

KaibanJS

JavaScript framework for building and visualizing multi-agent workflows on a Kanban board

KaibanJS is an MIT-licensed JavaScript framework for defining AI agents, tasks, tools, and teams, then orchestrating their work through a Kanban-inspired runtime and visual board. It can run inside Node.js, React, or Next.js projects, supports custom UIs and headless workflows, and provides real-time task-state visibility for multi-agent applications.

Open SourceTelemetry
Open Notebook logo

Open Notebook

Private, self-hosted research notebooks with flexible AI models, source chat, and podcasts

Open Notebook is an MIT-licensed, self-hosted alternative to NotebookLM for collecting sources, chatting over research, generating reusable transformations, and producing multi-speaker podcasts. Its Docker stack keeps notebook data under the user's control while supporting 18-plus model providers, including local Ollama and LM Studio workflows.

Open SourceTelemetry
n8n-MCP logo

n8n-MCP

Community MCP server for n8n node knowledge, workflow drafting, and validation

n8n-MCP is an independent, MIT-licensed community server that gives MCP-compatible assistants structured access to n8n node documentation, properties, templates, and workflow validation helpers. It is distinct from the existing n8n product page and covers the MCP layer used from clients such as Claude, Cursor, Windsurf, and Codex.

Open SourceTelemetry
MCP for Unity logo

MCP for Unity

Open-source MCP bridge between AI assistants and the Unity Editor

MCP for Unity is CoplayDev’s MIT-licensed bridge between MCP-compatible AI assistants and the Unity Editor. It exposes tools for assets, scenes, GameObjects, scripts, tests, profiling, and build-oriented workflows. The community project supports Unity 2021.3 LTS through 6.x and is explicitly not affiliated with Unity Technologies.

Open Source
XcodeBuildMCP logo

XcodeBuildMCP

Sentry-maintained MCP server and CLI for Xcode builds, simulators, and tests

XcodeBuildMCP is a Sentry-maintained, MIT-licensed MCP server and CLI for agent-assisted iOS and macOS development. It lets MCP-compatible coding agents run Xcode build and test workflows, manage simulators, inspect failures, and work through Homebrew, npm, or on-demand client configuration, with documented Sentry telemetry controls for teams that need an opt-out.

Open SourceTelemetry

FAQ

What is Git Bayesect?

Git Bayesect applies Bayesian inference to git bisection, solving the problem of finding commits that introduced non-deterministic bugs like flaky tests. Unlike standard git bisect which requires binary pass-fail results, Git Bayesect handles probabilistic outcomes where a test might pass sometimes and fail sometimes, using entropy minimization to efficiently narrow down the culprit commit.

Is Git Bayesect free?

Yes — Git Bayesect is open source and free to use. Free and open-source

Is Git Bayesect open source?

Yes — Git Bayesect is open source.

What are the best Git Bayesect alternatives?

The top editor-verified Git Bayesect alternatives are Jest, Keploy.