yangmap: Instructions file for Codex

AGENTS.md

yangmap AGENTS.md is an instructions file for Codex, OpenCode from FODYZ/yangmap. It costs 604 tokens per session, scanned A, original, MIT.

A repository instruction file that records project-specific knowledge for coding agents, including naming rules and build and test guidance.

In plain words
What is it for?
Use it to guide agent work on the FODYZ/yangmap project, especially around language conventions, API names, validation, and maintenance notes.
Why use it?
It keeps important decisions and cautions with the code, so agents do not repeat past mistakes or rename externally used interfaces by accident.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is FODYZ/yangmap's own configuration. It tells Codex and OpenCode how to work on yangmap itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything yangmap configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FODYZ/yangmap. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FODYZ/yangmap/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/FODYZ/yangmap

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fodyz/yangmap/agents-md/github.svg)](https://agentmods.dev/instructions/fodyz/yangmap/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/fodyz/yangmap/agents-md"><img src="https://agentmods.dev/badge/instructions/fodyz/yangmap/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.

agentmods 80×15 button for yangmap AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fodyz/yangmap/agents-md"><img src="https://agentmods.dev/badge/instructions/fodyz/yangmap/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 604 This file is loaded in full into every session.
When invoked 604 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00604 $0.00604
Opus 5.5 $0.00242 $0.00242
Sonnet 5.5 $0.00121 $0.00121
Haiku 4.5 $0.00060 $0.00060

Measured 17d ago against content hash c3f54c6d3109, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

yangmap 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 17d 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 · 46 lines

How it starts

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

AGENTS.md — yangmap

Serveur MCP hors ligne qui dit quel chemin gNMI porte quelle information, par vendeur et version d'OS, à partir du YANG publié. Ne se connecte à aucun équipement : pas de credentials, pas d'inventaire, pas de socket. Page wiki : [[yangmap]].

Commandes

  • Installation : python3 -m venv .venv && .venv/bin/pip install -e ".[dev]".
  • .venv/bin/python -m pytest -m "not lab" — la suite hors ligne, avant tout commit.
  • pytest -m build — nécessite pyang (extras dev/build) et un bundle téléchargé sous ~/.yangmap.
  • pytest -m lab — nécessite un containerlab réel et netlive installés (variables d'environnement dans le docstring de tests/test_integration_netlive.py).
  • CLI : yangmap fetch <plateforme> <version> (la seule commande qui touche le réseau), puis yangmap build <plateforme> (index, ensuite hors ligne).

Fichiers et dossiers

  • yangmap/search.py — recherche ; le lexique français → anglais (LEXIQUE) est une fonctionnalité, pas des reliquats.
  • goldenset/golden.yaml — le jeu d'or.
  • docs/VALIDATION-2026-08-10.md — le consommateur netlive appelle yang_chercher/yang_detail par leur nom.

Pièges et accords

  • Surface API volontairement en français : sous-commandes chercher/ detail, outils MCP yang_chercher/yang_detail, champs JSON (plateforme, chemin, bundle_servi, ecart, …). Ne pas renommer sans vérifier les consommateurs externes : c'est une cassure d'API, pas une traduction. Les question: du golden set et les requêtes de test en français non plus.
  • Les tests qui matchent des sous-chaînes de messages sont couplés au texte (anglais) de yangmap/*.py : avant de changer un message, grep la suite de tests pour l'ancien substring.
  • pyang s'ajoute ponctuellement via uv run --with pyang pour le build de l'index, jamais comme dépendance runtime (invariant de poids).
  • Un changement de contrat peut casser netlive : rejouer les suites des deux dépôts.
  • Le recalibrage du golden set exige une raison écrite documentée.
  • Aucune credential ni fichier .env dans l'index YANG généré.

Read the full file on GitHub · 46 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. 17d ago Changed · -13 lines · -237 tokens per session c3f54c6d3109
  2. 1mo ago Changed · -1 lines · +3 tokens per session f3ea28599db0
  3. 2mo ago Changed · +14 lines · +216 tokens per session f26a9bfb5f26
  4. 2mo ago First seen · 46 lines · 622 tokens per session scan A 741f02309822

Subscribe to this mod's changes

yangmap AGENTS.md is an instructions file published in the GitHub repository FODYZ/yangmap (0 stars, last pushed 18d ago), licensed MIT. It adds 604 tokens to every session, about $0.0024 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-31.

Related

yangmap AGENTS.md compared with instructions from other repositories

yangmap AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yangmap AGENTS.mdFODYZ/yangmapInstructions file018d agoMITA604Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot