greptile-review

greptile-review is a command for Claude Code from opensesh/KARIMO. It costs 0 tokens per session (4,762 once invoked), scanned A, original, Apache-2.0.

A command that sends a pull request through repeated Greptile review cycles. A pull request is a proposed code change for review, and Greptile is the named review service.

In plain words
What is it for?
Use it to review a specified pull request, set a target score or loop limit, stop for early-exit decisions, or run without prompts in CI/CD systems.
Why use it?
It automates revision rounds until the configured review score is reached or the allowed attempts are used.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool; positional $N argument.

Part of the karimo plugin — 11 commands, 22 agents shipped together

Good fit Use it to review a specified pull request, set a target score or loop limit, stop for early-exit decisions, or run without prompts in CI/CD systems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/opensesh/karimo/greptile-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/opensesh/KARIMO

Made for: Claude Code.

Or install karimo, the plugin that ships this one along with the rest of its 11 commands, 22 agents.

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 greptile-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/opensesh/karimo/greptile-review/github.svg)](https://agentmods.dev/commands/opensesh/karimo/greptile-review)
Your own site
<a href="https://agentmods.dev/commands/opensesh/karimo/greptile-review"><img src="https://agentmods.dev/badge/commands/opensesh/karimo/greptile-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 greptile-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/opensesh/karimo/greptile-review"><img src="https://agentmods.dev/badge/commands/opensesh/karimo/greptile-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,762 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.00000 $0.04762
Opus 5 $0.00000 $0.02381
Sonnet 5 $0.00000 $0.00952
Haiku 4.5 $0.00000 $0.00476

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

Security

Grade A, and why

greptile-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/plugins/karimo/commands/greptile-review.md · 549 lines

How it starts

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

/karimo:greptile-review — Standalone Greptile Review Loop

Execute the full Greptile review cycle on a PR, looping until score meets threshold or circuit breaker triggers.

Arguments

  • --pr <number> (required): The PR number to review.
  • --threshold <1-5> (optional): Target score (default: from config.yaml or 5).
  • --max-loops <1-30> (optional): Maximum revision attempts (default: from config.yaml or 3).
  • --early-exit <1-5> (optional): Score at which to prompt for early exit (default: threshold - 1).
  • --auto (optional): Skip early exit prompts. Continue to threshold or max loops.
  • --no-prompt (optional): Alias for --auto. For CI/CD environments.

Usage

# Standard usage (reads config from config.yaml)
/karimo:greptile-review --pr 123

# Override threshold and max loops
/karimo:greptile-review --pr 123 --threshold 4 --max-loops 2

# Extended loop with budget-aware early exit
/karimo:greptile-review --pr 123 --max-loops 10

# Skip early exit prompts (CI/CD mode)
/karimo:greptile-review --pr 123 --max-loops 10 --auto

# Called by /karimo:merge (internal use)
/karimo:greptile-review --pr 123 --internal

Prerequisites

  1. Greptile configuredreview.provider: greptile in .karimo/config.yaml
  2. Greptile GitHub App installed — On the repository
  3. Repository indexed — In Greptile dashboard (app.greptile.com)
  4. PR exists and is open — Cannot review closed or merged PRs

Behavior

Step 1: Initialize

# Load configuration
review_provider=$(yq '.review.provider' .karimo/config.yaml)
threshold=${THRESHOLD:-$(yq '.review.threshold // 5' .karimo/config.yaml)}
max_loops=${MAX_LOOPS:-$(yq '.review.max_revision_loops // 3' .karimo/config.yaml)}

# Validate Greptile is configured
if [ "$review_provider" != "greptile" ]; then
  echo "❌ Greptile not configured"
  echo "   Run: /karimo:configure --greptile"
  exit 1
fi

# Validate PR exists and is open
pr_state=$(gh pr view $pr_number --json state --jq '.state')
if [ "$pr_state" != "OPEN" ]; then
  echo "❌ PR #$pr_number is not open (state: $pr_state)"
  exit 1
fi

# Get PR metadata for context
pr_branch=$(gh pr view $pr_number --json headRefName --jq '.headRefName')
pr_base=$(gh pr view $pr_number --json baseRefName --jq '.baseRefName')
pr_title=$(gh pr view $pr_number --json title --jq '.title')

echo "╭────────────────────────────────────────────────╮"
echo "│  Greptile Review: PR #$pr_number"
echo "╰────────────────────────────────────────────────╯"
echo ""
echo "  Branch: $pr_branch → $pr_base"
echo "  Title: $pr_title"
echo "  Threshold: ${threshold}/5"
echo "  Max loops: $max_loops"
echo ""
echo "  Budget reminder: Greptile is \$30/month for 50 PRs, then \$1/PR after."
echo ""

Read the full file on GitHub · 549 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 · 549 lines · 0 tokens per session scan A fd714730cb8b

Subscribe to this mod's changes

greptile-review is a command published in the GitHub repository opensesh/KARIMO (286 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,762 tokens. 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.