{
  "slug": "k6-automatically-resolves-missing-subcommand-extensions-65168ef8914e",
  "title": "k6 automatically resolves missing subcommand extensions",
  "tools": [
    "k6"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-25T10:10:42.000Z",
  "announced_at": "2026-03-25T10:10:42.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If the subcommand extension is missing from the current k6 binary and is registered in the extension catalog, run `k6 x httpbin`; k6 provisions the extension and executes it. For community extensions, set `K6_ENABLE_COMMUNITY_EXTENSIONS=true`.",
    "examples": [
      "k6 x httpbin",
      "K6_ENABLE_COMMUNITY_EXTENSIONS=true k6 x httpbin"
    ],
    "gotchas": [
      "Version: v1.7.0",
      "x httpbin (required): Invokes the registered `httpbin` subcommand extension in the `k6 x` namespace.",
      "K6_ENABLE_COMMUNITY_EXTENSIONS: Set to `true` to use community extensions.",
      "Prerequisite: Use k6 v1.7.0 or later for automatic resolution of subcommand extensions.",
      "Prerequisite: The extension must be registered in the k6 extension catalog. Community extensions require `K6_ENABLE_COMMUNITY_EXTENSIONS=true`.",
      "Automatic resolution applies when the subcommand extension is not included in the current binary."
    ]
  },
  "why_it_matters": "Run a subcommand extension that is not included in the current k6 binary.",
  "before": "Previously, using extension subcommands required manually building a custom k6 binary with xk6.",
  "sources": [
    "https://github.com/grafana/k6/releases/tag/v1.7.0",
    "https://grafana.com/docs/k6/latest/extensions/create/subcommand-extensions/"
  ],
  "rank": 0.95017,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-8f8c610147756461-0:gate",
    "evidence_hash": "e1835578778915c0ab079d77911bea37318dd81203bfbeaff8f90955f5842acf"
  },
  "review": {
    "draft_hash": "d0e406e28679087b4e0d6b84dd2e863a14f1ce116f23464edb17c72cb76ef1fa",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
