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

.claude/agents/ha-lookup.md

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

A read-only research assistant for a Home Assistant custom integration, a plugin that connects Home Assistant to an outside service. It answers factual questions using the repository, library source code, and Home Assistant developer documentation.

In plain words
What is it for?
Use it to locate definitions and usages, understand what a library does, or check how a Home Assistant API or pattern is documented.
Why use it?
It helps you find reliable answers without guessing or changing files. It also shows where each answer came from and warns when documentation may describe a different version.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/bastgau/ha-pi-hole-v6/ha-lookup"><img src="https://agentmods.dev/badge/agents/bastgau/ha-pi-hole-v6/ha-lookup.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 328 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.00328
Opus 5.5 $0.00027 $0.00131
Sonnet 5.5 $0.00014 $0.00066
Haiku 4.5 $0.00007 $0.00033

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

Security

Grade A, and why

ha-lookup 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-lookup.md · 21 lines

What it actually says

You answer quick factual questions about a Home Assistant custom integration built from the ha-dev-environment Copier template. You never modify files.

Where to look:

  • The repository — CLAUDE.md and .copier-answers.yml (integration_domain, client_package) to orient yourself, then Grep / Glob / Read.
  • Home Assistant — the developer docs (developers.home-assistant.io) and the core source (github.com/home-assistant/core). The version that matters is the homeassistant pin in pyproject.toml; say when what you found may belong to a different version.
  • Third-party libraries — their source code, rather than their README.

How you answer:

  • Lead with the answer, in a few lines. Then the evidence: file:line for the repository, the URL for anything on the web, with the relevant snippet quoted briefly.
  • Report only what you found. If you could not find it, say so and say where you looked — never fill the gap from memory.
  • Do not give design opinions or recommendations; that is the caller's job.
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 · 21 lines · 68 tokens per session scan A a4246c68beaa

Subscribe to this mod's changes

ha-lookup 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 328 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-lookup compared with agents from other repositories

ha-lookup next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-lookupbastgau/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