notes: Instructions file for Codex

AGENTS.md

notes AGENTS.md is an instructions file for Codex, OpenCode from sabertaz/notes. It costs 583 tokens per session, scanned A, original, MIT.

Project instructions for Notes, a TIL website: “Today I Learned” means a collection of short notes about things someone has learned. The instructions cover its Docusaurus and TypeScript setup, content folders, formatting, and commits.

In plain words
What is it for?
Use them when adding or editing Markdown or MDX notes, running the development server or build, checking code style, or making commits.
Why use it?
They tell a coding agent where notes belong and which structure and metadata they must use. This avoids broken navigation, invalid content, and inconsistent changes.

Instructions file for CodexOpenCode

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

This is sabertaz/notes's own configuration. It tells Codex and OpenCode how to work on notes 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 notes configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sabertaz/notes. 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/sabertaz/notes/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sabertaz/notes

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sabertaz/notes/agents-md"><img src="https://agentmods.dev/badge/instructions/sabertaz/notes/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 583 This file is loaded in full into every session.
When invoked 583 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.00583 $0.00583
Opus 5.5 $0.00233 $0.00233
Sonnet 5.5 $0.00117 $0.00117
Haiku 4.5 $0.00058 $0.00058

Measured 2mo ago against content hash 99cc2ebb0aa9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

notes 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 2mo 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 · 56 lines

How it starts

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

AGENTS.md

This file provides guidance to coding agents when working with code in this repository.

Project Overview

Notes is a TIL (Today I Learned) documentation website built with Docusaurus. It serves as a comprehensive knowledge repository covering AI, CS, web, programming, and more.

Tech Stack: Docusaurus + TypeScript + shadcn + pnpm + React

Structure: content/{AI,CS,Web,Language,Programming}/{topic}/{file}.md

Development Commands

Command Description
pnpm dev Start dev server
pnpm build Build for production
pnpm lint Run all linters
pnpm lint:fix Auto-fix issues

Content Guidelines

  • Notes are Markdown files in content/ directory
  • Require frontmatter: tags: [Category, Subcategory]
  • Supports MDX, KaTeX math ($inline$, $$block$$), Mermaid diagrams
  • Sidebar autogenerated from directory structure

Commit Guidelines

Follows Conventional Commits format:

  • Types: feat (new note or domain), fix (updates to existing notes), perf, test, ci, chore
  • Scope:
    • CRITICAL: Only 1-2 levels allowed, maximum one - separator
    • Single file: Extract from filename omitting top-level (e.g. react-hooks)
    • Multi-area changes: Use top-level category (e.g., web-react, cs-algorithm)
  • Description: the actual knowledge/concept name, extracted from headings, code examples, or explanatory text
  • Key principle:
    • NEVER use structural words like section, content, notes in description
    • NEVER use action verbs like add, update, remove, delete, modify in description

Examples:

File Path Scope (1-2 levels only) Description
content/web/react/hooks/event.md react-hooks useEffectEvent latest value
content/language/rust/ownership.md rust-ownership borrow checker rules
content/cs/algorithm/sort.md algorithm-sort quick sort partition
content/ai/gen/gpt.md + content/ai/gen/claude-code.md ai-gen comparison of models

Read the full file on GitHub · 56 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. 2mo ago First seen · 56 lines · 583 tokens per session scan A 99cc2ebb0aa9

Subscribe to this mod's changes

notes AGENTS.md is an instructions file published in the GitHub repository sabertaz/notes (48 stars, last pushed 22d ago), licensed MIT. It adds 583 tokens to every session, about $0.0023 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-30.

Related

notes AGENTS.md compared with instructions from other repositories

notes AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
notes AGENTS.mdsabertaz/notesInstructions file4822d agoMITA583Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode