codereviewbuddy CLAUDE.md

codereviewbuddy CLAUDE.md is an instructions file for coding agents from detailobsessed/codereviewbuddy. It costs 2,236 tokens per session, scanned A, a copy of claude-code-trace AGENTS.md, ISC.

Project instructions for Codereviewbuddy, an MCP server that helps AI coding agents manage GitHub pull-request review comments. They document the project, commands, architecture, testing, and tools for comment triage, CI diagnosis, stacked pull requests, issues, and pull-request descriptions.

In plain words
What is it for?
Use them when developing or reviewing Codereviewbuddy, including running tests, checking CI failures, organizing review comments, and reviewing pull-request descriptions.
Why use it?
They give an agent the repository-specific information needed to run checks and handle code-review work correctly.

Instructions file

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.

agentmods
npx agentmods add instructions/detailobsessed/codereviewbuddy/claude-md
Clone the repo
git clone --depth 1 https://github.com/detailobsessed/codereviewbuddy

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 codereviewbuddy CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/detailobsessed/codereviewbuddy/claude-md.svg)](https://agentmods.dev/instructions/detailobsessed/codereviewbuddy/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/detailobsessed/codereviewbuddy/claude-md"><img src="https://agentmods.dev/badge/instructions/detailobsessed/codereviewbuddy/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,236 This file is loaded in full into every session.
When invoked 2,236 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 75% copy Near-identical to another mod 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 $0.02236 $0.02236
Opus 5 $0.01118 $0.01118
Sonnet 5 $0.00447 $0.00447
Haiku 4.5 $0.00224 $0.00224

Measured 4d ago against content hash 51c8ed090d3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codereviewbuddy CLAUDE.md 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 4d 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

This is a copy

75% identical to claude-code-trace AGENTS.md — 177 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 180 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

codereviewbuddy is an MCP (Model Context Protocol) server built on FastMCP v3 that helps AI coding agents manage GitHub PR review comments. It provides tools for comment triage, CI diagnosis, stacked PR handling, issue tracking, and PR description review.

Tech stack: Python 3.14+, uv package manager, FastMCP v3, httpx, Pydantic Settings.

Common Commands

uv sync                # Install all dependencies
poe check              # Lint (ruff) + type check (ty) in parallel
poe fix                # Auto-fix lint + format
poe test               # Run tests excluding @pytest.mark.slow
poe test-all           # Run all tests including slow
poe test-cov           # Run tests with coverage (90% minimum required)
poe test-affected      # Run only tests affected by changes (testmon)
poe prek               # Run all pre-commit hooks (prek run --all-files)
poe docs               # Serve docs locally (zensical serve)

Run a single test file or test function:

uv run pytest tests/test_comments.py
uv run pytest tests/test_comments.py::test_function_name -v

Architecture

Entry points:

  • CLI: codereviewbuddy.cli:app (cyclopts) — default command starts the MCP server
  • MCP server: codereviewbuddy.server:mcp (FastMCP instance)

Core modules (src/codereviewbuddy/):

  • server.py — FastMCP server setup, tool registration, recovery-guided error handling (classifies errors by type and returns actionable hints)
  • config.py — Pydantic Settings configuration via CRB_* env vars (zero-config by default)
  • models.py — Pydantic response models with message and next_steps fields for agent guidance
  • gh.py — Primary GitHub access: wraps gh CLI subprocess for GraphQL/REST calls
  • github_api.py — Fallback httpx-based GitHub API client using PAT tokens
  • cli.py — CLI with subcommands: serve, install, check-env

Read the full file on GitHub · 180 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. 4d ago First seen · 180 lines · 2,236 tokens per session scan A 51c8ed090d3b

Subscribe to this mod's changes

codereviewbuddy CLAUDE.md is an instructions file published in the GitHub repository detailobsessed/codereviewbuddy (0 stars, last pushed 3mo ago), licensed ISC. It adds 2,236 tokens to every session, about $0.0112 per session on Opus 5. A static security scan graded it A with 0 findings. It is 75% identical to claude-code-trace AGENTS.md, differing in 177 lines, and is treated as a copy.

Related

Other instructions, from other repositories