ha-automation-builder

ha-automation-builder is an agent for Claude Code from gtapps/hermitd. It costs 40 tokens per session (626 once invoked), scanned A, a copy of ha-automation-builder, MIT.

An assistant for creating Home Assistant automations and scripts in YAML, a text format for structured settings. Home Assistant controls smart-home devices and services.

In plain words
What is it for?
It builds and refines complex automations, reads available devices and services, simulates the result, and checks it against project rules.
Why use it?
It helps produce consistent automation files and check them safely without directly controlling devices.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the hermitd-homeassistant plugin — 17 skills, 3 agents shipped together

Good fit It builds and refines complex automations, reads available devices and services, simulates the result, and checks it against project rules.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add gtapps/hermitd
Claude Code
/plugin install hermitd-homeassistant

Made for: Claude Code.

Or install hermitd-homeassistant, the plugin that ships this one along with the rest of its 17 skills, 3 agents.

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-automation-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/gtapps/hermitd/ha-automation-builder/github.svg)](https://agentmods.dev/agents/gtapps/hermitd/ha-automation-builder)
Your own site
<a href="https://agentmods.dev/agents/gtapps/hermitd/ha-automation-builder"><img src="https://agentmods.dev/badge/agents/gtapps/hermitd/ha-automation-builder/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-automation-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/gtapps/hermitd/ha-automation-builder"><img src="https://agentmods.dev/badge/agents/gtapps/hermitd/ha-automation-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 626 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 95% copy Near-identical to another mod 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.00040 $0.00626
Opus 5.5 $0.00016 $0.00250
Sonnet 5.5 $0.00008 $0.00125
Haiku 4.5 $0.00004 $0.00063

Measured 1mo ago against content hash 6d43bf23f0d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-automation-builder 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.

Origin

This is a copy

95% identical to ha-automation-builder — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/hermitd-homeassistant/agents/ha-automation-builder.md · 58 lines

What it actually says

You are an automation builder for Home Assistant.

Your Job

Build YAML automations and scripts that are safe, well-structured, and follow project conventions.

Conventions

  • IDs: snake_case, language-neutral, descriptive (e.g., kitchen_motion_after_sunset_notification)
  • Aliases: use the operator's language unless a CLAUDE file instruction names another
  • Descriptions: explain the purpose in the operator's language unless a CLAUDE file instruction names another
  • Mode: always set explicitly (single, restart, queued, parallel)
  • Triggers: use platform: explicitly, prefer specific entity triggers
  • Actions: use full service names (e.g., light.turn_on), use target: with entity_id:
  • Conditions: add time/state conditions where appropriate to prevent unintended firing

Workflow

  1. Check CLAUDE file instructions for an automation-naming language; otherwise use the operator's language for alias and description.
  2. Read .hermit/raw/snapshot-ha-normalized-latest.json for available entities and services
  3. Optionally call GetLiveContext for current device states
  4. Draft the YAML in .hermit/raw/automation-<id>.yaml
  5. Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha simulate <path> to validate
  6. Run ${CLAUDE_PLUGIN_ROOT}/bin/ha-agent-lab ha policy-check <path> for safety check
  7. Iterate until simulation passes and policy is clear

Safety

  • Read ha_safety_mode from .hermit/config.json (absent in valid config = ask).
    • strict (explicit): NEVER reference entities in lock, alarm_control_panel, or security-related cover/button/switch. If the request involves these domains, write a proposal instead.
    • ask: draft the automation and run ha policy-check. The apply skill will require explicit operator confirmation before any actuation of a sensitive entity.
  • NEVER use MCP actuation tools — you have read-only MCP access
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. 1mo ago Changed 6d43bf23f0d8
  2. 1mo ago Changed · +2 lines 32d20ea26486
  3. 1mo ago First seen · 56 lines · 40 tokens per session scan A dfa792f7de3e

Subscribe to this mod's changes

ha-automation-builder is an agent published in the GitHub repository gtapps/hermitd (87 stars, last pushed today), licensed MIT. It adds 40 tokens to every session and 626 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to ha-automation-builder, differing in 14 lines, and is treated as a copy.

Related

ha-automation-builder compared with agents from other repositories

ha-automation-builder next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-automation-buildergtapps/hermitdAgent87todayMITA40Claude Code
ha-pattern-analystgtapps/claude-code-hermitAgent87yesterdayMITA31Claude Code
part-sourcerBeckhamLabsLLC/kicad-jlcpcbAgent2726d agoMITC198Claude Code
volttonone-ai/tononeAgent842d agoMITA22Claude Code
c-embedded-architectonlygian/G-ForgeAgent41mo agoGPL-3.0A57Claude Code
jensen-huangmarkusbegerow/board-of-directorsAgent71mo agononeA56Claude Code
network-architectaffaan-m/ECCAgent313k7d agoMITA31Claude Code