プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。Google でログインするとレビューを書けます。プロトタイプ · 30分ごとに更新
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説 ログイン

Failcast

作者:AL3XPIバージョン 0.1.1i★ 0iパソコンで動くリポジトリ ↗

インストール方法

できること

Local Rust CLI and MCP server that predicts which pytest tests will fail for a git diff

作者による原文

  • 接続方法 パソコンで動く
  • アカウントまたはキー キー不要
  • カテゴリ 開発者ツール

一緒に使える

この種の作業を AI に教える Skill。これと一緒に使えます

rea

Reverse engineer anything with agents, from app behavior down to native binaries.

作者:morluto★ 478,4891 個の skill

Skill · 手順書

andrej-karpathy-skills

A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.

作者:multica-ai★ 235,7181 個の skill

Skill · 手順書ライセンス記載なし

graphify

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

作者:Graphify-Labs★ 153,3911 個の skill

Skill · 手順書

この順位の理由

一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり

人気0/80GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます
新しさ12/1230 日以内のリリースかコード更新で満点
応答中0/8前回の確認でクラウドのエンドポイントが応答
利用スコア12/100

品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)

インストール

使っているAIアプリを選んで、設定をコピーしてください。

ひとことで AI にインストールしてもらう

Failcast をインストールして。https://mcp.popnx.com/i/al3xpi-failcast.md に従い、コマンドを見せて、私が OK するまで実行しないで。

パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る

チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月26日

まず:どの AI を使っていますか?

使っているアプリを選ぶと、下に手順が表示されます。

Claude につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません

AI にインストールしてもらう

このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude に MCP server Failcast を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "failcast": { "command": "uvx", "args": [ "failcast", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Failcast のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. パソコン版 Claude アプリの設定ファイルを開く

    SettingsDeveloperEdit Config

  3. この設定を貼り付けて保存

    {
      "mcpServers": {
        "failcast": {
          "command": "uvx",
          "args": [
            "failcast",
            "mcp"
          ]
        }
      }
    }
  4. Claude を終了してもう一度開く

  5. 試してみる

    Failcast を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude が Failcast を使っていると言うか、回答に Failcast のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

ChatGPT はまだ Failcast につなげません

Failcast はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません

代わりにできること

A · Failcast につなげるアプリを使う

  • 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)
  • 先にパソコンへ Python (uv) を入れてください(1 回だけ)

B · 開発者ツール の中で ChatGPT につなげる別のサーバー

同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました

Claude Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Claude Code に MCP server Failcast を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user failcast -- uvx failcast mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Failcast のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. ターミナルを開く

    Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く

  3. このコマンドを貼り付けて Enter

    claude mcp add --scope user failcast -- uvx failcast mcp
  4. Claude Code で /mcp と入力

    Failcast が一覧にあり、接続済みと表示されれば OK です

  5. 試してみる

    Failcast を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Claude Code が Failcast を使っていると言うか、回答に Failcast のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Cursor につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの Cursor に MCP server Failcast を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "failcast": { "command": "uvx", "args": [ "failcast", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Failcast のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで Cursor を開く

    Cursor で開く

    Cursor がインストールの確認をするので Install を押します

  3. Cursor の AI チャットを Agent モードで開く

  4. 試してみる

    Failcast を使って、私に何ができるか教えて、1 つやってみせて

    ✓ Cursor が Failcast を使っていると言うか、回答に Failcast のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

VS Code につなげますが、先に準備が必要です

先にパソコンへ Python (uv) を入れてください(1 回だけ)

AI にインストールしてもらう

このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。

このパソコンの VS Code に MCP server Failcast を入れてください。順番に:1) uv --version で uv があるか確認。なければ https://docs.astral.sh/uv/getting-started/installation/ から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "failcast": { "type": "stdio", "command": "uvx", "args": [ "failcast", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Failcast のツールが本当に表示されるか確認する。

このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。

  1. uv を入れる(まだなければ)

    もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter

    uv --version
    • バージョン番号(例 uv …)が出る = 入っています。この手順は飛ばせます
    • "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
    ターミナルの開き方

    Mac:⌘ + Space を押し、Terminal と入力して Enter

    Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」

    まだ入っていない場合: uv にはクリック式のインストーラーがありません。uv 公式ページからお使いの OS(macOS か Windows)用の 1 行コマンドをコピーしてターミナルに貼り付けます · Python を別に入れる必要はなく、必要なときに uv が自動で取得します

    uv のダウンロードページを開く ↗

    入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: uv --version

    一度入れれば、uv を使うすべてのツールで使えます

  2. このボタンで VS Code を開く

    VS Code で開く

    VS Code がインストールの確認をするので Install を押します

  3. VS Code の AI チャットを Agent モードで開く

  4. 試してみる

    Failcast を使って、私に何ができるか教えて、1 つやってみせて

    ✓ VS Code が Failcast を使っていると言うか、回答に Failcast のツール名が出れば接続成功です

メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります

Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください

MCP を使えるアプリをすべて見る →

JSON 設定は下の「開発者向け」にあります

つまずいたら?Failcast を使っている人に聞いてみましょう💬 ディスカッション →
開発者向け:ターミナルのコマンドと JSON 設定

パソコンにインストール

Claude Code

claude mcp add --scope user failcast -- uvx failcast mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "failcast": {
      "command": "uvx",
      "args": [
        "failcast",
        "mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "failcast": {
      "command": "uvx",
      "args": [
        "failcast",
        "mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "failcast": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "failcast",
        "mcp"
      ]
    }
  }
}

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

ひと目でわかる

レジストリ名
io.github.AL3XPI/failcast
週あたりのダウンロードi
npm/PyPIにない
接続方法
パソコンで動く
最新バージョンi
0.1.1
レジストリ公開日i
2026年11月26日
コードの最終更新i
2026年11月26日
作者
AL3XPI
パッケージ
pypi: failcast
レジストリでの状態
有効

使えるアプリ

このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。

パソコン上で動かせるアプリ

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

すべてのアプリと長所・短所 →

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント AL3XPI で確認済みです

  • ✓ 合格

    今もメンテナンスされている

    コードの最終更新:今日

  • ✓ 合格

    ライセンスがある

    MITを使用

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

公開済みの脆弱性(OSV.dev)

OSV.dev に failcast@0.1.1 の登録はありません

このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月26日

確認していること → · JSON

作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける

作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/al3xpi-failcast.svg)](https://mcp.popnx.com/en/servers/al3xpi-failcast)

話し合い

質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。

まだ投稿はありません。最初の質問や共有をどうぞ。

ここの投稿は利用者によるもので、PopNx チームのものではありません。

ログインして投稿

ユーザーレビュー

まだレビューはありません

ログインしてレビューを書く

開発者ツールのほかのサーバーとの比較i

  • このカテゴリのほかの8006件のうち0%よりスターが多い
  • このカテゴリのほかの8006件のうち98%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの8006件のうち99%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Failcastは安全ですか?

当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は今日、最新バージョン(0.1.1)がレジストリに届いたのは今日です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise

似た働きのほかの候補

同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。

カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

GitDiagram

Architecture diagrams, explanations and Mermaid source for public GitHub repositories.

作者:ahmedkhaleel2004広く使われている★ 1.9万2 か月前更新

すぐ接続できる(URL あり)ツール 3 個 · 軽め✓ 提供元 · gitdiagram.comPopNx チームが実際に試用

Appllama

Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.

作者:Appllama広く使われている★ 56633 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · appllama.io

Cloudflare MCP

Cloudflare MCP servers

作者:cloudflare成長中★ 449714 か月前更新

すぐ接続できる(URL あり)ツール 2 個 · 軽め✓ 提供元 · mcp.cloudflare.comPopNx チームが実際に試用

Omnara

Deploy durable AI agents with Omnara, an open-source managed-agent platform.

作者:omnara-ai広く使われている★ 34512 か月前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · omnara.com

Repowise

Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.

作者:repowise-dev広く使われている↓ 6506/週★ 8275 リポジトリ全体のスター4 日前更新

すぐ接続できる(URL あり) · ログインが必要✓ 提供元 · repowise.dev
似たものと比べる
これ
Failcast
GitDiagramAppllamaCloudflare MCPOmnaraRepowise
動く場所パソコンにインストールが必要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドで動き、インストール不要クラウドでもパソコンにインストールでも使える
キーが必要いいえいいえいいえいいえいいえいいえ
Claude で + から追加いいえいいえいいえはいいいえいいえ
基本チェック3/34/44/44/44/45/5
ライセンスMITMITMITApache-2.0Apache-2.0AGPL-3.0
料金登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし登録情報に費用の記載なし

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

failcast

failcast is a local Rust CLI and stdio MCP server that reads your working-tree git diff, predicts which pytest tests are likely to fail, runs the highest-yield ones inside a time or count budget, and stores every outcome in SQLite so future runs get sharper. Everything compiles into one Rust binary (Edition 2024) backed by statically linked bundled rusqlite, pure-Rust forust-ml gradient-boosted trees with Platt calibration, and a tree-sitter file-level Python import graph.

The selector ranks candidate tests by calibrated failure probability per millisecond (prob / eff_ms). A small deterministic exploration pass appends stale tests on top of the greedy budget so neglected parts of the suite stay measured, while inverse-propensity weighting corrects training rows for selection bias. Training and evaluation splits follow chronological run boundaries (max_train_ts < min_cal_ts < min_eval_ts) to keep future outcomes out of earlier feature snapshots. One shared internal service layer drives both the CLI (failcast run, failcast explain) and the rmcp stdio MCP server (failcast mcp).

Install & Quickstart

Run or install the prebuilt binary directly from PyPI with uvx or pipx (no Rust toolchain needed):

# Zero-install run via uvx

uvx failcast --help

Or install globally via pipx

pipx install failcast

If you have a Rust toolchain (1.88+, Edition 2024), you can also install from crates.io:

cargo install failcast

Prebuilt release archives for macOS (aarch64-apple-darwin), Linux (x86_64-unknown-linux-gnu), and Windows (x86_64-pc-windows-msvc) are available on GitHub Releases with SHA256SUMS.txt:

# macOS (Apple Silicon)

curl -fsSL https://github.com/AL3XPI/failcast/releases/latest/download/failcast-v0.1.1-aarch64-apple-darwin.tar.gz \ | tar -xz -C ~/.local/bin

Linux (x86_64)

curl -fsSL https://github.com/AL3XPI/failcast/releases/latest/download/failcast-v0.1.1-x86_64-unknown-linux-gnu.tar.gz \ | tar -xz -C ~/.local/bin

Windows (PowerShell)

Invoke-WebRequest https://github.com/AL3XPI/failcast/releases/latest/download/failcast-v0.1.1-x86_64-pc-windows-msvc.zip -OutFile failcast.zip Expand-Archive failcast.zip -DestinationPath "$env:USERPROFILE\.local\bin" -Force

Running tests requires pytest on your PATH (or configured in .failcast.toml). Add .failcast/ to your repository's .gitignore, initialize the local SQLite store, and seed a baseline run:

# Initialize .failcast/store.db and mine recent git history for co-change and 30-day churn

failcast init --history-limit 500

Run the full suite once to seed durations and baseline pass/fail history

failcast run --all

Select and run highest-value tests within a 15-second budget

failcast run --budget 15

Preview selection without executing tests or writing runs to SQLite (uses discovery cache)

failcast run --budget 15 --dry-run --json

Force fresh pytest --collect-only discovery (bypasses the SQLite cache)

failcast run --budget 15 --dry-run --refresh-tests --json

Alternative selection modes

failcast run --top-k 20 failcast run --target-recall 0.95

Train the GBDT + Platt model once history crosses thresholds (writes .failcast/model.json)

failcast train

Inspect all 16 features, active model mode, calibrated probability, yield score, and top signals

failcast explain tests/test_calc.py::test_add_positive failcast explain tests/test_calc.py::test_add_positive --json

Replay stored runs chronologically against Random, StaticAst, and RecentFailureRate

failcast eval --budgets 0.1,0.2,0.3 --min-train-runs 20 --retrain-every 5 --output-json eval_report.json

When tests fail, failcast run still parses the JUnit XML and commits every outcome to .failcast/store.db before returning pytest's non-zero exit code. Until stored history crosses min_runs_for_ml = 100 and min_failures_for_ml = 25 (both configurable in .failcast.toml), failcast ranks with a cold-start heuristic.

Configuration & history import (.failcast.toml, backfill, JSONL)

Every key in .failcast.toml is optional. Create .failcast.toml at your repository root to override any default:

runner = "pytest"

default_budget_secs = 15 explore_fraction = 0.10 min_failures_for_ml = 25 min_runs_for_ml = 100 history_commit_limit = 500 pytest_bin = "pytest" max_traceback_chars = 1500

You can populate history from recent commits inside an isolated temporary git worktree so your working tree stays untouched, or load external CI and PR failure logs from a JSONL file in a single SQLite transaction (mode = 'backfill'):

failcast backfill --commits 50 --ref HEAD

failcast import-runs ci_history.jsonl

{"commit_sha":"a1b2c3d","started_at":1710000000,"diff_files":[{"path":"src/calc.py","lines_added":18,"lines_deleted":2}],"outcomes":[{"test_id":"tests/test_calc.py::test_divide_broken","file_path":"tests/test_calc.py","status":"fail","duration_ms":130}]}

Benchmarks

Real pre-merge Pull Request runs from PyGithub/PyGithub (CI workflow, 2026-09-09 to 2026-11-20) were collected with scripts/collect_gha_pytest.py. The dataset contains 80 PR runs total (22 warmup runs followed by 58 strictly chronological evaluated runs with zero timestamp leakage verified on every step), 19 failing PRs overall (13 failing runs and 335 individual test failures in the evaluation window), 1,405 unique pytest tests, and 93,736 total outcomes (68,695 evaluated non-skip outcomes). Every per-test duration comes directly from GitHub Actions JUnit XML (pytest.xml) workflow artifacts (0.0% estimated; 2 zero-pass environment/collection-crash runs excluded). Evaluation trains a 150-tree depth-5 forust-ml GBDT with chronological Platt calibration every 5 runs (gbdt_steps = 58 / 58), setting explore_fraction = 0.0 offline so all five strategies compete strictly on ranking and cost-aware packing while live CLI and MCP runs keep exploration enabled. Full JSON output lives in docs/benchmarks/eval_report.json.

20% Duration Budget (PyGithub/PyGithub, 58 Evaluated Runs, 13 Failing Runs)
BudgetStrategyCommit FDRFailure RecallTime SavedBrier ScorePR-AUC
20%Failcast (GBDT+Platt)76.9%93.7%89.8%0.00400.6894
20%Heuristic61.5%14.6%92.8%0.20350.0115
20%StaticAst61.5%15.2%92.3%0.14240.0059
20%RecentFailureRate69.2%52.5%89.8%0.00420.3085
20%Random38.5%13.4%91.1%0.33040.0051

At a 20% duration budget (89.8% wall-clock time saved), Failcast catches 93.7% of individual test failures with a 0.6894 PR-AUC (135× Random, 60× Heuristic, 2.23× RecentFailureRate). Every strategy's Commit FDR curve stays monotonically non-decreasing as the budget grows.

Full multi-budget table (5%–50%)

BudgetStrategyCommit FDRFailure RecallTime SavedBrier ScorePR-AUC
5%Failcast (GBDT+Platt)53.8%26.6%97.6%0.00400.6894
5%Heuristic46.2%6.3%98.8%0.20350.0115
5%StaticAst38.5%5.1%98.8%0.14240.0059
5%RecentFailureRate61.5%18.2%97.2%0.00420.3085
5%Random30.8%3.0%97.9%0.33040.0051
10%Failcast (GBDT+Platt)69.2%54.6%94.9%0.00400.6894
10%Heuristic46.2%9.0%97.0%0.20350.0115
10%StaticAst38.5%5.4%97.2%0.14240.0059
10%RecentFailureRate69.2%30.1%94.9%0.00420.3085
10%Random38.5%7.2%95.7%0.33040.0051
15%Failcast (GBDT+Platt)76.9%80.0%92.3%0.00400.6894
15%Heuristic53.8%12.2%95.0%0.20350.0115
15%StaticAst53.8%11.0%94.9%0.14240.0059
15%RecentFailureRate69.2%41.2%92.6%0.00420.3085
15%Random38.5%10.4%93.4%0.33040.0051
20%Failcast (GBDT+Platt)76.9%93.7%89.8%0.00400.6894
20%Heuristic61.5%14.6%92.8%0.20350.0115
20%StaticAst61.5%15.2%92.3%0.14240.0059
20%RecentFailureRate69.2%52.5%89.8%0.00420.3085
20%Random38.5%13.4%91.1%0.33040.0051
30%Failcast (GBDT+Platt)76.9%94.3%83.6%0.00400.6894
30%Heuristic69.2%16.7%88.5%0.20350.0115
30%StaticAst61.5%19.1%87.9%0.14240.0059
30%RecentFailureRate69.2%56.4%83.9%0.00420.3085
30%Random53.8%20.6%86.3%0.33040.0051
50%Failcast (GBDT+Platt)76.9%95.5%71.3%0.00400.6894
50%Heuristic69.2%23.9%78.9%0.20350.0115
50%StaticAst69.2%28.1%79.2%0.14240.0059
50%RecentFailureRate69.2%62.7%70.6%0.00420.3085
50%Random53.8%30.1%76.2%0.33040.0051

Systems Latency & Footprint

Measured on an Apple M3 Pro (macOS arm64, rustc 1.98.1 (48a229cea 2026-09-01)) against PyGithub/PyGithub with 1,232 discovered tests, 93,736 stored outcomes, and model_mode = gbdt. Raw measurements are saved in docs/benchmarks/systems_bench.json.

Execution PathMetricValueNotes
Binary FootprintStripped release binary (failcast)8.26 MBUnstripped: 10.55 MB (static SQLite + forust-ml GBDT + Tree-sitter + rmcp)
Warm Rust Corefailcast run --budget 15 --dry-run --json (p50 / p95)398.3 ms / 503.1 msCached SQLite discovery (2.2× faster than cold; git diff + SQLite + AST + GBDT+Platt)
Warm Rust Corefailcast explain --json (p50 / p95)357.2 ms / 364.6 msCached SQLite discovery (2.4× faster than cold; 16 features + signals + Platt prob)
Cold `pytest` Discoveryfailcast run --budget 15 --dry-run --refresh-tests --json (p50 / p95)874.3 ms / 925.3 msIncludes external Python + pytest --collect-only startup across 1,232 tests
Cold `pytest` Discoveryfailcast explain --refresh-tests --json (p50 / p95)865.4 ms / 899.7 msIncludes external Python + pytest --collect-only startup
Pure ML Corefailcast-ml scoring latency (1,000 tests, p50 / p95)1.10 ms / 1.50 ms905,182 tests/sec (150-tree GBDT + Platt calibration via bench_infer)

Probability Calibration Reliability

Across all 68,695 evaluated non-skip outcomes, Platt calibration with the support and log-loss guardrail pulls Brier score down from 0.0041 (raw GBDT) to 0.0040, a 3.5% drop and the lowest of the five strategies, while removing raw GBDT's overconfident [0.3, 1.0] tail bin

冒頭だけを表示しています。続きはリポジトリで読めます