- Write migration plan
- Agent edits in batches
- Tests per batch
Ship a 40-file refactor with a coding agent
Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Adam uses Claude Code via an MCP server to search entities, read automation traces and build and debug automations like a shed motion light.
“Manage Home Assistant automations with Claude Code” is a Life Admin & Home AI agent workflow from Any. It connects Claude Code in 3 steps.
Adam uses Claude Code via an MCP server to search entities, read automation traces and build and debug automations like a shed motion light.
Adam keeps his Home Assistant automations as YAML files in a git repo. Claude Code reaches HA through an MCP server to search entities, read traces and reload configs. For each change it edits the file, copies it to HA with scp, reloads automations and commits. For the shed motion light, it first planned: it read his existing motion automations, checked for conflicts and asked clarifying questions.
A noisy camera automation was traced to home-to-home GPS updates and fixed in under two minutes. A brightness tweak took four messages. The shed light automation snapshots each light's state, so lights that were already on stay on.
He wrote project skills files covering his conventions and known device quirks, which Claude loads automatically. This helps it match existing patterns.
Connect to my Home Assistant instance at [URL] through an MCP server using the access token I'll provide. Search my entities for [room or device type], then help me build an automation that [describe trigger and action, e.g. turns on the shed light when motion is detected after dark]. Show me the automation before you save it, and if something misbehaves, read the trace and explain what went wrong. Stop when the automation runs correctly in a test.
Adam uses Claude Code via an MCP server to search entities, read automation traces and build and debug automations like a shed motion light.
You need Claude Code.
The guide walks through 3 steps, starting with “What they did”.
Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.
Claude Code reads your coverage report, picks the riskiest untested modules and writes unit tests that pass, one small PR at a time.
A shell hook that turns command-not-found errors into coding-agent prompts while still catching typos.
Via Hacker News · quan ↗Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges