# Code reviewer subagent no bash blocked on PR diff

> Code reviewer subagent no bash blocked on PR diff is an open-source agent skill for developer tools. Keeps no-Bash review subagents from stalling by pre-building PR diffs and worktrees. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** code-reviewer-subagent-no-bash-blocked-on-pr-diff
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill addresses a common failure when a code-review subagent is asked to fetch a GitHub pull request diff itself. Some review agents are provisioned without a shell, so they cannot run gh, git diff or git checkout, and they return a blocked report instead of findings. The guidance moves the git work to the orchestrator, which has shell access: each PR branch is placed in a worktree and a per-base diff is written to a file ahead of time.

The workflow has the orchestrator generate scoped diffs against each PR's own base using a three-dot comparison, so the file matches what GitHub shows as the PR's changes. The reviewer is then given explicit worktree and diff paths, told it has only read and search tools, and told not to look in the main checkout. Anything that needs empirical checking is returned as a list of commands for the orchestrator to run afterward.

It expects a git repository with worktree support, a shell available to the orchestrator, and a review agent that only has read-style tools. The skill also notes that a blocked reviewer should not be read as a clean result.

## When your agent uses it

> Code-review subagents are frequently provisioned WITHOUT a Bash tool, so they cannot run `gh pr diff`, `git diff`, or `git checkout` — and when you prompt them to "review PR #N, fetch the diff with gh pr diff" they return a BLOCKED report (no review performed), not findings. Use when: (1) dispatching feature-dev:code-reviewer / voltagent-* / Explore agents to review GitHub PRs or branches; (2) a review agent returns "I have no shell/gh/git tool" or "the PR sources are not in the working tree" or reviews `main` (which predates the PR) instead of the PR; (3) one reviewer in a parallel panel comes back BLOCKED while siblings succeeded. Fix: pre-generate per-base diffs to files + point the agent at materialized worktree paths, don't tell it to run gh/git.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff)

## Features

- **Blocked reviewer detection:** Explains how to recognize when a review agent could not see the PR code and returned no findings.
- **Pre-generated scoped diffs:** Writes each PR's diff against its own base to a file the reviewer can read directly.
- **Worktree materialization:** Checks out PR branches into separate worktrees so reviewers can read the actual source.
- **Explicit reviewer prompting:** Provides a prompt template that states the agent has no shell and gives exact file paths.
- **Deferred empirical checks:** Has reviewers list commands that need running, which the orchestrator executes afterward.

## Good for

- Review an open GitHub pull request with a read-only subagent
- Run a parallel panel of code reviewers over several stacked PRs
- Recover a review run where one reviewer returned a blocked report
- Generate per-base diff files for reviewing a feature branch

## Install

### Claude Code

This skill ships in the `agent-traffic-control` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control
```

Or copy only this skill to `~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff
```

Or copy the folder to `~/.gemini/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
cp -R "$tmp/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff" ~/.copilot/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git
```

Then copy `agent-traffic-control/plugins/agent-traffic-control/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff` into your agent's skills folder as `code-reviewer-subagent-no-bash-blocked-on-pr-diff`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Why does a review agent return a blocked report?

Some review agents are provisioned without a Bash tool, so they cannot run gh pr diff or git commands and report that the PR sources are not in the working tree.

### What does the skill change?

It has the orchestrator create worktrees and write per-base diff files, then gives the reviewer those paths and tells it not to run gh or git.

### Why use a three-dot diff?

A three-dot diff compares against the merge base, matching GitHub's Files-changed view, while a two-dot diff can show base-branch changes as false deletions.

### Which agents are affected?

The skill names read-only review and search agents such as feature-dev:code-reviewer and Explore; general-purpose agents generally have Bash.

### How do I install Code reviewer subagent no bash blocked on PR diff in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff to use it in all your projects, or to .claude/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.

### Does Code reviewer subagent no bash blocked on PR diff run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code reviewer subagent no bash blocked on PR diff?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code reviewer subagent no bash blocked on PR diff?

The closest alternatives to Code reviewer subagent no bash blocked on PR diff are Code review, Code review, PR review, Code review agent and Make PR easy to review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-martinffx): Code review is an open-source agent skill for developer tools.
- [PR review](https://ai-powered.com/skills/pr-review): PR review is an open-source agent skill for developer tools.
- [Code review agent](https://ai-powered.com/skills/code-review-agent): Code review agent is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Code review expert](https://ai-powered.com/skills/code-review-expert): Code review expert is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-flutter): Code review is an open-source agent skill for developer tools.
- [Review](https://ai-powered.com/skills/review-handarbeit): Review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-reviewer-subagent-no-bash-blocked-on-pr-diff
