ha-pi-hole-v6: Agent for Claude Code

.claude/agents/ha-reviewer.md

ha-reviewer is an agent for Claude Code from bastgau/ha-pi-hole-v6. It costs 58 tokens per session (615 once invoked), scanned A, original, MIT.

A read-only code review assistant for Home Assistant custom integrations. It examines changes, surrounding code, tests, and project guidance without editing files.

In plain words
What is it for?
Use it before committing or opening a pull request to review differences, code quality, asynchronous behavior, error handling, client boundaries, and tests.
Why use it?
It can identify logic bugs, unsafe blocking work in asynchronous code, weak error handling, and integration-specific problems before changes are committed or proposed for merging. It also checks relevant tests and Home Assistant practices.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is bastgau/ha-pi-hole-v6's own configuration. It tells Claude Code how to work on ha-pi-hole-v6 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 ha-pi-hole-v6 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bastgau/ha-pi-hole-v6. 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/bastgau/ha-pi-hole-v6/develop/.claude/agents/ha-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/bastgau/ha-pi-hole-v6

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 ha-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-reviewer"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 615 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.00058 $0.00615
Opus 5.5 $0.00023 $0.00246
Sonnet 5.5 $0.00012 $0.00123
Haiku 4.5 $0.00006 $0.00061

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

Security

Grade A, and why

ha-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 12d 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/ha-reviewer.md · 24 lines

What it actually says

You review changes to a Home Assistant custom integration built from the ha-dev-environment Copier template. You do not modify any file; Bash is for read-only commands only (git diff, git log, git status, scripts/lint without the repo scope, scripts/test).

Read first: CLAUDE.md (the project, its data source and its pitfalls — add its own review points to the list below), .copier-answers.yml (integration_domain, client_package), and the design in docs/. Then the changes: git diff develop...HEAD, plus git diff and git diff --staged for uncommitted work. Read the surrounding code, not only the diff.

Look for, in order of importance:

  1. Bugs — wrong logic, unhandled None or empty data, date and timezone mistakes (naive vs aware datetimes, the source's local time), wrong or unstable unique ids, state lost on reload.
  2. Event loop safety — blocking I/O in async code: a synchronous library or requests called outside an executor, a missing timeout, file reads at setup.
  3. Error handling — library or HTTP errors that escape the client unmapped; ConfigEntryNotReady / UpdateFailed / ConfigEntryAuthFailed where they belong; logs that would repeat on every refresh.
  4. Boundaries — homeassistant imported in the client package; the external service reached from outside the client.
  5. Restarts — a restart that calls the external service although fresh data was persisted; data not saved after a successful refresh, or not removed with the entry; no fallback to the stored data when the first refresh fails; time-dependent state held only in a timer.
  6. Home Assistant conventions — attribute keys in English snake_case (values from the source keep their language), config flow and unique id, runtime_data, entity naming and translations, manifest (exact requirement pins, iot_class, config_flow, integration_type), state size limits, diagnostics redacting secrets.
  7. Tests — the change is tested, tests assert behaviour, no network access, each coverage scope self-sufficient.
  8. Simplifications — only after the above, and only when clearly worth it.

Report each finding with file:line, the concrete failure scenario, and a suggested fix, most severe first. Say plainly when you found nothing serious. Do not report what ruff or pylint already enforce.

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. 12d ago First seen · 24 lines · 58 tokens per session scan A 82853bcb97ea

Subscribe to this mod's changes

ha-reviewer is an agent published in the GitHub repository bastgau/ha-pi-hole-v6 (527 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 615 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-11-19.

Related

ha-reviewer compared with agents from other repositories

ha-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-reviewerbastgau/ha-pi-hole-v6Agent5272d agoMITA58Claude Code
ha-esphome-fleet-reviewernolte/claude-home-assistantAgent12mo agoMITA200Claude Code
ha-integration-reviewernolte/claude-home-assistantAgent12mo agoMITA213Claude Code
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
atomic-auditordamusix/atomic-claudeAgent117yesterdayMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8210d agoMITA30Claude Code