Borrowing it
Nothing to install: this file belongs to uilibs/uiprotect. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/uilibs/uiprotect/main/AGENTS.mdgit clone --depth 1 https://github.com/uilibs/uiprotectWrote 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/instructions/uilibs/uiprotect/agents-md)<a href="https://agentmods.dev/instructions/uilibs/uiprotect/agents-md"><img src="https://agentmods.dev/badge/instructions/uilibs/uiprotect/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/uilibs/uiprotect/agents-md"><img src="https://agentmods.dev/badge/instructions/uilibs/uiprotect/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.06455 | $0.06455 |
| Opus 5.5 | $0.02582 | $0.02582 |
| Sonnet 5.5 | $0.01291 | $0.01291 |
| Haiku 4.5 | $0.00645 | $0.00645 |
Grade A, and why
uiprotect 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 20d 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.
How it starts
The opening of the file, as written. The whole thing — 479 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Notes for LLM contributors
A short orientation file for an LLM working in this repo. Skim before making changes; keep edits consistent with what's described here. Read README.md for the user-facing intro and CONTRIBUTING.md for the human-facing contributor guide.
What this project is
uiprotect is an unofficial async Python client + CLI for the
UniFi Protect surveillance NVR. It is the library that the Home
Assistant unifiprotect integration is built on top of, and it
is the de-facto Python binding for talking to a UniFi Protect
console — Ubiquiti does not publish an official one. Public API
is exported from the top-level uiprotect package; the main
entry point is uiprotect.ProtectApiClient in src/uiprotect/api.py.
There is no upstream protocol owner. The wire format is whatever
the UniFi Protect server in front of you serves: a partially
documented REST API plus a binary WebSocket update stream. Both
shift across firmware releases, and the test corpus under
tests/sample_data/ is the closest thing to a reference. Behaviour
changes that depend on a specific Protect firmware version should
say so in the commit message.
The project was forked from pyunifiprotect after that project
relicensed away from MIT; staying MIT-licensed is a hard
requirement so the Home Assistant core integration can keep
depending on it.
Code style
- Docstrings: terse, default to single-line. A docstring is
the function's contract, not its narrative. Almost every
docstring should be one line —
"""Summary."""— describing what the function does and what the caller can pass. Multi-line is the exception, only justified when there is non-obvious caller-visible behaviour the type signature and parameter names don't already convey. Ruff is configured with most of theDfamily disabled (D100–D107,D2xx,D4xx) precisely so that missing docstrings on internal helpers don't flag — only add one when it earns its keep.
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.
- 20d ago Changed · +17 lines · +267 tokens per session 1c76904ca6b5
- 1mo ago Changed · +2 lines · +21 tokens per session 00cfdc588d71
- 1mo ago Changed · -3 tokens per session eaa5c9cabe88
- 2mo ago First seen · 460 lines · 6,170 tokens per session scan A 186ec49e3321
uiprotect AGENTS.md is an instructions file published in the GitHub repository uilibs/uiprotect (105 stars, last pushed yesterday), licensed MIT. It adds 6,455 tokens to every session, about $0.0258 per session on Opus 5.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.
uiprotect AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uiprotect AGENTS.mduilibs/uiprotect | Instructions file | 105 | yesterday | MIT | A | 6,455 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |