rtk is a command-line proxy that filters and compresses output from development commands before it reaches an LLM's context. It is used with coding agents to reduce the tokens consumed by commands such as Git operations. The catalogue includes skills, commands, agents, and instructions for using rtk in agent workflows.
Borrowing it
Nothing to install: this file belongs to rtk-ai/rtk. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rtk-ai/rtk/develop/.claude/commands/tech/codereview.mdgit clone --depth 1 https://github.com/rtk-ai/rtkWrote 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.
[](https://agentmods.dev/commands/rtk-ai/rtk/codereview)<a href="https://agentmods.dev/commands/rtk-ai/rtk/codereview"><img src="https://agentmods.dev/badge/commands/rtk-ai/rtk/codereview/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.
<a href="https://agentmods.dev/commands/rtk-ai/rtk/codereview"><img src="https://agentmods.dev/badge/commands/rtk-ai/rtk/codereview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00014 | $0.02252 |
| Opus 5.5 | $0.00006 | $0.00901 |
| Sonnet 5.5 | $0.00003 | $0.00450 |
| Haiku 4.5 | $0.00001 | $0.00225 |
Grade A, and why
codereview 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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RTK Code Review
Review locale de la branche courante avant création de PR. Applique les critères de qualité RTK.
Principe: Preview local → corriger → puis créer PR propre.
Usage
/tech:codereview # 🔴 + 🟡 uniquement (compact)
/tech:codereview --verbose # + points positifs + 🟢 détaillées
/tech:codereview main # Review vs main (défaut: master)
/tech:codereview --staged # Seulement fichiers staged
/tech:codereview --auto # Review + fix loop
/tech:codereview --auto --max 5
Arguments: $ARGUMENTS
Étape 1: Récupérer le contexte
# Parse arguments
VERBOSE=false
AUTO_MODE=false
MAX_ITERATIONS=3
STAGED=false
BASE_BRANCH="master"
set -- "$ARGUMENTS"
while [[ $# -gt 0 ]]; do
case "$1" in
--verbose) VERBOSE=true; shift ;;
--auto) AUTO_MODE=true; shift ;;
--max) MAX_ITERATIONS="$2"; shift 2 ;;
--staged) STAGED=true; shift ;;
*) BASE_BRANCH="$1"; shift ;;
esac
done
# Fichiers modifiés
git diff "$BASE_BRANCH"...HEAD --name-only
# Diff complet
git diff "$BASE_BRANCH"...HEAD
# Stats
git diff "$BASE_BRANCH"...HEAD --stat
Étape 2: Charger les guides pertinents (CONDITIONNEL)
| Si le diff contient... | Vérifier |
|---|---|
src/**/*.rs |
CLAUDE.md sections Error Handling + Tests |
src/core/filter.rs ou src/cmds/**/*_cmd.rs |
Filter Development Checklist (CLAUDE.md) |
src/main.rs |
Command routing + Commands enum |
src/core/tracking.rs |
SQLite patterns + DB path config |
src/core/config.rs |
Configuration system |
src/hooks/init/ |
Init patterns + hook installation |
.github/workflows/ |
CI/CD multi-platform build targets |
tests/ ou fixtures/ |
Testing Strategy (CLAUDE.md) |
Cargo.toml |
Dependencies + build optimizations |
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.
- 13d ago Changed a9bf6992f250
- 1mo ago Changed 860899c9de3d
- 1mo ago First seen · 261 lines · 14 tokens per session scan A 297e3bd3e33d
codereview is a command published in the GitHub repository rtk-ai/rtk (84,655 stars, last pushed yesterday), licensed Apache-2.0. It adds 14 tokens to every session and 2,252 once invoked, about $0.0001 per session on Opus 5.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.
Other commands, from other repositories
audit-agents-skills
Audit quality of agents, skills, and commands in a Claude Code project.
deslop
Audit a standing codebase for accumulated slop — comment noise, AI-tell doc prose, speculative abstraction, reinvented stdlib, duplicate helpers, dead code, swallowed errors, convention drift. Fans out read-only auditors sharded by wiki domain and writes an indexed report into a scratchpad for you to read. /deslop…
review-branch
Review the current branch's diff against base by dispatching atomic-reviewer. No orchestration loop, no spec required — pre-flight before /commit pr or /commit merge.
implement
Implement in the main agent, with atomic-reviewer gating every checkpoint. For work whose context is already in this conversation, where a fresh subagent would have to re-read what you have already read. Same checkpoints, commit-per-green, and finalize as /subagent-implementation; you write the code.
review
Run a code review on changed files (or a path you pass).
dream
Overnight autoresearch + maintainer sweep that surfaces a MORNING REPORT — suggested changes, issues raised with fixes, and kept improvements. Shadow-first; never auto-pushes. Runs on-demand or scheduled for off-hours.