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

.claude/agents/ha-architect.md

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

A design assistant for planning features in a Home Assistant custom integration, a plugin that connects Home Assistant to an outside service. It writes design notes covering configuration, data updates, entities, API boundaries, and error handling before coding starts.

In plain words
What is it for?
Use it to plan configuration screens, refresh and update behaviour, entities, client interfaces, and failure handling for a new feature.
Why use it?
It turns structural decisions into a written plan so implementation does not have to guess. It also keeps the integration and its bundled API client separated.

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-architect.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-architect

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

agentmods 80×15 button for ha-architect

Your own site · 80×15
<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>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,009 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.00068 $0.01009
Opus 5.5 $0.00027 $0.00404
Sonnet 5.5 $0.00014 $0.00202
Haiku 4.5 $0.00007 $0.00101

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

Security

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.

.claude/agents/ha-architect.md · 43 lines

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 in custom_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, ConfigEntryAuthFailed only 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 in async_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 homeassistant version is in pyproject.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 (data vs options), 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.

Read the full file on GitHub · 43 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. 12d ago First seen · 43 lines · 68 tokens per session scan A 4825670f54ba

Subscribe to this mod's changes

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.

Related

ha-architect compared with agents from other repositories

ha-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-architectbastgau/ha-pi-hole-v6Agent5272d agoMITA68Claude Code
ha-suggestionsESJavadex/claude-homeassistant-pluginsAgent2826d agoMITA59Claude Code
ha-esphome-fleet-reviewernolte/claude-home-assistantAgent12mo agoMITA200Claude Code
ha-blueprint-authornolte/claude-home-assistantAgent12mo agoMITA206Claude Code
ha-dev-instance-provisionernolte/claude-home-assistantAgent12mo agoMITA216Claude Code
ha-integration-verifiernolte/claude-home-assistantAgent12mo agoMITA179Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code