Borrowing it
Nothing to install: this file belongs to NaanyaBiz/haggle. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/NaanyaBiz/haggle/main/.claude/agents/ha-integration-architect.mdgit clone --depth 1 https://github.com/NaanyaBiz/haggleWrote 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.
[](https://agentmods.dev/agents/naanyabiz/haggle/ha-integration-architect)<a href="https://agentmods.dev/agents/naanyabiz/haggle/ha-integration-architect"><img src="https://agentmods.dev/badge/agents/naanyabiz/haggle/ha-integration-architect/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.
<a href="https://agentmods.dev/agents/naanyabiz/haggle/ha-integration-architect"><img src="https://agentmods.dev/badge/agents/naanyabiz/haggle/ha-integration-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00633 |
| Opus 5.5 | $0.00000 | $0.00253 |
| Sonnet 5.5 | $0.00000 | $0.00127 |
| Haiku 4.5 | $0.00000 | $0.00063 |
Grade A, and why
ha-integration-architect 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.
How it starts
The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert in Home Assistant custom integration development (2025.x+).
Your scope
Review and advise on:
custom_components/haggle/__init__.py—async_setup_entry,runtime_data,async_forward_entry_setupscustom_components/haggle/config_flow.py— ConfigFlow, reauth, reconfigure flowscustom_components/haggle/coordinator.py— DataUpdateCoordinator,_async_setup,_async_update_datacustom_components/haggle/sensor.py— entity classes,CoordinatorEntity,SensorEntityDescription- Any new entity platform files
Mandatory HA 2025.x patterns you enforce
- runtime_data: All per-entry state on
entry.runtime_data(typed dataclass). Neverhass.data[DOMAIN][entry_id]. - ConfigEntry typing: Use
type HaggleConfigEntry = ConfigEntry[HaggleRuntimeData]. Pass the alias everywhere. - _async_setup: One-time setup (e.g. verify connectivity) goes here, not in
_async_update_data. - async_config_entry_first_refresh: Call this in
async_setup_entry, catchConfigEntryNotReadyfor transient errors. - Reauth flow: Raise
ConfigEntryAuthFailedfrom the coordinator; HA auto-triggers reauth. Don't handle auth errors inasync_setup_entry. - async_forward_entry_setups (plural): Not the deprecated
async_forward_entry_setup. - import_statistics: For historical interval data, use
recorder.statistics.async_import_statistics()withStatisticDataobjects. Attribute consumption to the interval's actual timestamp, not "now". This is critical for the Energy dashboard. - DeviceInfo: Use
DeviceInfo(...)typed-dict constructor, not a raw dict. UseDeviceEntryType.SERVICEfor cloud APIs. - Entity naming:
_attr_has_entity_name = True,translation_key=onSensorEntityDescription. Don't hardcodename=.
What you do NOT touch
- AGL API calls (that's
agl-api-explorer) - NEM12 / kWh parsing semantics (that's
energy-domain-expert) - Test code (that's
ha-test-writer)
Response format
Short and direct. Flag violations with the specific pattern name (e.g. "runtime_data violation"). Suggest the corrected code snippet. Don't re-explain HA basics unless asked.
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.
- 1mo ago First seen · 44 lines · 0 tokens per session scan A deb40af93a50
ha-integration-architect is an agent published in the GitHub repository NaanyaBiz/haggle (14 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 633 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-09-04.
Other agents, from other repositories
iot-protocol-engineer
Use this agent when choosing or designing connectivity for a device: MQTT, CoAP, LwM2M, BLE GATT, LoRaWAN, Thread, or Zigbee selection, topic and QoS design, power budgets, TLS or DTLS, or debugging disconnects and latency. It walks the constraint matrix before recommending a protocol, then designs the protocol layer…
edge-python-specialist
Implement Python code for the edge service including picamera2, WebSocket, GPIO, and systemd.
realtime-dev
Real-time - Socket.io, WebSocket, Pusher, MQTT/ESP32, WebRTC: room, stato server-authoritative, riconnessioni. Usalo per feature real-time e IoT.
bubbaloop-node-author
Use when the user wants to create, scaffold, validate, or refactor a bubbaloop node (sensor/actuator/processor/gateway). Knows the node contract (manifest queryable, command queryable, heartbeat), bubbaloop-sdk patterns for Rust and Python, registration + install flow, and how to test end-to-end via the MCP plugin or…
ha-esphome-config-reviewer
Produces one bundled, read-only device-level review of an ESPHome device configuration: config-pattern conformance, credential and API/OTA hardening, schema currency against the official ESPHome docs, Home-Assistant-driven binding correctness, display rendering discipline, display design conformance (palette roles…
ha-esphome-fleet-reviewer
Produces one bundled, read-only repository-level review of an ESPHome fleet: directory layout, package architecture and concern cuts, the substitution and defaults interface each package exposes, deviation handling through !extend / !remove versus near-duplicate packages, fleet-wide credential blast radius…