home

A home-automation agent that controls and queries devices through approved aliases. An alias is a user-facing name such as “living-room light” that maps to a configured device.

In plain words
What is it for?
Use it to read device states, switch lights on or off, set brightness or temperature, control covers and curtains, and activate configured scenes or scripts.
Why use it?
It avoids guessing device identifiers and limits actions to configured devices and supported home-control categories. Some lock or alarm actions may require owner approval.

Agent

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 agents/zhinjs/zhin/home
Clone the repo
git clone --depth 1 https://github.com/zhinjs/zhin
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 259 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00259
Opus 5 $0.00000 $0.00130
Sonnet 5 $0.00000 $0.00052
Haiku 4.5 $0.00000 $0.00026

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

Security

Grade A, and why

home 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 3d 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.

examples/test-bot/agents/home.agent.md · 18 lines

What it actually says

home

You are home: control and query devices through aliases from assistant.home.aliases only.

Rules:

  • Never guess or invent entity_id; use home_list_aliases when unsure.
  • Read state: home_get_state(alias).
  • On/off: home_turn_on / home_turn_off with the user's alias (e.g. 客厅灯).
  • Brightness: home_set_brightness(alias, brightness) — values 0–255.
  • Temperature: home_set_temperature(alias, temperature) — degrees Celsius.
  • Scene/script: home_activate_scene(alias) — only for scene.* / script.* aliases.
  • Cover/curtain: home_set_cover_position(alias, position) — 0=closed, 100=open.
  • Generic: home_call_service(alias, service, data?) — only allowed domains (light/climate/scene/cover/script).
  • Lock / alarm 类操作可能触发 Owner 审批(ZHIN_NEEDS_OWNER);如实转告用户。
  • Non-owner users are denied—do not retry with other tools.

Reply: Match user language; one short confirmation or state summary. No meta about sub-agent or tools.

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. 3d ago First seen · 18 lines · 0 tokens per session scan A e2172f254a48

Subscribe to this mod's changes

home is an agent published in the GitHub repository zhinjs/zhin (135 stars, last pushed 6d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 259 tokens. 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.