Skip to main content
command CX Codex

list-pending — Claude Code command: what it does, how to install

Lists review actions blocked during the current session. Use it to find a tool call that needs manual approval before retrying.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install review-agent-governance@claude-code-workflows
Open on GitHub

What list-pending does

This slash command scans the active Claude Code session for tool calls stopped by the review-governance PreToolUse hook. It keeps the newest N entries, with 10 used by default, and shows the tool plus its command or file path. After choosing an item, approve it with /approve-review "<reason>" and retry the original call.

The command does not read or modify ./review-receipts/. protect-mcp 0.7.4 creates a receipt only when a tool call runs, so a rejected call is visible in the session rather than in the receipt file. Earlier sessions cannot be searched. A call made while ./.review-approved exists bypasses the block and will not appear here.

What it helps with

  • list blocked review actions in the active session
  • inspect a Bash or Write call before approval
  • limit the output to the latest N blocks
  • identify the tool stopped by the policy

Example prompts for the agent

  • Run /review-agent-governance:list-pending and show the review actions blocked in this session.
  • Use /review-agent-governance:list-pending --last 5 to display the five latest blocks.
  • Find the blocked call I should approve before retrying it.

How to install list-pending

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install review-agent-governance@claude-code-workflows

2Manually: put the files in place

.claude/commands/list-pending.md

Call it with /list-pending. For all projects use ~/.claude/commands/

Questions about list-pending

How do I install list-pending in Claude Code?

Add the marketplace with /plugin marketplace add wshobson/agents, install the plugin using /plugin install review-agent-governance@claude-code-workflows, then use .claude/commands/list-pending.md.

What does list-pending do?

It reports review-surface tool calls blocked in the active session and keeps the newest N entries. Each result includes the tool name and its command or file path.

Why does list-pending omit blocks from earlier sessions?

A denied call never runs, so protect-mcp 0.7.4 does not create a receipt for it. The command can therefore inspect only denials recorded in the current session.

Source text

list-pending.md · MIT
---
description: "List the review actions that the review-governance policy blocked in this session. protect-mcp 0.7.4 writes no receipt for a denied call, so the list comes from the session, not from ./review-receipts/."
argument-hint: "[--last N]"
---

# List Pending Reviews

List the review-surface actions that the review-governance policy blocked in
the current Claude Code session. These are candidates for human approval via
`/approve-review`.

protect-mcp 0.7.4 writes a receipt only for a tool call that ran. A denied
call never runs, so it has no receipt, and `./review-receipts/receipts.jsonl`
cannot show denials. The PreToolUse hook blocks a denied call with exit code
2, and Claude Code shows that block in the session, so the session is where
denials are visible.

## Usage

```
/list-pending
/list-pending --last 5
```

## What this does

1. Looks back through the current session for tool calls that a PreToolUse
   hook blocked.
2. Keeps the most recent N (default 10).
3. Prints each one with the tool name and the command or file path.

It cannot list denials from earlier sessions, because protect-mcp 0.7.4 does
not log them.

## Check a command against the policy

To check whether a specific command is denied right now, run the policy
evaluation in a shell. Exit 2 means the policy denies it, and exit 0 means it
is allowed:

```bash
npx [email protected] evaluate --policy ./review-governance.cedar \
  --tool Bash --input '{"command":"gh pr review 42 --approve"}'
```

The evaluation ignores the approval flag, so it shows what the policy does
when no approval window is open.

## What to show the user

```
Blocked in this session (most recent first, top 10):

  Bash   gh pr review 42 --approve --body 'LGTM'
  Write  .github/workflows/ci.yml
  Bash   gh issue comment 18 --body '...'

To approve one of these and retry, run:
  /approve-review "<reason>"
Then retry the original tool call.
```

## When there are no denials

```
No tool call was blocked in this session.
```

This is the common state. It means either the agent has not attempted any
review-surface actions, or the approval flag has been present for every
attempt.

## Notes

- The command reads the session only. It does not read or change
  `./review-receipts/`.
- A call made while `./.review-approved` exists skips the policy, so it is
  never blocked and never appears here.

## References

- Approve an action: `/approve-review "<reason>"`
- Verify the signed receipts: the "Verifying the receipts" section of the
  review-agent-setup skill
- Plugin README: `../README.md`

© Tom Farley · MIT · wshobson/agents

Similar slash commands

All slash commands for Code review and refactoring →
recipe-create-task-list official googleworkspace Creates a new Google Tasks list and populates it with starter items via CLI. Useful when setting up initial project milestones. CX Codex +1 30,300installs cloud-monitoring-list-time-series-request official google This skill builds Cloud Monitoring ListTimeSeries requests and aggregations. Use it when you need a filter, JSON payload, or chart query parameters. CX Codex 4,100installs list official Anthropic Prints every hookify rule configured in the project — name, event, pattern, file and whether it is enabled. Handy once rules pile up and you lose track of them. ★ 44,770repo stars code-review official Anthropic Runs a multi-agent code review on a pull request using the gh CLI. It checks CLAUDE.md guidelines and weeds out false positives. 5,537installs feature-dev official Anthropic Guides new feature work by exploring the codebase, asking for missing details, shaping the architecture, and waiting for approval before implementation. 179installs refactor-code davila7 A slash command that walks Claude through 17 refactoring steps, from analysis and tests to performance checks and review prep. 4,890installs architecture-review davila7 A Claude slash command that maps your project structure, patterns and dependencies, then hands back an improvement plan. Useful before a big refactor. 3,419installs review-pr official Anthropic This command uses specialized agents to review PR changes, covering tests, error handling, types, comments, and general code quality. ★ 44,770repo stars

From the same set432

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor