Skip to content

Review tools: let the caller name the GitHub CLI command in validate-audit-record.py and github-review-threads #2973

Open

Description

@josecelano-bot

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Let the caller name the GitHub CLI command in the review tools that still hardcode gh, as #2822 did for wait-for-pr-review with --gh-command.

Problem

Checked on develop at 7bc30738a:

  • .claude/skills/process-pr-review/scripts/validate-audit-record.py line 98 runs subprocess.run(["gh", "api", ...]).
  • contrib/dev-tools/github/github-review-threads/src/lib.rs line 66 runs Command::new("gh"), and the tool has no option to change it.
  • The scripts in .claude/skills/resolve-review-threads/scripts/ also call gh (not checked one by one).

A contributor who must run as a GitHub identity other than the default gh login has no supported way to do it with these tools. The only general way is a gh on PATH that runs the other identity's command, which is the stand-in that #2822 was opened to make unnecessary (it called itself without end and crashed a desktop session four times). Today the workaround is to set the token in the environment for that one command, or to patch the call at run time.

An agent that cannot choose the command can also act under the wrong identity without noticing.

Proposed scope

Notes

  • Not started. The order among the EPIC's sub-issues is decided when a slot is free. The specification and the EPIC table row are written when the work starts.
  • Filed by the EPIC Overhaul: Automation Tools and AI Agent Guardrails #2003 coordinator session (AI assistant, Claude Code) on 2026-11-19 at the maintainer's request, so the idea is not lost.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions