monorepo AGENTS.md

monorepo AGENTS.md is an instructions file for Codex, OpenCode from lootlog/monorepo. It costs 1,485 tokens per session, scanned A, original, MIT.

A project instruction document for a monorepo, a single repository containing multiple related applications or packages.

In plain words
What is it for?
Use it when modifying code in the monorepo, especially frontend work, shared packages, APIs, authentication, or public-facing features.
Why use it?
It tells coding agents which documents and rules govern changes across the repository and which product, architecture, security, and design references to read.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lootlog/monorepo/agents-md.svg)](https://agentmods.dev/instructions/lootlog/monorepo/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lootlog/monorepo/agents-md"><img src="https://agentmods.dev/badge/instructions/lootlog/monorepo/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,485 This file is loaded in full into every session.
When invoked 1,485 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.01485 $0.01485
Opus 5 $0.00743 $0.00743
Sonnet 5 $0.00297 $0.00297
Haiku 4.5 $0.00148 $0.00148

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

Security

Grade A, and why

monorepo 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 3d 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 · 159 lines

How it starts

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

AI agent instructions

These instructions apply to every workspace unless a closer AGENTS.md overrides a rule for its subtree.

Authority and required context

Apply instructions in this order:

  1. the closest AGENTS.md to the file being changed;
  2. parent AGENTS.md files up to this root;
  3. canonical repository documents linked below;
  4. repository skills in .agents/skills;
  5. generic or external skills;
  6. lint, tests, and CI as mechanical enforcement.

A local instruction may strengthen or replace a root rule only when it states the exception explicitly.

Read the documents relevant to the change:

PRODUCT.md and target sections in ARCHITECTURE.md are design constraints, not proof that a feature already exists. Do not describe target behavior as implemented until code and verification agree.

CodeGraph

In repositories indexed by CodeGraph (a .codegraph/ directory exists at the repo root), use it before grep/find or reading source files when you need to understand or locate code:

  • MCP: use codegraph_explore for symbols, source, and call paths, or codegraph_node for one symbol or source file.
  • Shell: use codegraph explore "<question>" or codegraph node <symbol-or-file>.

If .codegraph/ does not exist, skip CodeGraph. Indexing is the user's decision.

Read the full file on GitHub · 159 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. 3d ago First seen · 159 lines · 1,485 tokens per session scan A 3bc27620313d

Subscribe to this mod's changes

monorepo AGENTS.md is an instructions file published in the GitHub repository lootlog/monorepo (10 stars, last pushed 3d ago), licensed MIT. It adds 1,485 tokens to every session, about $0.0074 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-31.

Related

Other instructions, from other repositories