`gh` is the official GitHub CLI and the right tool for driving an org from an agent: it wraps the REST/GraphQL API with sane commands, respects your auth, and is scriptable. The whole game is doing this under a **least-privilege token** so an automated agent can't do more than the task needs.