Skip to content

workaround: give review-responder bash tool for gh api graphql thread ID lookup #117

@microsasa

Description

@microsasa

What

Add a bash tool to the review-responder workflow allowing gh api graphql so the agent can query real PRRT_ thread node IDs instead of hallucinating them.

Why

The GitHub MCP server v0.32.0 (pinned by gh-aw) doesn't expose thread IDs to agents. The agent fabricates IDs that fail at the GraphQL API. Giving the agent shell access to gh api graphql lets it query real IDs directly.

How

Add to review-responder.md frontmatter:

tools:
  github:
    toolsets: [default]
  bash: ["gh api:*"]

Update instructions to tell the agent:

  1. Use gh api graphql to query reviewThreads { nodes { id isResolved } } for the PR
  2. Use the real PRRT_ IDs from the response in resolve calls

Security Consideration

This gives the agent shell access limited to gh api commands. The agent could potentially make other API calls. Evaluate whether this is acceptable or if a more restrictive pattern is needed.

Temporary Workaround

This is a workaround until gh-aw upgrades the pinned MCP server to v0.33.0+ (github/gh-aw#21130), which would let the agent resolve threads through the MCP tool directly.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions