homeassistant-claude-kit AGENTS.md

homeassistant-claude-kit AGENTS.md is an instructions file for Codex, OpenCode from dcb/homeassistant-claude-kit. It costs 994 tokens per session, scanned A, original, MIT.

Repository instructions for an AI coding assistant working on a Home Assistant project, a system for controlling smart-home devices. They define how to read files, check device identifiers, validate configuration, document changes, and ask before making uncertain changes.

In plain words
What is it for?
Use them when changing Home Assistant automations, YAML configuration, device behavior, or related documentation. They also guide validation, deployment, and decisions that require household-specific knowledge.
Why use it?
They reduce mistakes caused by guessing device names, household rules, or automation behavior. They also provide checks that help prevent invalid configuration from being deployed.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dcb/homeassistant-claude-kit/agents-md
Clone the repo
git clone --depth 1 https://github.com/dcb/homeassistant-claude-kit

Made for: Codex, OpenCode.

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 homeassistant-claude-kit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dcb/homeassistant-claude-kit/agents-md.svg)](https://agentmods.dev/instructions/dcb/homeassistant-claude-kit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dcb/homeassistant-claude-kit/agents-md"><img src="https://agentmods.dev/badge/instructions/dcb/homeassistant-claude-kit/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 994 This file is loaded in full into every session.
When invoked 994 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00994 $0.00994
Opus 5 $0.00497 $0.00497
Sonnet 5 $0.00199 $0.00199
Haiku 4.5 $0.00099 $0.00099

Measured 4d ago against content hash f66f1043b7fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

homeassistant-claude-kit AGENTS.md 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 4d 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.

AGENTS.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Conventions

Tool-agnostic conventions for AI coding assistants (Cursor, GitHub Copilot, Windsurf, etc.). If you are Claude Code, follow CLAUDE.md instead — it has additional hook and permission configuration.

Core Principles

  1. Read before writing. Before touching any file, read it. Before using an entity ID, verify it exists via make entities or docs/system-*.md. Never guess.

  2. Validate before deploying. Always run make validate before make push. The pre-push hook enforces this, but you should validate proactively after edits.

  3. Document every change. After pushing changes, update the relevant docs/system-*.md file. No automation or helper should be undocumented.

  4. Ask when uncertain. Entity IDs, device behavior, household schedules, and user preferences require runtime knowledge. Ask rather than assume.

Boundaries

Always Do

  • Read docs/system-*.md for the relevant domain before modifying automations
  • Read docs/house-rules.md before adding automations that affect routines. If the file is inaccessible (privacy mode), ask the user for relevant constraints.
  • Run make validate after editing any YAML in config/
  • Reload the relevant domain after make push (automation/reload, script/reload, etc.)
  • Update docs/system-*.md after any configuration change

Ask First

  • Creating new input_number, input_boolean, or input_select helpers
  • Adding automations that interact with existing ones
  • Changing configuration.yaml (requires HA restart, not just reload)
  • Deleting or renaming automations, scripts, or helpers

Never Do

  • Modify files in config/.storage/ — these are managed by HA at runtime
  • Hardcode thresholds, timeouts, or temperatures — use input_* helpers
  • Use continue_on_error: true to silence failures
  • Guess entity IDs — always verify
  • Push without validating

File Editing Rules

  • YAML files in config/ are safe to edit locally and push with make push
  • .storage/ files must only be changed through the HA UI
  • Dashboard files (dashboard/src/) are safe to edit; run make deploy-dashboard to deploy

Read the full file on GitHub · 77 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. 4d ago First seen · 77 lines · 994 tokens per session scan A f66f1043b7fe

Subscribe to this mod's changes

homeassistant-claude-kit AGENTS.md is an instructions file published in the GitHub repository dcb/homeassistant-claude-kit (119 stars, last pushed 6d ago), licensed MIT. It adds 994 tokens to every session, about $0.0050 per session on Opus 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-08-30.

Related

Other instructions, from other repositories

firmware CLAUDE.md

Claude Code instructions for OpenIPC/firmware, covering claude.md, what this is, before you start: is this the right repository?, build and common tasks.

OpenIPC/firmware · 4,948 tokens

Tutorial_AwesomeModernCPP AGENTS.md

AGENTS.md instructions for Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP, covering agents.md, 这是什么, 通用 essentials(所有 agent 必读) and 你来做什么?(按场景路由).

Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP · 778 tokens

brilliant_sdk AGENTS.md

Instructions for brilliantlabsAR/brilliant_sdk, covering brilliant sdk — agent guide, how an app works (the pattern behind everything), minimal reading paths, verify without hardware and testing.

brilliantlabsAR/brilliant_sdk · 1,817 tokens

NeoMind CLAUDE.md

Claude Code instructions for camthink-ai/NeoMind, covering neomind — edge ai platform for iot, development commands, ecosystem repositories, extension package contract (.nep) and device type template contract (json).

camthink-ai/NeoMind · 4,457 tokens

zmk-config AGENTS.md

AGENTS.md instructions for urob/zmk-config, covering customization guide, ground rules, how the multi-board layout works, adding a new board and where to change what.

urob/zmk-config · 1,867 tokens

ext-apps CLAUDE.md

Claude Code instructions for modelcontextprotocol/ext-apps, a project described as: Official repo for spec & SDK of MCP Apps protocol - standard for UIs embedded AI chatbots, served by MCP servers.

modelcontextprotocol/ext-apps · 3 tokens