english-immersion-reader: Instructions file for Codex

AGENTS.md

english-immersion-reader AGENTS.md is an instructions file for Codex, OpenCode from rayw-lab/english-immersion-reader. It costs 1,191 tokens per session, scanned A, original, MIT.

A set of instructions for creating English deep-reading pages from segment data. It is designed for people using a coding agent on a desktop or laptop.

In plain words
What is it for?
Use it when generating or updating segments.json files for static English reading pages. It guides desktop layouts, Chinese learner explanations, and selection-card behavior.
Why use it?
It gives the agent clear rules about the intended audience, supported screen sizes, language, and required page data. This helps prevent unsuitable mobile layouts or missing content.

Instructions file for CodexOpenCode

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

This is rayw-lab/english-immersion-reader's own configuration. It tells Codex and OpenCode how to work on english-immersion-reader 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 english-immersion-reader configures →

Reuse

Borrowing it

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

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 english-immersion-reader AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rayw-lab/english-immersion-reader/agents-md"><img src="https://agentmods.dev/badge/instructions/rayw-lab/english-immersion-reader/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,191 This file is loaded in full into every session.
When invoked 1,191 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.01191 $0.01191
Opus 5.5 $0.00476 $0.00476
Sonnet 5.5 $0.00238 $0.00238
Haiku 4.5 $0.00119 $0.00119

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

Security

Grade A, and why

english-immersion-reader 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 1mo 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 · 91 lines

How it starts

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

Immersion Reader Agent Instructions

You create segments.json files for static English deep-reading pages.

Target Users (hard rule, 2026-06-11)

  • The audience is laptop/desktop users who run a local agent (Claude Code, Codex, etc.) and open the generated pages in a desktop web browser.
  • This is a GitHub-published skill for that audience only. There is NO mobile audience.
  • Never design, reason, test, or ask questions in terms of phones, touch devices, hover:none media queries, or mobile viewports. All such thinking is out of scope.
  • Desktop half-screen split view IS a first-class scenario: heavy agent users often tile two windows on one screen (agent terminal on the left, reading page on the right). Narrow-window layouts (~640-760px wide) must not overflow or truncate. Responsive breakpoints exist for desktop half-screen, not for phones.
  • Acceptance viewports: full screen 1280px + half screen 720px. No phone viewports.
  • UI affordances must be always visible (e.g. all five segment icons 常显). Do not hide controls behind hover/touch heuristics.

Output Language

Rules are written in English. Learner-facing explanations, zh, cn, and closeout text are Chinese in v1.

Required Data Rules

  • Keep segments.json as the only lesson data authority.
  • Segment length: aim for 60-100 English words per segment; split anything over 110 words at a natural semantic boundary. Long segments unbalance the side-by-side en/zh columns.
  • zh is a condensed gist, not a sentence-by-sentence translation. Target zh character count ~= en word count x 2.0-2.5, consistent across segments.
  • meta.title_zh is required: a natural Chinese translation of the title (rendered small under the English title).
  • Segment granularity is paragraph/segment level, not sentence level.
  • zh is required.
  • tts must expand numbers and abbreviations for English speech.
  • chunks[].eg must be a second-context example, not copied from the source segment.
  • chunks[].eg must be a complete sentence, ideally no longer than 20 words.
  • Try programmer work-context examples first. If unnatural, use the article domain.
  • Work-context examples should reuse the transfer task genre pool (slack_message, pr_description, design_note, standup_update, code_review_comment) as their default settings.
  • Generate one transfer_tasks[] item when the source naturally supports workplace output.
  • Keep each Chinese line (zh, cn, study card text) within 20 characters per line of meaning; split long explanations.
  • Use numbers for facts ("1280 词 · 22 段"), never stacked adjectives ("超长深度好文").
  • Generate a lexicon object covering every content word in segments[].en (skip common function words). Inflected forms point to their lemma: "starts": {"lemma": "start"}; lemma entries carry a Chinese def (this lesson's sense only, <= 20 chars) and an American English ipa transcription wrapped in slashes, consistent across the lesson. Single-word hard[] entries must also exist in lexicon with def + ipa so hard cards can show pronunciation; multi-word hard phrases and chunks[] may rely on card audio instead of IPA. The page uses lexicon to answer text-selection lookups offline.
  • For proper nouns and company/product names, keep the definition categorical and short (for example "company name; GPU vendor"). IPA may be omitted when a stable pronunciation is uncertain, but def must still make the reference useful offline.
  • For long sources with more than 1000 content words, default to lexicon coverage for all content words; if the source is too large, cover the top 80% by frequency plus every single-word hard term. The build report must disclose the actual coverage and warn below 80%.
  • Treat video or podcast transcripts the same as articles for segments[], hard[], chunks[], lexicon, and audio. Use existing spk for speakers and meta.kind for source type; do not add new fields for transcript shape.

Read the full file on GitHub · 91 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. 1mo ago First seen · 91 lines · 1,191 tokens per session scan A 50ce688a36c2

Subscribe to this mod's changes

english-immersion-reader AGENTS.md is an instructions file published in the GitHub repository rayw-lab/english-immersion-reader (28 stars, last pushed 4mo ago), licensed MIT. It adds 1,191 tokens to every session, about $0.0048 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

Other instructions, from other repositories