aicoolies logo

Git Bayesect

Bayesian git bisection for finding commits that caused flaky tests

Share
open-sourceOpen Source
Visit Website →

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

Alternatives

Related Tools

Safari MCP Server

Apple's Safari-native MCP server for web debugging agents

Safari MCP Server is Apple's safaridriver-based MCP server in Safari Technology Preview, giving compatible coding agents local access to Safari page content, console logs, network requests, screenshots, JavaScript evaluation, interactions, viewport controls, and accessibility/performance checks.

freeTelemetry

Notion MCP Server

Official Notion MCP server for AI-agent workspace access

Notion MCP Server is Notion's official MIT-licensed MCP server for connecting AI assistants to Notion workspaces. It supports the vendor-backed remote OAuth path and tools designed for page, workspace, and Markdown-style operations, making it a safer default than unofficial Notion bridges for teams already using Notion for docs, projects, or internal knowledge bases.

open-sourceOpen SourceTelemetry

Linear MCP Server

Official authenticated remote MCP endpoint for Linear issues, projects, comments, and coding-agent workflows.

Linear MCP Server is Linear’s official authenticated remote MCP endpoint for agent access to issues, projects, and comments. It gives Claude, Codex, Cursor, VS Code, Windsurf, Zed, and other clients a centrally hosted way to find, create, and update Linear work items through OAuth-backed MCP without maintaining a local connector or brittle API glue.

freemiumTelemetry

Slack MCP Server

Official Slack MCP server for approved workspace search, messaging, canvas, and user-context actions.

Slack MCP Server is Slack’s official remote MCP layer for giving approved AI clients workspace context and controlled actions. It lets agents search messages, files, users, and channels, draft or send messages, read threads, manage canvases, and authenticate through Slack OAuth while workspace admins approve integrations and normal Slack rate limits still apply.

freemiumTelemetry

Spotlight by Backplanes

Session reports for Claude Code and Codex runs

Spotlight by Backplanes turns completed Claude Code and Codex sessions into concise reports for engineering, security, and spend review. The CLI installs on macOS, Linux, or WSL 2, watches sessions after they finish, redacts PII and credentials locally before upload, then summarizes files touched, commands run, external domains reached, scope drift, risky actions, and next-session improvements.

freemiumTelemetry
agmsg logo

agmsg

Cross-agent messaging for CLI coding agents

agmsg is an MIT-licensed Bash and SQLite messaging layer for CLI coding agents. It lets Claude Code, Codex, Gemini CLI, GitHub Copilot CLI, Antigravity, OpenCode, Hermes, and other terminal agents exchange messages through a shared local database instead of relying on a human copy-paste relay. It is intentionally not MCP, not a broker, and not a subagent framework.

open-sourceOpen Source