{
  "slug": "hf-cli-adapts-selected-command-output-for-coding-agents-91ffed66479d",
  "title": "hf CLI adapts selected command output for coding agents",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-02T15:59:04.000Z",
  "announced_at": "2026-04-02T15:59:04.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an agent needs parseable output from a migrated `hf` command, rely on auto-detection or pass `--format agent`, `json`, or `quiet`. Use `agent` for untruncated TSV, `json` for structured output, or `quiet` for IDs only.",
    "examples": [
      "hf models ls --limit 5 --format agent",
      "hf models ls --search bert --limit 2 --json",
      "hf models ls --limit 5 --format quiet"
    ],
    "gotchas": [
      "Version: v1.9.0",
      "--format <value>: Select output format. Documented values: `auto` (default), `human`, `agent`, `json`, `quiet`. `auto` selects agent output when invoked by an AI agent; `agent` produces untruncated TSV, `json` structured JSON, and `quiet` IDs only. The docs do not say these values are mutually exclusive; they describe one selected format.",
      "--json: Alias for `--format json`.",
      "-q, --quiet: Alias for `--format quiet`; prints IDs one per line.",
      "--limit INTEGER: Limit the number of results returned.",
      "--search TEXT: Filter model list by search query.",
      "Prerequisite: Install the `huggingface_hub` package or the standalone `hf` CLI installer to use the CLI.",
      "Automatic detection and migrated output behavior are described for the listed commands; more commands are to be migrated later."
    ]
  },
  "why_it_matters": "Inspect Hub models, datasets, Spaces, papers, or authentication details from a coding-agent workflow that needs parseable CLI output.",
  "before": "The release note says output was designed for humans, with ANSI colors, padded tables, and truncated cells, making it harder for agents to parse.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.9.0",
    "https://github.com/huggingface/huggingface_hub/pull/4015",
    "https://huggingface.co/docs/huggingface_hub/main/guides/cli",
    "https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cli.md"
  ],
  "rank": 0.97044,
  "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": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-dfcc33087e4b1309-1:gate",
    "evidence_hash": "230feb247f8f9129b09afffe4f0ffca9a30e2ff3f4eb16557d5ff0bfdbdd7860"
  },
  "review": {
    "draft_hash": "5491b4e6448bdc956d259cf75631cf126b90b32ad243bc85102f104aa1bb8422",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.77 (>= 0.6 needed)."
  }
}
