{
  "slug": "hf-adds-discussions-edit-command-18be0c94ba8d",
  "title": "hf adds discussions edit command",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-03T09:43:05.000Z",
  "announced_at": "2026-07-03T09:43:05.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a discussion comment needs updating, retrieve its comment ID with `hf discussions info`, then edit it with `hf discussions edit`.",
    "examples": [
      "hf discussions info <owner>/<repo> <discussion_number>",
      "hf discussions edit <owner>/<repo> <discussion_number> <comment_id> --body \"<updated comment>\""
    ],
    "gotchas": [
      "Version: v1.22.0",
      "REPO_ID (required): Repository ID, such as `<owner>/<repo>`.",
      "NUM (required): Discussion or pull request number.",
      "COMMENT_ID (required): ID of the comment to edit; retrieve it with `hf discussions info`.",
      "--body TEXT: New comment text; supports Markdown.",
      "--body-file PATH: Read the new comment from a file; `-` reads stdin.",
      "--type / --repo-type: Repository type: model, dataset, space, or kernel; defaults to model.",
      "--token: Hugging Face user access token."
    ]
  },
  "why_it_matters": "Edit a discussion from the CLI while maintaining a repository.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.22.0",
    "https://huggingface.co/docs/huggingface_hub/main/guides/cli",
    "https://huggingface.co/docs/huggingface_hub/en/package_reference/cli"
  ],
  "rank": 0.96026,
  "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-e6ed4cae21a7b793-3:gate",
    "evidence_hash": "f316d5257eea8951f435f08a3f7b5370d03f8637f0d89a9312db66c5df369f55"
  },
  "review": {
    "draft_hash": "a0446b1cc73d218c831ab8a0a889fa8b9f7bbacf41097e41139c7753d159aaae",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.72 (>= 0.6 needed)."
  }
}
