OVO_Aus_api AGENTS.md

OVO_Aus_api AGENTS.md is an instructions file for Codex, OpenCode from HallyAus/OVO_Aus_api. It costs 2,256 tokens per session, scanned A, original, MIT.

Project-specific instructions for maintaining a Home Assistant integration that retrieves OVO Energy Australia usage, billing, and electric-vehicle data. Home Assistant is software for automating and monitoring smart homes.

In plain words
What is it for?
Running, changing, and releasing the integration while preserving its supported software versions, authentication behavior, sensor data, entity names, and privacy protections.
Why use it?
It explains the project's technical constraints and the risks of changes that could break users' dashboards, energy history, login, or private account data.

Instructions file for CodexOpenCode

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 instructions/hallyaus/ovo_aus_api/agents-md
Clone the repo
git clone --depth 1 https://github.com/HallyAus/OVO_Aus_api

Made for: Codex, OpenCode.

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 OVO_Aus_api AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hallyaus/ovo_aus_api/agents-md.svg)](https://agentmods.dev/instructions/hallyaus/ovo_aus_api/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hallyaus/ovo_aus_api/agents-md"><img src="https://agentmods.dev/badge/instructions/hallyaus/ovo_aus_api/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,256 This file is loaded in full into every session.
When invoked 2,256 The same file — it is already loaded in full.
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.1 $0.02256 $0.02256
Opus 5 $0.01128 $0.01128
Sonnet 5 $0.00451 $0.00451
Haiku 4.5 $0.00226 $0.00226

Measured today against content hash 74d2d58012dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

OVO_Aus_api AGENTS.md 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.

AGENTS.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OVO Energy Australia (HA integration) — agent brief

Home Assistant custom integration that pulls OVO Energy Australia usage/billing/EV data via OVO's GraphQL API and exposes it as sensors. Installed by real strangers through HACS. Status: live — public repo HallyAus/OVO_Aus_api, latest release v4.9.0 (2026-08-27) · verified 2026-08-27

What a mistake costs

Every release lands in strangers' Home Assistant installs. A bad one breaks their dashboards, their Energy Dashboard history, or their login — and they cannot roll back easily. The integration handles a cleartext MyOVO password and account PII (NMI, address, account ID, VIN, GPS). Leaking any of it into logs, entity attributes, or diagnostics is the worst outcome here; Recorder persists attributes to disk forever. Renaming or deleting an entity silently breaks user dashboards and long-term statistics. Referral income is the only funding, so repo reputation matters.

Stack

  • Python 3.11+, aiohttp + PyJWT only. PyJWT>=2.13,<3 is pinned — 3.x breaks the API surface.
  • Home Assistant 2026.8.3 minimum. A 2026.6.2 Container installation could not resolve the pinned PyJWT requirement; upgrading to 2026.8.3 fixed setup (#81).
  • Auth is Auth0 OAuth2 + PKCE scraping the HTML login form, not a public API. See archived notes for the 6-step flow.
  • EV data comes from a separate Kaluza/Firebase token chain, account-scoped — NOT the MyOVO access token.
  • Tests mock the entire homeassistant package in tests/conftest.py. HA is not installed; pip install homeassistant is unnecessary.
  • ruff (line-length 120, E501 ignored) + mypy + pre-commit with detect-secrets.
  • Distribution is HACS, which installs from the latest GitHub release tag — never from main.

Run it

python -m pytest tests/ -q                      # 169 tests, no HA needed
python -m pytest tests/test_analytics.py -v -k name
ruff check custom_components/ovo_energy_au/
mypy custom_components/ovo_energy_au/
pre-commit run --all-files

Read the full file on GitHub · 123 lines

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. today Changed · +10 lines · +126 tokens per session 74d2d58012dd
  2. 5d ago First seen · 113 lines · 2,130 tokens per session scan A fab05f78b2cf

Subscribe to this mod's changes

OVO_Aus_api AGENTS.md is an instructions file published in the GitHub repository HallyAus/OVO_Aus_api (23 stars, last pushed today), licensed MIT. It adds 2,256 tokens to every session, about $0.0113 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.

Related

Other instructions, from other repositories