replicant-mcp: Command for Claude Code

.claude/commands/pr-with-review.md

pr-with-review is a command for Claude Code from thecombatwombat/replicant-mcp. It costs 11 tokens per session (2,246 once invoked), scanned A, original, MIT.

A command that handles a pull request, which is a proposed code change submitted for review. It creates a branch, commits and pushes changes, opens the request, checks Greptile's automated review, addresses its feedback, and merges after a person approves.

In plain words
What is it for?
Use it to prepare and manage feature, bug-fix, documentation, refactoring, or maintenance pull requests from start to approval and merge.
Why use it?
It reduces the repeated manual work involved in moving changes from a working directory into an approved pull request. It also checks branch naming, authentication, and whether there are changes to commit.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is thecombatwombat/replicant-mcp's own configuration. It tells Claude Code how to work on replicant-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything replicant-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to thecombatwombat/replicant-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/thecombatwombat/replicant-mcp/master/.claude/commands/pr-with-review.md
Clone the repo
git clone --depth 1 https://github.com/thecombatwombat/replicant-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-with-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/thecombatwombat/replicant-mcp/pr-with-review/github.svg)](https://agentmods.dev/commands/thecombatwombat/replicant-mcp/pr-with-review)
Your own site
<a href="https://agentmods.dev/commands/thecombatwombat/replicant-mcp/pr-with-review"><img src="https://agentmods.dev/badge/commands/thecombatwombat/replicant-mcp/pr-with-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-with-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/thecombatwombat/replicant-mcp/pr-with-review"><img src="https://agentmods.dev/badge/commands/thecombatwombat/replicant-mcp/pr-with-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,246 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00011 $0.02246
Opus 5 $0.00005 $0.01123
Sonnet 5 $0.00002 $0.00449
Haiku 4.5 $0.00001 $0.00225

Measured 10d ago against content hash 59644cfb86c9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-with-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/pr-with-review.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Automation with Review Handling

Automate the full pull request lifecycle: create branch, commit, push, create PR, poll for reviews, address Greptile feedback, and merge on human approval.

Arguments

Parse from $ARGUMENTS:

  • --branch <name> (required): Branch name (must follow project conventions: feature/, fix/, docs/, refactor/, chore/)
  • --title <title> (required): PR title
  • --body <body> (optional): PR description body
  • --commit-message <msg> (optional): Custom commit message (defaults to PR title)

Phase 1: Setup and Validation

  1. Parse arguments from $ARGUMENTS

    • Extract branch, title, body, commit_message
    • If commit_message not provided, use title
    • Validate branch follows naming convention (feature/, fix/, docs/, refactor/, chore/)
  2. Verify prerequisites

    • Check gh CLI is authenticated: gh auth status
    • Check there are changes to commit: git status --porcelain
    • If no changes, report error and exit
  3. Report plan to user

    • Show: branch name, title, files to be committed
    • Proceed automatically (this is a background agent)

Phase 2: Roadmap Documentation Check

Before creating the PR, check if changes might complete a roadmap item.

  1. Load roadmap mapping (if it exists)

    MAPPING_FILE=".github/roadmap-mapping.yml"
    if [ -f "$MAPPING_FILE" ]; then
      # File exists, proceed with check
    else
      # Skip check, continue to PR creation
    fi
    
  2. Get changed files

    CHANGED_FILES=$(git diff --name-only origin/master)
    
  3. Match changed files against roadmap patterns

    For each mapping entry in the YAML file, check if any changed files match the patterns using glob matching. Track which roadmap items are potentially affected.

  4. Check if README was updated

    If any roadmap items matched:

    • Check if README.md is in the changed files
    • If README changed, check if the diff includes changes to roadmap tables (lines containing | ** or | Planned or | Future)
    • If README has appropriate changes, assume documentation is handled

Read the full file on GitHub · 290 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 290 lines · 11 tokens per session scan A 59644cfb86c9

Subscribe to this mod's changes

pr-with-review is a command published in the GitHub repository thecombatwombat/replicant-mcp (16 stars, last pushed 1mo ago), licensed MIT. It adds 11 tokens to every session and 2,246 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.