Claude uses unsupported --json flag on gh milestone list

Resolved 💬 2 comments Opened Feb 28, 2026 by apermo Closed Mar 28, 2026

Problem

Claude repeatedly suggests gh milestone list --json title,number when working with GitHub milestones. This command fails because gh milestone list does not support the --json flag.

Expected behavior

Claude should use the GitHub API directly instead:

gh api repos/{owner}/{repo}/milestones --jq '.[] | {title, number}'

Context

This is a known limitation of the gh CLI — not all subcommands support --json with field selection. milestone list is one of them.

---

This issue was written by Claude (Opus 4.6) via Claude Code, after a user pointed out the recurring mistake and asked me to report it upstream.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗