nina AGENTS.md

nina AGENTS.md is an instructions file for Codex, OpenCode from isbeorn/nina. It costs 2,701 tokens per session, scanned A, original, MPL-2.0.

Repository guidance for contributors and coding agents working in the NINA solution. It explains project boundaries, where documentation belongs, and which files are the source of truth.

In plain words
What is it for?
Finding the right project guidance, understanding the NINA solution structure, and separating code changes from documentation changes in the NINA.Docs submodule.
Why use it?
It reduces confusion about which instructions apply to which projects and where related documentation changes should be made.

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/isbeorn/nina/agents-md
Clone the repo
git clone --depth 1 https://github.com/isbeorn/nina

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/isbeorn/nina/agents-md.svg)](https://agentmods.dev/instructions/isbeorn/nina/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/isbeorn/nina/agents-md"><img src="https://agentmods.dev/badge/instructions/isbeorn/nina/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,701 This file is loaded in full into every session.
When invoked 2,701 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 $0.02701 $0.02701
Opus 5 $0.01350 $0.01350
Sonnet 5 $0.00540 $0.00540
Haiku 4.5 $0.00270 $0.00270

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

Security

Grade A, and why

nina 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 4d 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 · 230 lines

How it starts

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

AGENTS.md

This file is a solution-wide navigation guide for humans and coding agents working in NINA.sln. It complements the per-project ARCHITECTURE.md files and stays focused on boundaries that are backed up by the code.

For repository-wide contribution workflow, branch expectations, release-note updates, and general coding rules, also read CONTRIBUTING.md.

Scope

This guide covers the projects listed in NINA.sln.

Documentation Boundary

  • NINA.Docs is a git submodule declared in .gitmodules and points to https://github.com/isbeorn/nina.docs.git.
  • It is not part of the NINA.sln project architecture documented below.
  • If a code change also requires user-facing documentation updates, handle that separately in the NINA.Docs submodule / nina.docs repository, following the documentation notes in CONTRIBUTING.md.

Repository Knowledge

  • Treat repository-local, versioned files as the system of record for future contributors and coding agents.
  • Keep this file as a map. Put detailed subsystem guidance in the owning ARCHITECTURE.md, CONTRIBUTING.md, or a focused checked-in reference.
  • If a review, bug, or repeated agent mistake reveals a durable rule, update the nearest doc, test, analyzer, script, or route map instead of relying on off-repo memory.

Code Style And Formatting

  • Maintain the existing line-ending style of every touched file; default to CRLF for new files unless the target location dictates LF.
  • Treat the root .editorconfig as the canonical C# style source. It covers indentation, line endings, namespace style, using placement, var preferences, naming, and selected analyzer severities.
  • Do not introduce new warnings casually. If an existing warning blocks a focused cleanup, keep the fix scoped and document any intentional deferral in the PR.
  • For XAML, follow surrounding file style; no repo-wide XAML formatter configuration is checked in.
  • Prefer modern C# supported by the target project. For new or refactored MVVM code, prefer CommunityToolkit.Mvvm where it fits instead of expanding legacy relay-command patterns.

Read the full file on GitHub · 230 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. 4d ago First seen · 230 lines · 2,701 tokens per session scan A 891ae7b3dda4

Subscribe to this mod's changes

nina AGENTS.md is an instructions file published in the GitHub repository isbeorn/nina (227 stars, last pushed 6d ago), licensed MPL-2.0. It adds 2,701 tokens to every session, about $0.0135 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.