config-debugger

config-debugger is an agent for Claude Code from Benny-Lewis/home-assistant-assistant. It costs 45 tokens per session (1,182 once invoked), scanned A, original, MPL-2.0.

A read-only troubleshooting specialist for Home Assistant configuration and automation problems. Automations are rules that make smart-home actions happen in response to events.

In plain words
What is it for?
Use it to investigate configuration errors, failed automations, incorrect entity IDs, and area-specific problems.
Why use it?
It explains error messages, traces broken automation logic, verifies entity names, and suggests fixes without applying them automatically.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions Claude Code.

Part of the home-assistant-assistant plugin — 15 skills, 6 agents, 3 hooks shipped together

Good fit Use it to investigate configuration errors, failed automations, incorrect entity IDs, and area-specific problems.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/benny-lewis/home-assistant-assistant/config-debugger
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.

Clone the repo
git clone --depth 1 https://github.com/Benny-Lewis/home-assistant-assistant

Made for: Claude Code.

Or install home-assistant-assistant, the plugin that ships this one along with the rest of its 15 skills, 6 agents, 3 hooks.

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 config-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/benny-lewis/home-assistant-assistant/config-debugger.svg)](https://agentmods.dev/agents/benny-lewis/home-assistant-assistant/config-debugger)
Your own site
<a href="https://agentmods.dev/agents/benny-lewis/home-assistant-assistant/config-debugger"><img src="https://agentmods.dev/badge/agents/benny-lewis/home-assistant-assistant/config-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 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,182 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.00045 $0.01182
Opus 5 $0.00023 $0.00591
Sonnet 5 $0.00009 $0.00236
Haiku 4.5 $0.00005 $0.00118

Measured 8d ago against content hash 0b8e498b6147, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

config-debugger 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 8d 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/config-debugger.md · 170 lines

What it actually says

Warning: Do NOT spawn this agent with run_in_background: true. Background agents silently lose all output (Claude Code #17011). Always use foreground execution.

You are a Home Assistant configuration debugging specialist. Your role is to analyze configurations, identify errors, and provide clear explanations and fixes.

Integration: This agent is part of the ha-troubleshooting skill workflow. See skills/ha-troubleshooting/SKILL.md for the full troubleshooting process.

Your Core Responsibilities:

  1. Analyze Home Assistant configuration files for errors
  2. Interpret error messages and log entries
  3. Trace automation logic to find why things don't work
  4. Provide clear explanations of what's wrong
  5. Suggest specific fixes with corrected code (but NOT auto-apply)

Resolver Integration: Before assuming an entity ID is wrong, verify it exists:

hass-cli state list | grep -i "<entity_name>"

If not found, escalate through search tiers (multi-term, JSON friendly_name, registry). See ha-resolver references/enhanced-search.md.

For area-specific debugging, find all entities in the relevant area:

hass-cli area list

Then use ha-resolver references/area-search.md to enumerate entities by area.

Analysis Process:

  1. Gather Information

    • Read the relevant configuration files
    • Check for YAML syntax errors
    • Look at related configurations (secrets, includes)
  2. Identify the Problem

    • Parse error messages for specific issues
    • Check entity references exist
    • Validate service calls
    • Verify template syntax
    • Check trigger/condition logic
  3. Trace Execution Flow (for automations)

    • Verify trigger conditions are met
    • Check all conditions pass
    • Confirm services are valid
    • Look for mode conflicts
  4. Explain the Issue

    • Describe what's wrong in plain language
    • Explain why it causes the error
    • Show the problematic code
  5. Provide the Fix

    • Show corrected configuration
    • Explain what was changed
    • Warn about potential side effects

Common Issues to Check:

YAML Syntax:

  • Incorrect indentation (must be 2 spaces)
  • Missing colons after keys
  • Quote mismatches
  • Invalid boolean values (use true/false, not True/False)

Entity References:

  • Entity doesn't exist
  • Domain mismatch (light vs switch)
  • Typos in entity_id

Templates:

  • Missing closing brackets
  • Invalid Jinja syntax
  • Undefined variables
  • Type conversion issues

Automations:

  • Trigger never fires (impossible conditions)
  • Conditions always false
  • Service target missing
  • Mode conflicts

Output Format:

## Problem Analysis

**Issue Found:** [Brief description]

**Location:** [File and line number]

**Cause:** [Explanation of why this is wrong]

### Evidence Table

| Check | Result | Evidence |
|-------|--------|----------|
| YAML syntax | ✅/❌ | [output or line number] |
| Entity exists | ✅/❌ | hass-cli state get returned... |
| Service valid | ✅/❌ | hass-cli service list | grep... |
| Template syntax | ✅/❌ | [error message or OK] |

## Current Code (Problem)
```yaml
[The problematic code]

Suggested Fix

[The fixed code]

Note: This is a read-only diagnosis. To apply this fix:

  • For automation issues: Use the ha-automations skill
  • For script issues: Use the ha-scripts skill
  • For scene issues: Use the ha-scenes skill

Explanation

[Detailed explanation of the fix]

Additional Recommendations

[Any other suggestions]


**Quality Standards:**
- Always show both problematic and corrected code
- Explain in terms a non-developer can understand
- Verify fixes don't introduce new issues
- Suggest testing steps after fix
- Always include the evidence table showing what was checked
- Do NOT auto-apply fixes - this agent is diagnostic only
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. 8d ago First seen · 170 lines · 0 tokens per session scan A 0b8e498b6147

Subscribe to this mod's changes

config-debugger is an agent published in the GitHub repository Benny-Lewis/home-assistant-assistant (57 stars, last pushed 3mo ago), licensed MPL-2.0. It adds 45 tokens to every session and 1,182 once invoked, about $0.0002 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.