Hacker ApprovedDepartments

GitHub CLI (gh)

Hacker Approved

Shares rank 8 of 86 privilege escalation tools by recommenders

People recommend gh for GitHub tasks in the terminal, especially with AI agents, which find it more token efficient than MCP. Critics note coarse token scopes.

People recommend gh for GitHub tasks in the terminal, especially with AI agents, which find it more token efficient than MCP. Critics note coarse token scopes.

38 people gave an opinion

recommend it
34
criticize it
4
approval share
89%
Each figure is one person. RecommendsCriticizes

Recommended in 11 of 13 months

  1. November 2025: recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 34 people recommend itNeeds 10 or more, met.
  • 8.5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 11 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Cheaper and simpler than MCP

    “it appears that using the gh cli is much more token efficient than MCP so that's a plus”

    Comment from 4 Sep 2026 in “Ask HN: Who is using MCP in production?”

    “I found claude was better (trained?) with the gh command line than with the github mcp.”

    Comment from 21 Sep 2026 in “MCP was always a bad idea?”

    “We started with the GitHub mcp but migrated to giving the gh cli to the agent directly.”

    Comment from 11 Apr 2026 on Hacker News
  • Agents already know how to use it

    “I found claude was better (trained?) with the gh command line than with the github mcp.”

    Comment from 21 Sep 2026 in “MCP was always a bad idea?”

    “agents tend to perform better with CLI tools since they've been heavily RL'd on them.”

    Comment from 8 Feb 2026 in “Matchlock: Linux-based sandboxing for AI agents”

    “all you need is the gh cli, which the agent already knows how to use”

    Comment from 10 Jan 2026 in “How to Code Claude Code in 200 Lines of Code”
  • Handles authentication for you

    “gh seems much easier than installing and setting up an MCP server connection”

    Comment from 26 Feb 2026 in “I made MCP cheaper in one command”

    “The CLI is also nice because it abstracts away authentication.”

    Comment from 13 Apr 2026 in “Building a CLI for All of Cloudflare”

    “all are a simple “click ok” in the browser to log in”

    Comment from 5 Mar 2026 in “Googleworkspace/CLI”
  • Faster than website or curl

    “Ever since I discovered `gh`, I stopped going on the website itself.”

    Comment from 3 Oct 2026 in “GitHub's new dashboard experience now the default”

    “AFAICT the gh command line tool makes this a bit smoother.”

    Comment from 14 Apr 2026 in “GitHub Stacked PRs”

    “gh works so much better for me than crafting curl requests”

    Comment from 22 Oct 2026 in “OpenAI CLI”

What people warn about

Each mark is one comment

  • Ties auth and pushes to gh

    “because i was dumb enough to use the `gh` cli to auth”

    Comment from 10 Jun 2026 in “GitHub Authentication issues related to API requests”

    “instead a ”gh” CLI is now needed to push a commit”

    Comment from 31 Jul 2026 in “Stacked PRs are now live on GitHub”

Other privilege escalation tools people recommend

The four most recommended other privilege escalation tools, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

GitHub CLI (gh) compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
fzf78594%12—Approved
jq753369%12—Approved
grep651977%12—Approved
Atuin632472%112 yrs4 ownersApproved
GitHub CLI (gh)This page34489%11—Approved
See all 86 privilege escalation tools, ranked

What people said

32 of the 38 comments that mention it, newest first. Each links to the original comment.

“gh works so much better for me than crafting curl requests”

RecommendsComment from 22 Oct 2026 in “OpenAI CLI”

“Ever since I discovered `gh`, I stopped going on the website itself.”

RecommendsComment from 3 Oct 2026 in “GitHub's new dashboard experience now the default”

“I found claude was better (trained?) with the gh command line than with the github mcp.”

RecommendsComment from 21 Sep 2026 in “MCP was always a bad idea?”

“I wind up either scraping `gh run` (slow)”

CriticizesComment from 16 Sep 2026 in “Scaling Golang CI by Replacing actions/setup-go”

“I also like our cli and did some work on it too”

RecommendsComment from 4 Sep 2026 in “Ask HN: Who is using MCP in production?”

“it appears that using the gh cli is much more token efficient than MCP so that's a plus”

RecommendsComment from 4 Sep 2026 in “Ask HN: Who is using MCP in production?”

“gh is way more efficient than using the github MCP”

RecommendsComment from 23 Aug 2026 in “New MCP Roadmap”

“gh CLI using the API was able to make a PR while the web interface was inoperable.”

RecommendsComment from 17 Aug 2026 in “Tell HN: GitHub Is Experiencing Degraded Performance”

“instead a ”gh” CLI is now needed to push a commit”

CriticizesComment from 31 Jul 2026 in “Stacked PRs are now live on GitHub”

“Agents I use have no trouble with gh or glab or tea.”

RecommendsComment from 18 Jun 2026 in “Git platform built for agentic era”

“because i was dumb enough to use the `gh` cli to auth”

CriticizesComment from 10 Jun 2026 in “GitHub Authentication issues related to API requests”

“i'd love to be able to use fine grained tokens with gh and not expose every repo and org”

MixedComment from 20 May 2026 in “GitHub confirms breach of 3,800 repos via malicious VSCode extension”

“claude code works really well the gh cli”

RecommendsComment from 5 May 2026 in “Yet Another GitHub Incident”

“It is a better CLI for GH workflows”

RecommendsComment from 2 May 2026 in “GhostBox – disposable little machines from the Global Free Tier.”

“AFAICT the gh command line tool makes this a bit smoother.”

RecommendsComment from 14 Apr 2026 in “GitHub Stacked PRs”

“The CLI is also nice because it abstracts away authentication.”

RecommendsComment from 13 Apr 2026 in “Building a CLI for All of Cloudflare”

“We started with the GitHub mcp but migrated to giving the gh cli to the agent directly.”

RecommendsComment from 11 Apr 2026 on Hacker News

“i just shell out to gh cli and curl”

RecommendsComment from 15 Mar 2026 in “MCP Is Dead; Long Live MCP”

“all are a simple “click ok” in the browser to log in”

RecommendsComment from 5 Mar 2026 in “Googleworkspace/CLI”

“it would be more beneficial to just use the CLI in this case”

RecommendsComment from 1 Mar 2026 in “MCP is dead. Long live the CLI”

“gh seems much easier than installing and setting up an MCP server connection”

RecommendsComment from 26 Feb 2026 in “I made MCP cheaper in one command”

“You'll see the difference immediately (espicially more if you have many MCPs)”

RecommendsComment from 25 Feb 2026 in “I made MCP cheaper in one command”

“agents tend to perform better with CLI tools since they've been heavily RL'd on them.”

RecommendsComment from 8 Feb 2026 in “Matchlock: Linux-based sandboxing for AI agents”

“reminding Claude it could use gh cli to manage GitHub issues and never really looked back”

RecommendsComment from 25 Jan 2026 in “Agent orchestration for the timid”

“all you need is the gh cli, which the agent already knows how to use”

RecommendsComment from 10 Jan 2026 in “How to Code Claude Code in 200 Lines of Code”

“agents are great with the gh CLI”

RecommendsComment from 6 Jan 2026 in “Show HN: I replaced beads with a faster, simpler Markdown-based task tracker”

“have CC make use of the gh CLI, works great”

RecommendsComment from 6 Jan 2026 in “Show HN: I replaced beads with a faster, simpler Markdown-based task tracker”

“issue templates don't show up there at all”

CriticizesComment from 2 Jan 2026 in “Why users cannot create Issues directly (Ghostty)”

“it uses 'gh' to do everything, including responding to human comments!”

RecommendsComment from 21 Dec 2025 in “Get an AI code review in 10 seconds”

“piggyback on top of existing tooling”

RecommendsComment from 20 Dec 2025 in “Skills Officially Comes to Codex”

“the “gh” CLI tool is helpful”

RecommendsComment from 18 Dec 2025 in “Your job is to deliver code you have proven to work”

“it's a significantly better dev experience having CC call out to the gh cli for actions”

RecommendsComment from 23 Nov 2025 in “MCP Apps: Extending servers with interactive user interfaces”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.