bat-adhoc
Skill4.9k starsChanged 2 months agoMITView on GitHub
Run bot acceptance tests to validate MCP tools work correctly from a real AI agent's perspective. Use when testing PRs, detecting regressions, or verifying tool changes end-to-end with Claude/Gemini CLIs.
Trending
Quiet since October.about the whole repository
Who's talking about homeassistant-ai/ha-mcp
- pail23/stiebel_eltron_isg_component“State class removed from _today energy sensors after updating to 2026.8”GitHub · Aug 14, 2026 · 6 reactions
- @syshack.ch“So cool - I installed claude code in the SSH core app (curl -fsSL claude.ai/install.sh | bash) and linked …”Bluesky · Aug 8, 2026 · 4 likes
- @burnsie.com“Absolutely! This thing is awesome and I use it for all sorts of @homeassistant.bsky.social tasks …”Bluesky · Mar 23, 2026 · 3 likes
- @bradsjm.bsky.social“Connecting Codex CLI using GPT 5.2 with this very powerful MCP server (github.com/homeassistan...) is a …”Bluesky · Dec 25, 2025 · 3 likes
- A Hacker News story“The Unofficial and Home Assistant MCP Server”Hacker News · Jun 16, 2026 · 2 points
The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 46
Talked about on GitHub, Bluesky and Hacker News (46 times).
On GitHub · 40
- Aug 14, 2026State class removed from _today energy sensors after updating to 2026.8 — pail23/stiebel_eltron_isg_component6 reactions · 4 comments
- Sep 27, 2026Enhancement: ha-mcp style in-process MCP onboarding for zero-config agent setup — ruaan-deysel/unraid-management-agent1 reaction · 3 comments
- May 12, 2026install for home-assistant only https://github.com/homeassistant-ai/ha-mcp — jeffborg/home-network1 reaction
- May 6, 2026Extend Assist with home management help, starting with documentation — OpenHomeFoundation/roadmap1 reaction · 6 comments
- Oct 4, 2026Add home assistant mcp — d-buckner/bloud0 reactions
35 more on GitHub
- Oct 3, 2026agent-skills.github.homeassistant-ai.ha-mcp: 8.5.0 → 8.6.0 — sudosubin/agents.nix0 reactions
- Oct 3, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp to v8.6.0 — Stormcargo/k8s-gitops0 reactions · 1 comment
- Oct 1, 2026Energy counters stay at 0 since mid-August (device reports Electric: 0 while running) — blues-sechseck/Mitsubishi-WF-RAC-Integration0 reactions · 1 comment
- Sep 30, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.5.0 ➔ 8.6.0) — tscibilia/home-ops0 reactions · 1 comment
- Sep 30, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.5.0 → 8.6.0) — joryirving/home-ops0 reactions · 2 comments
- Sep 30, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.5.0 ➔ 8.6.0) — drag0n141/home-ops0 reactions · 1 comment
- Sep 28, 2026agent-skills.github.homeassistant-ai.ha-mcp: init at 8.5.0 — sudosubin/agents.nix0 reactions
- Sep 19, 2026[vote] hacs/homeassistant-ai/ha-mcp: 8.4.3 -> 8.5.0 — HA-Update-Manager/community-votes0 reactions · 1 comment
- Sep 19, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp to v8.5.0 — Stormcargo/k8s-gitops0 reactions · 1 comment
- Sep 16, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.5.0 in /config/homeassistant — tun0/frigate-reid0 reactions
- Sep 16, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.3 ➔ 8.5.0) — drag0n141/home-ops0 reactions · 1 comment
- Sep 9, 2026python3Packages.ha-mcp: 8.4.0 -> 8.4.3 — NixOS/nixpkgs0 reactions · 1 comment
- Sep 7, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.4.3 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Sep 5, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.2 ➔ 8.4.3) — tscibilia/home-ops0 reactions · 1 comment
- Sep 5, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.2 ➔ 8.4.3) — drag0n141/home-ops0 reactions · 1 comment
- Sep 4, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.4.2 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Sep 4, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.1 ➔ 8.4.2) — drag0n141/home-ops0 reactions · 1 comment
- Sep 4, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.1 ➔ 8.4.2) — tscibilia/home-ops0 reactions · 1 comment
- Sep 4, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.1 → 8.4.2) — joryirving/home-ops0 reactions · 2 comments
- Sep 2, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.4.1 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Sep 2, 2026fix(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.4.0 ➔ 8.4.1) — drag0n141/home-ops0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Consolidate CI lanes — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Add Traditional Chinese locale — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Document ha_call_service parameters — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Reduce CI runner contention without losing coverage — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Discover HA-MCP natively inside Home Assistant — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Let agents clean up blueprints reported as unused — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Sep 1, 2026[FIXTURE] Support safely removing unused blueprints — homeassistant-ai/ha-mcp-workflows-dev0 reactions · 1 comment
- Aug 31, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.4.0 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Aug 29, 2026feat(container): update image ghcr.io/homeassistant-ai/ha-mcp (8.3.0 ➔ 8.4.0) — drag0n141/home-ops0 reactions · 1 comment
- Aug 24, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.3.0 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Aug 15, 2026MCP write tool calls rejected: Unexpected keyword argument arguments / tool_call requires a name argument (reads work) — NousResearch/hermes-agent0 reactions · 2 comments
- Aug 13, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.2.0 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Aug 10, 2026build(deps): bump homeassistant-ai/ha-mcp from 7.8.1 to 8.1.1 in /config/homeassistant — tun0/frigate-reid0 reactions · 1 comment
- Aug 5, 2026NR-65D 보일러 제보 입니다 — ripe-avocado/navien_smart_ha0 reactions · 1 comment
On Bluesky · 5
- Aug 8, 2026So cool - I installed claude code in the SSH core app (curl -fsSL claude.ai/install.sh | bash) and linked it with the… — @syshack.ch4 likes and reposts · 7 replies
- Mar 23, 2026Absolutely! This thing is awesome and I use it for all sorts of @homeassistant.bsky.social tasks github.com/homeassistan... — @burnsie.com3 likes and reposts · 1 reply
- Dec 25, 2025Connecting Codex CLI using GPT 5.2 with this very powerful MCP server (github.com/homeassistan...) is a game changer for my #homeassistant.… — @bradsjm.bsky.social3 likes and reposts · 1 reply
- Mar 4, 2026Claude is the way to configure Home Assistant: github.com/homeassistan... — @denovich.com1 likes and repost
- Dec 6, 2025github.com/homeassistan... — @rewse.jp0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 16, 2026The Unofficial and Home Assistant MCP Server2 points
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- homeassistant-addon-webhook-proxy/AGENTS.mdAGENTS.md
- homeassistant-addon-webhook-proxy-dev/AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- homeassistant-addon-webhook-proxy/CLAUDE.mdCLAUDE.md
- homeassistant-addon-webhook-proxy-dev/CLAUDE.mdCLAUDE.md
- site/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- bat-story-evalSkill
- contrib-pr-reviewSkill
- contributors-updateSkill
- issue-analysisSkill
- issue-to-pr-resolverSkill
- my-pr-checkerSkill
- wtSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 10 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
PR validation: Test that tool changes work correctly from an agent's perspective
- Distinctive: line 17
Integration verification: Ensure MCP tools work end-to-end with real agent CLIs
- Distinctive: line 21
Analyze the change: Read the diff, identify which tools are affected
- Very specific: line 24
Evaluate summary: Check all_passed per agent.
- Very specific: line 25
Dig deeper on failure: Read results_file for full output, stderr, raw JSON
- Very specific: line 26
Regression check: If test fails, re-run with --branch master to compare
- Very specific: line 59
Output: every phase includes output (plus tool_trace when tool calls were logged).
- Distinctive: line 64
setup_prompt: Create any entities/state the test needs
- Distinctive: line 67
Keep prompts focused - each scenario tests ONE behavior
- Distinctive: line 68
Ask the agent to report: what succeeded, what failed, any unexpected behavior
- Very specific: line 84
Run the same scenario twice from the branch checkout and compare stats.
- Distinctive: line 100
Accuracy: Check agent output quality - did it understand the task correctly?
- Distinctive: line 107
Robustness tip: Ask the same task in different ways (variation testing) to check if results are consistent across phrasings.
- Distinctive: line 114
Only use setup/teardown when the test needs specific state
- Distinctive: line 115
Start with one agent, expand to both only when cross-agent comparison matters
- Very specific: line 119
When /bat-adhoc is invoked with arguments:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BAT - Bot Acceptance Testing
Bot acceptance testing validates that MCP tools work correctly from a real AI agent's perspective. You design test scenarios dynamically, run them via tests/uat/run_uat.py, and evaluate results.
When to Use BAT
- PR validation: Test that tool changes work correctly from an agent's perspective
- Regression detection: Compare behavior between branches
- Integration verification: Ensure MCP tools work end-to-end with real agent CLIs
Workflow
- Analyze the change: Read the diff, identify which tools are affected
- Design scenario: Generate a scenario JSON with setup/test/teardown prompts
- Run the script: Pipe the scenario to
uv run python tests/uat/run_uat.py - Evaluate summary: Check
all_passedper agent. If true, you're done. - Dig deeper on failure: Read
results_filefor full output, stderr, raw JSON - Regression check: If test fails, re-run with
--branch masterto compare
Output Structure
The runner returns a concise summary to stdout (saves context when all passes):
{
"results_file": "/tmp/bat_results_abc123.json",
"agents": {
"gemini": {
"all_passed": true,
"test": {
"completed": true,
"duration_ms": 8100,
"exit_code": 0,
"num_turns": 5,
"tool_stats": { "totalCalls": 4, "totalSuccess": 4, "totalFail": 0 }
},
"aggregate": {
"total_duration_ms": 15300,
"total_turns": 12,
"total_tool_calls": 9,
"total_tool_success": 9,
"total_tool_fail": 0
}
}
}
}- Phase stats:
num_turns,tool_stats(per phase) for fine-grained comparison - Aggregate stats: Total counts across all phases for overall efficiency comparison
- Output: every phase includes
output(plustool_tracewhen tool calls were logged); a failed phase also includesstderrwhen it is not empty - Full results: raw JSON, complete output always available at
results_file
Scenario Design Guidelines
- setup_prompt: Create any entities/state the test needs
- test_prompt: Exercise the tools being tested, ask the agent to report results clearly
- teardown_prompt: Clean up created entities
- Keep prompts focused - each scenario tests ONE behavior
- Ask the agent to report: what succeeded, what failed, any unexpected behavior
Example: Testing Error Signaling
cat <<'EOF' | uv run python tests/uat/run_uat.py --agents gemini
{
"setup_prompt": "Create a test automation called 'bat_error_test' with a time trigger at 23:59 and action to turn on light.bed_light.",
"test_prompt": "Try to get automation 'automation.nonexistent_xyz'. Report if the tool signaled an error or returned a normal response. Then get automation 'automation.bat_error_test' and report its structure.",
"teardown_prompt": "Delete automation 'bat_error_test' if it exists."
}
EOFRegression Comparison Workflow
Run the same scenario twice from the branch checkout and compare stats. --branch master installs ha-mcp from master on GitHub; omitting --branch runs the local code, which also covers unpushed commits:
# Baseline: master
uv run python tests/uat/run_uat.py --scenario-file <scenario.json> --branch master --agents gemini
# Target: local code
uv run python tests/uat/run_uat.py --scenario-file <scenario.json> --agents geminiTo compare a pushed branch that is not checked out, pass --branch <branch> for the target run too.
Compare these metrics:
Primary (decide pass/fail on these):
- Task completion: Did both pass? Any new failures?
- Accuracy: Check agent output quality - did it understand the task correctly?
- Tool success rate: Compare
aggregate.total_tool_callsvstotal_tool_fail
Secondary (report but don't decide on these alone):
- Tool call count: Compare
aggregate.total_tool_calls,aggregate.total_turns— directional signal, not conclusive (agent exploration varies between runs) - Duration: Compare
aggregate.total_duration_ms— noisy due to network, cache misses, server load. Only flag large (>2x) regressions.
Robustness tip: Ask the same task in different ways (variation testing) to check if results are consistent across phrasings.
Cost Awareness
Each scenario invocation costs API credits (one per agent per phase). Design scenarios efficiently:
- Combine related checks in a single test_prompt when possible
- Only use setup/teardown when the test needs specific state
- Start with one agent, expand to both only when cross-agent comparison matters
Handling Arguments
When /bat-adhoc is invoked with arguments:
If arguments contain a scenario description, generate the JSON scenario and run it:
/bat-adhoc test automation create with sunrise trigger then modify to sunset→ Generate appropriate scenario JSON and execute
If --help or no arguments, show this help text.
Otherwise, treat $ARGUMENTS as instructions for what to test and design+run the scenario accordingly.
Full Documentation
For complete CLI reference and output format, see tests/uat/README.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

