{
  "slug": "hf-models-datasets-and-spaces-card-fetch-repo-readmes-db31bef02963",
  "title": "hf models, datasets, and spaces card fetch repo READMEs",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-30T11:48:16.000Z",
  "announced_at": "2026-04-30T11:48:16.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing a Hub model, dataset, or Space, run the matching `hf … card <repo_id>` command to print its README; add `--metadata` for metadata, `--text` for prose, or `--metadata --format json` for JSON metadata. The documented card commands require the repo ID; metadata and text selection are mutually exclusive.",
    "examples": [
      "hf models card <model_id>",
      "hf datasets card <dataset_id>",
      "hf spaces card <space_id>"
    ],
    "gotchas": [
      "Version: v1.13.0",
      "MODEL_ID / DATASET_ID / SPACE_ID (required): Hub repository ID for the model, dataset, or Space whose card to fetch.",
      "--metadata: Output only card metadata from YAML frontmatter.",
      "--text: Output only the card text body, without metadata. Mutually exclusive with `--metadata`.",
      "--format json: Formats output as JSON; the guide documents this with `--metadata` to output metadata as JSON.",
      "--token TEXT: User Access Token option for card commands.",
      "Docs conflict: The `v1.13.0` release evidence documents `--format json` for card commands, while the currently accessible package reference does not list that option for the model and dataset card commands. The versioned v1.13.0 documentation URLs were inaccessible; Space card syntax was available only in a later versioned guide."
    ]
  },
  "why_it_matters": "When reviewing a Hub model, dataset, or Space while working on code, fetch its README and inspect the full card or just its metadata or prose.",
  "before": "Use `hf download <repo_id> README.md` or curl to obtain the raw README; the release description says those approaches write to a file and do not split the card.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.13.0",
    "https://github.com/huggingface/huggingface_hub/pull/4118",
    "https://huggingface.co/docs/huggingface_hub/en/guides/cli",
    "https://huggingface.co/docs/huggingface_hub/v1.29.0/en/guides/cli",
    "https://huggingface.co/docs/huggingface_hub/en/package_reference/cli"
  ],
  "rank": 0.98035,
  "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-bb06c8ee38e25564-0:gate",
    "evidence_hash": "8f11d99c2b64c04df88abf2e4573c6956cf9e268985d5a90173daf68c79513ac"
  },
  "review": {
    "draft_hash": "e0d1d95835b654d78e600fa00cf5aa31d1c85b746a66834007755772412e5955",
    "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.98 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
