overlay AGENTS.md

overlay AGENTS.md is an instructions file for Codex, OpenCode from gentoo-zh/overlay. It costs 8,169 tokens per session, scanned B, original, GPL-2.0.

Repository-specific instructions for gentoo-zh/overlay, a software package repository that contains Gentoo build recipes called ebuilds.

In plain words
What is it for?
Use them when changing packages, updating ebuild versions, following repository conventions, or preparing Git changes in this repository.
Why use it?
They help an agent follow the repository’s layout, Git process, package rules, and version-update requirements.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gentoo-zh/overlay/agents-md.svg)](https://agentmods.dev/instructions/gentoo-zh/overlay/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gentoo-zh/overlay/agents-md"><img src="https://agentmods.dev/badge/instructions/gentoo-zh/overlay/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 8,169 This file is loaded in full into every session.
When invoked 8,169 The same file — it is already loaded in full.
Security scan B 2 findings. Scan, not verified.
Origin unknown 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.08169 $0.08169
Opus 5 $0.04084 $0.04084
Sonnet 5 $0.01634 $0.01634
Haiku 4.5 $0.00817 $0.00817

Measured today against content hash e78d1a7c0bb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

overlay AGENTS.md scanned grade B with 2 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- Do not lecture on a mechanism a Gentoo reviewer already knows; link the upstream source instead.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

上游 `FindLibCURL.cmake` 会在构建时通过 `FetchContent` 下载固定版本的 curl 头文件。Closes #<issue>
AGENTS.md · 420 lines

The source is not reproduced here

Licensed GPL-2.0

The repository is licensed GPL-2.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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 · +6 tokens per session e78d1a7c0bb7
  2. 4d ago First seen · 420 lines · 8,163 tokens per session scan B c3967262c812

Subscribe to this mod's changes

overlay AGENTS.md is an instructions file published in the GitHub repository gentoo-zh/overlay (427 stars, last pushed today), licensed GPL-2.0. It adds 8,169 tokens to every session, about $0.0408 per session on Opus 5. A static security scan graded it B with 2 findings (strips warnings and disclaimers, makes network calls). 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