zmNinjaNg AGENTS.md

zmNinjaNg AGENTS.md is an instructions file for Codex, OpenCode from ZoneMinder/zmNinjaNg. It costs 1,192 tokens per session, scanned A, original, Apache-2.0.

Development instructions for ZoneMinder and zmNinjaNg, including coding rules, project processes, and important safety requirements. They require rules to state why they exist and how to check them.

In plain words
What is it for?
Use them when developing or reviewing this project, defining rules for agents, handling trust-boundary input, or planning changes through the project’s issue process.
Why use it?
They preserve security, accessibility, validation, error handling, and recovery requirements that can be lost when code is simplified.

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/zoneminder/zmninjang/agents-md
Clone the repo
git clone --depth 1 https://github.com/ZoneMinder/zmNinjaNg

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zoneminder/zmninjang/agents-md.svg)](https://agentmods.dev/instructions/zoneminder/zmninjang/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zoneminder/zmninjang/agents-md"><img src="https://agentmods.dev/badge/instructions/zoneminder/zmninjang/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,192 This file is loaded in full into every session.
When invoked 1,192 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.01192 $0.01192
Opus 5 $0.00596 $0.00596
Sonnet 5 $0.00238 $0.00238
Haiku 4.5 $0.00119 $0.00119

Measured 5d ago against content hash cad58d14793c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

zmNinjaNg 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 5d 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.

AGENTS.md · 106 lines

How it starts

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

Development Guidelines

Portable core. This file contains no project-specific names and copies verbatim into any project. Load order: this file, then AGENTS.project.md (architecture contracts, project rules, verification commands, playbooks), then the playbook it lists for your work area.

Adopting this core in another project: copy this file unchanged, then write your own AGENTS.project.md and the gates it names. Project facts never belong in this file.

Rule format

Every rule is a statement, a one-clause why, and a gate. A rule a script could check but names no gate is a defect here. Rules carry stable IDs by tier; docs reference IDs, never copied text.

Invariants (never simplified away)

  • I1. Validate at trust boundaries: server responses, user input, IPC. Malformed input is routine, not rare.
  • I2. Destructive operations need error handling and a recovery path. Lost user data cannot be patched later.
  • I3. Security and accessibility are never traded for simplicity or speed. Gate: blocking accessibility and correctness lints.

Process

  • P1. Create or use an issue before feature or bug work, after checking the out-of-scope ledger; land through an issue-linked PR whose body quotes the issue's acceptance lines. Commits reference the issue; closing keywords only after the user confirms. If instructed to push directly to the default branch, do so and verify the issue timeline. Typo-level fixes and doc corrections with no behavior change need no issue.
  • P2. Test first: a failing test precedes the implementation of every feature and bugfix. A test that has never failed does not demonstrate it can catch the bug. Changes an existing gate already covers fully rely on that gate instead of a bespoke new test. Gate: the proven-red CI job runs each change's tests against the pre-change code and fails when they pass.
  • P3. Run the gates covering the change before every commit; run the full suite before push or PR. Never commit after a failed or unrun gate.
  • P4. Read failures and fix the cause. Never blindly retry.
  • P5. One logical change per conventional commit.
  • P6. Verification runs direct commands. Tooling that transforms output, such as wrappers, compressors, or summarizers, is untrusted until validated once against raw output.
  • P7. Finish the requested behavior. Materially different UX options need approval before choosing.
  • P8. Never merge the default branch without approval.
  • P10. Docs move with behavior: user docs for changed behavior, developer docs and call flows for new APIs, components, hooks, and utilities. All prose reads like a developer explaining to a colleague: no marketing language, filler, headline headings, aphorisms, or news cadence.

Read the full file on GitHub · 106 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. 5d ago First seen · 106 lines · 1,192 tokens per session scan A cad58d14793c

Subscribe to this mod's changes

zmNinjaNg AGENTS.md is an instructions file published in the GitHub repository ZoneMinder/zmNinjaNg (108 stars, last pushed today), licensed Apache-2.0. It adds 1,192 tokens to every session, about $0.0060 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.