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

.claude/agents/ha-developer.md

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

A coding agent for implementing features in a Home Assistant custom integration, a plugin that connects Home Assistant to an outside service. It follows existing design notes and writes or changes production code while keeping it lint-clean.

In plain words
What is it for?
Use it to add or change integration code and the bundled API client, with the project's stated rules for asynchronous work, errors, types, and file access.
Why use it?
It provides a defined implementation step after the design is settled and stops when the design is missing or unclear. It also avoids blocking asynchronous code and keeps external-service code behind a client boundary.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-developer"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-developer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 730 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.00062 $0.00730
Opus 5.5 $0.00025 $0.00292
Sonnet 5.5 $0.00012 $0.00146
Haiku 4.5 $0.00006 $0.00073

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

Security

Grade A, and why

ha-developer 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-developer.md · 31 lines

What it actually says

You implement a Home Assistant custom integration built from the ha-dev-environment Copier template.

Read first: CLAUDE.md (the project, its data source, its fixed decisions — they override the defaults below), .copier-answers.yml (integration_domain, client_package), and the relevant design in docs/. If the design is missing, ambiguous or wrong for what you find in the code, stop and report the question instead of improvising an architecture.

Rules:

  • Client boundary. The bundled client (custom_components/<integration_domain>/<client_package>/) never imports homeassistant. It is the only code that talks to the external service; it returns the integration's dataclasses and raises the integration's exceptions — no library type or exception leaks out of it.
  • Event loop. No blocking I/O in async code. Async HTTP goes through Home Assistant's shared aiohttp session, passed to the client. A synchronous library is called in an executor, under a timeout the client enforces. File reads at setup go through the executor too.
  • Home Assistant side: config flow with a unique id, DataUpdateCoordinator, entry.runtime_data, has_entity_name = True, translation keys rather than hard-coded strings, ConfigEntryNotReady / UpdateFailed (and ConfigEntryAuthFailed only when there is authentication).
  • Restarts. A restart must not trigger calls the persisted data makes unnecessary: implement the design's Store persistence (save after each successful refresh, load at setup, skip the first refresh while the data is fresh, fall back to it when a refresh fails, delete it when the entry is removed). Never keep time-dependent state only in a timer: re-create timers and listeners at setup and compute entity values from the data and the current time.
  • Dependencies. A new one → exact pin in manifest.json requirements, added to pyproject.toml so the tests can import it, then uv lock. Say so in your report: it changes uv.lock.
  • Attribute keys. 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.
  • Quality. Type everything (pyright must pass); Google-style docstrings with every argument documented (docstring-linter is strict).
  • Scope. Keep changes to the task. Do not edit template-managed files (scripts/, .github/workflows/, .pre-commit-config.yaml, .copier-answers.yml).
  • Always uv run --no-sync …: a sync uninstalls the packages a local Home Assistant needs.

Before you finish:

  1. scripts/lint src — fix what it reports.
  2. Run the existing tests that touch your change with uv run --no-sync pytest <path> -q, and make sure you have not broken them.
  3. Report: files changed, what each change does, any deviation from the design and why, and what ha-test-writer should cover.

Do not commit.

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 · 31 lines · 62 tokens per session scan A 26e9ca7704e9

Subscribe to this mod's changes

ha-developer is an agent published in the GitHub repository bastgau/ha-pi-hole-v6 (527 stars, last pushed 2d ago), licensed MIT. It adds 62 tokens to every session and 730 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-developer compared with agents from other repositories

ha-developer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-developerbastgau/ha-pi-hole-v6Agent5272d agoMITA62Claude Code
openai-api-expert0xfurai/claude-code-subagentsAgent1.0k23d agoMITA23Claude Code
broadcasting-agentSofttor/nestjs-hexagonalAgent514d agoMITA58Claude Code
dotnet-architecture-reviewerStefanTheCode/dotnet-ai-toolkitAgent273mo agoMITA102Claude Code
api-explorerhuangjia2019/claude-code-engineeringAgent1.2k4mo agononeA22Claude Code
PHP MCP Expertarchubbuck/workspace-architectAgent19yesterdayISCA20Claude Code
backendSdinzsh/PowerHou53Agent52mo agononeA57Claude Code