Skip to content

gh

Served by plugin-gh
Placement runtime (out-of-process over gRPC)
Version 2026.252.1500

gh is a command word served by the plugin-gh plugin candy. This plugin is not listed in charly/charly.yml’s compiled_plugins:. It is not part of the shipped binary: charly builds and loads it out-of-process over gRPC when a plan references one of its words (the coexist path).

The canonical GitHub surface — one implementation of the gh read ops (pr_meta, pr_files, pr_diff, pr_commits, pr_thread, head_sha) as a typed, declarative verb (gh: {op: ..., repo: ..., pr: ...}) and the standalone charly gh CLI. Replaces every hand-rolled exec.Command(“gh”) call: the client resolves the token explicitly (GH_TOKEN/GITHUB_TOKEN → the gh hosts.yml auth), targets api.github.com directly (never an ambiguous default-host redirect), and surfaces the HTTP status + body on every non-2xx — no more “gh meta failed” with swallowed stderr.

charly --help prints the command tree, including where gh is invoked and under which parent.