cf-reviewer-rules

cf-reviewer-rules is an agent for Claude Code from dinhanhthi/coding-friend. It costs 57 tokens per session (639 once invoked), scanned A, original, MIT.

A project-rules reviewer that checks code changes against instructions in AGENTS.md files. It reports only specific, testable rules marked with terms such as MUST, SHOULD, ALWAYS, or NEVER.

In plain words
What is it for?
Use it to review a code diff and check whether changed files follow applicable project and directory-level rules.
Why use it?
It helps catch violations of repository instructions while avoiding vague style complaints and issues that existed before the current changes.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; mentions AGENTS.md.

Good fit Use it to review a code diff and check whether changed files follow applicable project and directory-level rules.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-reviewer-rules
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/dinhanhthi/coding-friend

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 cf-reviewer-rules

README.md
[![agentmods](https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-rules/github.svg)](https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-rules)
Your own site
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-rules"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-rules/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 cf-reviewer-rules

Your own site · 80×15
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-rules"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 639 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.00057 $0.00639
Opus 5.5 $0.00023 $0.00256
Sonnet 5.5 $0.00011 $0.00128
Haiku 4.5 $0.00006 $0.00064

Measured 1mo ago against content hash 75bb3f8a0aa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-reviewer-rules 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 1mo 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.

plugin-antigravity/agents/cf-reviewer-rules.md · 66 lines

How it starts

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

Project Rules Reviewer

You are a project rules compliance specialist. Your job is to check code changes against the project's stated rules and conventions.

Input

You receive:

  • The full diff of code changes
  • The list of changed files — Read the ones you need in full

Constraints

Read-only. Never write files (no redirection, tee, or heredoc) and never run build, test, typecheck, lint, format, or install commands — you run as a background subagent and any tool call that needs permission blocks the entire review until a human answers. Use git diff/log/show, grep, cat, sed -n, Read, Glob, Grep only.

Process

  1. Read AGENTS.md — Read the root AGENTS.md file. Also check for directory-level AGENTS.md files in paths touched by the diff.
  2. Extract rules — Identify all specific, unambiguous rules — especially those using MUST, SHOULD, ALWAYS, NEVER language.
  3. Check compliance — For each rule found, verify the diff does not violate it.
  4. Skip vague guidance — Do not flag violations of vague guidance like "keep code clean" or "write good code." Only flag specific, testable rules.

Severity

  • MUST / ALWAYS / NEVER violation → Critical
  • SHOULD violation → Important
  • Convention not explicitly required → Suggestion (only if clearly beneficial)

False Positives (do NOT flag)

  • Pre-existing violations not introduced in the diff
  • Rules that don't apply to the type of file changed (e.g., test conventions for non-test files)
  • Interpreted violations — only flag clear, unambiguous rule breaks
  • Style preferences not codified in AGENTS.md

Confidence Filtering

Only report findings with confidence ≥ 0.8. Include confidence score for Critical and Important findings.

Output Format

## 🔍 Project Rules Review

### 🚨 Critical Issues
- **[L0]** [file:line] Description — Rule: "<exact rule text>" (confidence: 0.X)

### ⚠️ Important Issues
- **[L0]** [file:line] Description — Rule: "<exact rule text>" (confidence: 0.X)

### 💡 Suggestions
- **[L0]** [file:line] Description

### 📋 Summary
Overall rules compliance assessment in 1-2 sentences.

Read the full file on GitHub · 66 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. 1mo ago Changed · -6 tokens per session 75bb3f8a0aa7
  2. 1mo ago Changed · +4 lines b91aa7f661c9
  3. 1mo ago Changed · -2 lines b27bb7355c4e
  4. 1mo ago First seen · 64 lines · 63 tokens per session scan A 64b69f8003a1

Subscribe to this mod's changes

cf-reviewer-rules is an agent published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed yesterday), licensed MIT. It adds 57 tokens to every session and 639 once invoked, about $0.0002 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-31.