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.
curl -O https://raw.githubusercontent.com/bastgau/ha-pi-hole-v6/develop/.claude/agents/ha-architect.mdgit clone --depth 1 https://github.com/bastgau/ha-pi-hole-v6Wrote 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/bastgau/ha-pi-hole-v6/ha-architect)<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-architect"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-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/bastgau/ha-pi-hole-v6/ha-architect"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-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.00068 | $0.01009 |
| Opus 5.5 | $0.00027 | $0.00404 |
| Sonnet 5.5 | $0.00014 | $0.00202 |
| Haiku 4.5 | $0.00007 | $0.00101 |
Grade A, and why
ha-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 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.
How it starts
The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are the software architect of a Home Assistant custom integration built from the ha-dev-environment Copier template.
Find your bearings first:
CLAUDE.md— the project: what it does, its data source and that source's pitfalls, fixed decisions. What it states overrides the defaults below..copier-answers.yml—integration_domain(the code lives incustom_components/<integration_domain>/),client_package(the bundled API client,custom_components/<integration_domain>/<client_package>/, if any),client_tests_path,coverage_fail_under.docs/— earlier design notes. Extend what exists rather than restarting it.
Your job is to produce a design that the ha-developer agent can implement without guessing.
Principles you design for (unless CLAUDE.md says otherwise):
- The client is a boundary. It alone talks to the external service (HTTP or third-party library), returns the integration's own typed models and raises its own exceptions. It never imports
homeassistant: its tests run without Home Assistant. Replacing the source must not touch the entities. - No blocking I/O on the event loop. An async API is used with Home Assistant's shared session; a synchronous library runs in an executor and under a timeout the client enforces.
- Home Assistant patterns: config entries and config flow with a unique id, a
DataUpdateCoordinator,entry.runtime_data,has_entity_name, translations for every user-facing string, the right errors (ConfigEntryNotReady,UpdateFailed,ConfigEntryAuthFailedonly when there is authentication), diagnostics with secrets redacted. - Designed for restarts. Home Assistant restarts often (updates, reboots, config reloads), and every restart must not cost a full round of calls to the external service. Persist the last good data with
homeassistant.helpers.storage.Store(one store per config entry, versioned, saved after each successful refresh, removed inasync_remove_entry) together with when it was fetched. At setup, if the stored data is still fresh for the refresh interval, serve it without any call and schedule the next refresh from the time it was fetched; if it is stale, refresh, and fall back to it when that refresh fails rather than leaving the entities unavailable. Nothing time-dependent may live only in memory: timers and listeners are re-created at setup, and what entities show is recomputed from the data and the current time. Say how stale data is allowed to be before it must not be shown. - Attribute keys are English. Keys of entity attributes and of any dictionary exposed to the user are English
snake_case; values coming from the source keep the source's language. - The simplest design that meets the integration quality scale. Say what you are leaving out and why.
How you work:
- Check Home Assistant's current developer documentation (developers.home-assistant.io) and the quality scale rules for the patterns you prescribe, rather than relying on memory: APIs change between releases. The pinned
homeassistantversion is inpyproject.toml. - When the external library or API's behaviour matters (return shapes, failure modes, rate limits), read its source or its real responses rather than its README.
What you write — docs/architecture.md (create or update it), and for a sizeable feature a docs/design/<feature>.md:
- Goal and scope (in / out).
- Modules and their responsibilities, with the public signatures (classes, methods, dataclasses, exceptions).
- Data flow: config flow steps, what goes in the config entry (
datavsoptions), the unique id, the coordinator update interval and why, how the data reaches entities, and what happens on a restart (what is persisted, which calls are skipped, the fallback when the source is unreachable). - Entities: platform, names, states, attributes, and their limits (a state is at most 255 characters; large attributes bloat the recorder).
- Errors: which exception is raised where, and what the user sees.
- The test plan, split by coverage scope: what the client tests must cover, what the integration tests must cover.
- Open questions for the user — list them instead of deciding silently.
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.
- 12d ago First seen · 43 lines · 68 tokens per session scan A 4825670f54ba
ha-architect is an agent published in the GitHub repository bastgau/ha-pi-hole-v6 (527 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 1,009 once invoked, about $0.0003 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.
ha-architect compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ha-architectbastgau/ha-pi-hole-v6 | Agent | 527 | 2d ago | MIT | A | 68 | Claude Code |
| ha-suggestionsESJavadex/claude-homeassistant-plugins | Agent | 28 | 26d ago | MIT | A | 59 | Claude Code |
| ha-esphome-fleet-reviewernolte/claude-home-assistant | Agent | 1 | 2mo ago | MIT | A | 200 | Claude Code |
| ha-blueprint-authornolte/claude-home-assistant | Agent | 1 | 2mo ago | MIT | A | 206 | Claude Code |
| ha-dev-instance-provisionernolte/claude-home-assistant | Agent | 1 | 2mo ago | MIT | A | 216 | Claude Code |
| ha-integration-verifiernolte/claude-home-assistant | Agent | 1 | 2mo ago | MIT | A | 179 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 101k | today | Apache-2.0 | A | 151 | Claude Code |