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.
npx agentmods add commands/naanyabiz/haggle/new-entitygit clone --depth 1 https://github.com/NaanyaBiz/haggleWrote 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.
[](https://agentmods.dev/commands/naanyabiz/haggle/new-entity)<a href="https://agentmods.dev/commands/naanyabiz/haggle/new-entity"><img src="https://agentmods.dev/badge/commands/naanyabiz/haggle/new-entity.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00281 |
| Opus 5 | $0.00000 | $0.00140 |
| Sonnet 5 | $0.00000 | $0.00056 |
| Haiku 4.5 | $0.00000 | $0.00028 |
Grade A, and why
new-entity 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 today.
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.
What it actually says
/new-entity
Scaffold a new sensor entity with tests.
Usage
/new-entity <key> <translation_key> <device_class> <state_class> <unit>
Example:
/new-entity consumption_cost consumption_cost MONETARY TOTAL_INCREASING AUD
Steps
- Add a new
SensorEntityDescriptionentry toSENSOR_DESCRIPTIONSincustom_components/haggle/sensor.pywith the provided params. - Add the key constant to
custom_components/haggle/const.py(follow theDATA_*naming pattern). - Add the translation key to
custom_components/haggle/strings.jsonandcustom_components/haggle/translations/en.json. - Add the key to the coordinator's mock return value in
tests/test_init.py(_COORDINATOR_DATA). - Invoke the
ha-test-writersubagent to write a dedicated test for the new sensor. - Invoke the
energy-domain-expertsubagent if the entity touches the Energy dashboard (device_class=ENERGY or MONETARY). - Run
uv run ruff check --fix custom_components/ tests/ && uv run mypy custom_components/haggle && uv run pytestand fix any issues before reporting done.
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.
- today First seen · 25 lines · 0 tokens per session scan A 89e68230ba90
new-entity is a command published in the GitHub repository NaanyaBiz/haggle (13 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 281 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-09-04.
Other commands, from other repositories
devices
List registered Reolink aliases (from /.config/reolink-cli/aliases.toml).
scan
Discover Reolink devices on the local network (UDP broadcast, 2s).
status
Reolink observability dashboard (fleet + gateway + monitor + cache + recent events).
issues
Triage/fix the GitHub issue backlog via branch + PR, with auto-merge on green CI for this session.
release
Cut a release: follow the ha-release skill's procedure end to end.
add-ha-entity
Step-by-step guide to add a new Home Assistant entity with MQTT auto-discovery.