Skip to content

isGhReadFileToolEnabled

isGhReadFileToolEnabled(config, command): boolean

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/shell-policy.ts:247

CFG-52 — whether the review agent gets GH_READ_FILE_TOOL_NAME on this run.

Opt-OUT: absence means enabled. The tool is bound to the PR’s own head repo and ref, reads nothing local, and no-ops gracefully when gh is missing — the content it can reach is the content the review is already about — so making it opt-in would turn it off for every existing gth pr user in exchange for a flag most would never find. That is why absence is resolved here rather than through isBuiltInToolEntryEnabled, which reads an absent entry as OFF.

{ "builtInTools": { "gth_gh_read_file": false } } turns it off; an object entry configures it (and, like any other tool, { "enabled": false } also disables).

Pick<GthConfig, "commands" | "builtInTools"> | undefined

GhReadFileCommand

boolean