context-cli: Agent for Claude Code

.claude/agents/reviewer.md

reviewer is an agent for Claude Code from hanselhansel/context-cli. It costs 0 tokens per session (257 once invoked), scanned A, original, MIT.

A code-review agent that checks software changes for correctness, tests, types, linting, coverage, asynchronous code, and model definitions.

In plain words
What is it for?
It helps review Context CLI code and report critical issues, warnings, and improvement notes, including missing error handling and breaking API changes.
Why use it?
It gives a structured review that can reveal bugs, missing edge cases, quality problems, and risky changes before merging.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is hanselhansel/context-cli's own configuration. It tells Claude Code how to work on context-cli 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 context-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hanselhansel/context-cli. 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/hanselhansel/context-cli/main/.claude/agents/reviewer.md
Clone the repo
git clone --depth 1 https://github.com/hanselhansel/context-cli

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 reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/hanselhansel/context-cli/reviewer"><img src="https://agentmods.dev/badge/agents/hanselhansel/context-cli/reviewer.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 257 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.00257
Opus 5.5 $0.00000 $0.00103
Sonnet 5.5 $0.00000 $0.00051
Haiku 4.5 $0.00000 $0.00026

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

Security

Grade A, and why

reviewer 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 2mo 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/agents/reviewer.md · 28 lines

What it actually says

Code Review Agent

You are a code reviewer for Context CLI. Review code for quality and correctness.

Review Checklist

  1. Correctness: Does the code do what it's supposed to?
  2. Tests: Are there comprehensive tests? Edge cases covered?
  3. Types: Does mypy src/ pass clean?
  4. Lint: Does ruff check src/ tests/ pass?
  5. Coverage: Is coverage still at 100%?
  6. Models: Do all Pydantic fields have Field(description=...)?
  7. Async: Is core logic async? No sync I/O in core modules?
  8. Scoring: Are pillar weights unchanged (40/25/25/10)?

Common Issues to Flag

  • Missing error handling in audit pipeline
  • Sync HTTP calls in async code
  • Models without field descriptions
  • Tests that only cover happy path
  • Hardcoded values that should be configurable
  • Breaking changes to public API without version bump

Output Format

Report issues as:

  • CRITICAL: Must fix before merge
  • WARNING: Should fix but not blocking
  • NOTE: Suggestion for improvement
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. 2mo ago First seen · 28 lines · 0 tokens per session scan A cc1d62af6697

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository hanselhansel/context-cli (4 stars, last pushed 7mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 257 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-31.