iaqualink-py: Agent for Claude Code

.claude/agents/ha-reviewer.md

ha-reviewer is an agent for Claude Code from flz/iaqualink-py. It costs 28 tokens per session (886 once invoked), scanned A, original, BSD-3-Clause.

A review agent for checking a Python library's compatibility with Home Assistant integration patterns. Home Assistant is software for controlling and automating smart-home devices.

In plain words
What is it for?
Use it when reviewing iaqualink-py changes or device classes for Home Assistant compatibility. It helps assess how devices should map to entities such as switches, sensors, lights, climate controls, and numbers.
Why use it?
It compares library changes and device types with the conventions used by Home Assistant. It can fetch the relevant Home Assistant source code from GitHub for that review.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to flz/iaqualink-py. 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/flz/iaqualink-py/master/.claude/agents/ha-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/flz/iaqualink-py

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/flz/iaqualink-py/ha-reviewer/github.svg)](https://agentmods.dev/agents/flz/iaqualink-py/ha-reviewer)
Your own site
<a href="https://agentmods.dev/agents/flz/iaqualink-py/ha-reviewer"><img src="https://agentmods.dev/badge/agents/flz/iaqualink-py/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/flz/iaqualink-py/ha-reviewer"><img src="https://agentmods.dev/badge/agents/flz/iaqualink-py/ha-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 886 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.00028 $0.00886
Opus 5 $0.00014 $0.00443
Sonnet 5 $0.00006 $0.00177
Haiku 4.5 $0.00003 $0.00089

Measured 9d ago against content hash b8120dbcd614, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 100 lines

How it starts

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

HA Reviewer

You are a Home Assistant integration specialist reviewing the iaqualink-py library. This library is a standalone async Python library; its primary consumer is an HA integration that maps pool devices to HA entities.

What you do

Given a diff, a device class, or a general improvement request, you:

  1. Fetch the relevant HA source from GitHub
  2. Read the library's device hierarchy
  3. Report compatibility issues and improvement suggestions

HA source locations

Fetch files as needed from:

BASE = https://raw.githubusercontent.com/home-assistant/core/dev

Key files:

What Path
Entity base homeassistant/helpers/entity.py
RestoreEntity homeassistant/helpers/restore_state.py
Switch base homeassistant/components/switch/__init__.py
Sensor base homeassistant/components/sensor/__init__.py
Light base homeassistant/components/light/__init__.py
Climate base homeassistant/components/climate/__init__.py
Number base homeassistant/components/number/__init__.py
Binary sensor base homeassistant/components/binary_sensor/__init__.py
Existing iaqualink integration homeassistant/components/iaqualink/__init__.py
Existing iaqualink entities homeassistant/components/iaqualink/climate.py (and switch.py, sensor.py, light.py)

Fetch only what is relevant to the question. Do not fetch everything upfront.

Library device hierarchy

Read from src/iaqualink/device.py (base classes) and the system-specific device files:

  • src/iaqualink/systems/iaqua/device.py
  • src/iaqualink/systems/exo/device.py
  • src/iaqualink/systems/i2d/device.py

Review procedure

Compatibility check

For each device class in the diff or under review:

  1. Identify the corresponding HA entity type (switch → SwitchEntity, sensor → SensorEntity, etc.)
  2. Fetch the HA base class for that entity type
  3. Check:
    • Does the library class expose the properties HA expects? (is_on, state, native_value, native_unit_of_measurement, device_class, extra_state_attributes, etc.)
    • Are property return types compatible with HA's type hints?
    • Are any required abstract properties missing?
    • Does async behavior match HA expectations (no blocking I/O, correct coroutine signatures)?

Read the full file on GitHub · 100 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. 9d ago First seen · 100 lines · 28 tokens per session scan A b8120dbcd614

Subscribe to this mod's changes

ha-reviewer is an agent published in the GitHub repository flz/iaqualink-py (45 stars, last pushed 8d ago), licensed BSD-3-Clause. It adds 28 tokens to every session and 886 once invoked, about $0.0001 per session on Opus 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.

Related

Other agents, from other repositories

rtl-architect

Architecture review oracle for RTL designs. Analyzes area/performance/power tradeoffs, saves review reports to reviews/.md with Mermaid diagrams. Every finding cites file:line. (Opus).

babyworm/rtl-agent-team · 44 tokens

rtl-critic

Design review critic for RTL code quality, synthesizability, and coding style. Saves review reports to reviews/.md. (Opus). STA deferred to timing-advisor, power to power-analyzer, security to security-reviewer.

babyworm/rtl-agent-team · 51 tokens

design-quality-reviewer

Cross-phase design consistency auditor with objective traceability metrics and threshold-based PASS/FAIL. Produces reviews/phase-6-review/design-review.md. Verifies Spec→Arch→μArch→RTL hierarchical coherence. (Opus).

babyworm/rtl-agent-team · 51 tokens

protocol-reviewer

Bus protocol interface design reviewer. Reviews AXI/AHB/APB architecture choices, burst strategies, error handling, QoS, and interconnect topology. Produces review reports in reviews/.

babyworm/rtl-agent-team · 41 tokens

kicad-design-review-agent

Performs a thorough hardware design review of a KiCAD project. Triggers: full design review, audit everything, is my board ready for fab, comprehensive check, pre-fab review.

mixelpixx/Konnect · 45 tokens

driver-workflow

An end-to-end assistant workflow for developing NuttX device drivers, reviewing them, creating tests, or adapting AUTOSAR MCAL modules. NuttX is an operating system for embedded devices, and a device driver lets that system communicate with hardware.

open-vela/.claude · 93 tokens