learn-agent: Instructions file for Codex

AGENTS.md

learn-agent AGENTS.md is an instructions file for Codex, OpenCode from LienJack/learn-agent. It costs 882 tokens per session, scanned A, original, MIT.

Repository instructions for an Astro content website, covering its folders, commands, coding rules, and testing practices.

In plain words
What is it for?
Use them when changing pages, layouts, components, blog content, styles, assets, builds, or tests in this repository.
Why use it?
They give a coding agent the project context and working rules it needs to make changes consistently.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 learn-agent AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lienjack/learn-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/lienjack/learn-agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 882 This file is loaded in full into every session.
When invoked 882 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.00882 $0.00882
Opus 5.5 $0.00353 $0.00353
Sonnet 5.5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

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

Security

Grade A, and why

learn-agent 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 · 43 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This repository is an Astro-based content site. Application code lives in src/: pages in src/pages/, shared layouts in src/layouts/, UI components in src/components/, styles in src/styles/, and site constants in src/consts.ts. Blog content is stored in src/content/blog/ and validated through src/content.config.ts. Static assets that should be served directly belong in public/; bundled images and fonts belong in src/assets/. Planning and design notes live in docs/.

Build, Test, and Development Commands

  • This project uses pnpm as the default package manager. Prefer pnpm commands and keep pnpm-lock.yaml authoritative; do not update package-lock.json for normal dependency changes.
  • pnpm install — install dependencies; use Node.js >=22.12.0 as defined in package.json.
  • pnpm dev — start the local Astro dev server at http://localhost:4321.
  • pnpm build — generate the production site into dist/.
  • pnpm preview — serve the built output locally for a final check.
  • pnpm astro check — run Astro’s project checks when validating routes, content, and types.

Coding Style & Naming Conventions

Follow the existing style: TypeScript, Astro, and CSS use tabs for indentation. Name Astro components in PascalCase, for example BaseHead.astro; React components also use PascalCase and live in focused folders such as src/components/home/HomePage.tsx. Keep constants in uppercase snake case when exported globally, such as SITE_TITLE. Use kebab-case for content filenames like welcome.md. Prefer small, composable components and keep copy or content-specific data close to the page or component that uses it.

Testing Guidelines

There is no dedicated test suite yet. Before opening a PR, run pnpm build and pnpm astro check to catch content schema, routing, and type issues. When adding tests in the future, place them near the feature they cover or under a clear tests/ directory, and use names that mirror the target module.

Read the full file on GitHub · 43 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 · 43 lines · 882 tokens per session scan A c9c60d0e9855

Subscribe to this mod's changes

learn-agent AGENTS.md is an instructions file published in the GitHub repository LienJack/learn-agent (26 stars, last pushed 3mo ago), licensed MIT. It adds 882 tokens to every session, about $0.0035 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

learn-agent AGENTS.md compared with instructions from other repositories

learn-agent AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learn-agent AGENTS.mdLienJack/learn-agentInstructions file263mo agoMITA882Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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