ai-engineering-from-scratch-zh: Instructions file for Codex

AGENTS.md

ai-engineering-from-scratch-zh AGENTS.md is an instructions file for Codex, OpenCode from fancyboi999/ai-engineering-from-scratch-zh. It costs 2,506 tokens per session, scanned A, original, MIT.

Contributor instructions for a Chinese course that teaches machine learning from basic mathematics through working frameworks. The repository contains lessons, code, quizzes, translations, and a static website.

In plain words
What is it for?
Use them when adding or translating lessons, updating quizzes or the website, checking course structure, or following the repository’s coding and commit rules.
Why use it?
They clarify where each kind of course content belongs and which rules keep the Chinese version, quizzes, diagrams, and builds consistent.

Instructions file for CodexOpenCode

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

This is fancyboi999/ai-engineering-from-scratch-zh's own configuration. It tells Codex and OpenCode how to work on ai-engineering-from-scratch-zh 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 ai-engineering-from-scratch-zh configures →

About the project

ai-engineering-from-scratch-zh is a Chinese-language adaptation of a course that teaches AI engineering by implementing algorithms, tools, and agents from the ground up. It is for learners following a 20-stage path across mathematics, machine learning, agent systems, and production topics, with lessons using Python, TypeScript, Rust, and Julia. The catalogue entries provide agent skills and instructions associated with the course.

fancyboi999/ai-engineering-from-scratch-zh · 1,276 stars · on GitHub · aieng-zh.cn

Reuse

Borrowing it

Nothing to install: this file belongs to fancyboi999/ai-engineering-from-scratch-zh. 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/fancyboi999/ai-engineering-from-scratch-zh/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/fancyboi999/ai-engineering-from-scratch-zh

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 ai-engineering-from-scratch-zh AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fancyboi999/ai-engineering-from-scratch-zh/agents-md"><img src="https://agentmods.dev/badge/instructions/fancyboi999/ai-engineering-from-scratch-zh/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,506 This file is loaded in full into every session.
When invoked 2,506 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.02506 $0.02506
Opus 5.5 $0.01002 $0.01002
Sonnet 5.5 $0.00501 $0.00501
Haiku 4.5 $0.00251 $0.00251

Measured 3d ago against content hash 8c93d620353d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-engineering-from-scratch-zh 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 · 164 lines

How it starts

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

AGENTS.md

本文档是贡献者和 AI agent 修改本仓库时的操作手册。开 PR 前必须阅读。

这是一套课程,不是 SaaS 应用。课程内容就是产品。中文翻译以 TRANSLATION.md 为唯一权威契约。

定位

核心课程按 phases/、README 与 ROADMAP 登记,数量以 node site/build.js --check 的当前结果为准。每个算法都先从原始数学构建,再使用生产框架完成同一操作。 你会亲手写出反向传播、分词器、注意力机制和 agent 循环,所以当 PyTorch 或其他库登场时,它们不再是黑盒。

projects/ 是独立实战层,manuals/ 是独立技术手册层。就绪状态和数量以各自清单与当前构建为准,不计入核心课程。

certifications/ 是独立认证备考层;路线、课程、诊断和原创模拟题以各 program 与 track manifest 为准。 认证课程单独统计,使用独立的站点构建与学习路径。

仓库结构

phases/
  NN-phase-slug/
    NN-lesson-slug/
      docs/zh.md              # 中文课程正文
      code/                   # 实现与测试
      quiz.json               # 6 道题
      outputs/                # 可复用产物
certifications/<program>/
  program.json                # 项目声明、核验日期、官方链接
  tracks/*.json               # 考试蓝图、路线和学习计划
  lessons/NN-slug/            # 认证课程
  assessments/<exam-code>/    # 诊断和完整模拟题
glossary/terms.md              # 术语表唯一数据源
site/                          # 静态页面与构建器
api/                           # Vercel 只读 REST / MCP 接口
scripts/                       # 审计和构建工具
.github/workflows/build.yml    # 中文站 CI

强制规则

  1. 新增课程时,每个 lesson 目录用一个原子提交。上游同步或批量翻译可按可审查的逻辑批次提交。
  2. 提交标题使用约定式前缀且不超过 72 字符;本中文镜像优先使用 sync(zh):、i18n(quiz):、feat(site):、fix(site):。
  3. 图表只使用 Mermaid、SVG 或站点注册的 figure 机制,不用 ASCII/绘图字符假装图表。
  4. 所有代码围栏必须带语言标记。
  5. 不使用外部 LLM API 做翻译;不提交考题泄露内容、机密题目或包过承诺。
  6. 代码保持 stdlib-first,不为满足形式而伪造 provider API 集成。
  7. 不直接 push main;所有更改走 PR。
  8. 不提交构建产物 site/sitemap.xml、site/llms.txt、site/build-meta.js、site/certification-data.js、site/lessons/。
  9. 项目、手册、Hub、OG 数据与目录从中文源构建;不提交 site/projects-data.js、site/project-content/、site/manuals-data.js、site/manuals.html、site/manual-*.html、site/hubs/、site/lesson-terms.json 或 site/og-cards.json。
  10. site/data.js 是中文仓跟踪的构建产物;课程、术语或站点数据变动后必须重建并与源文件一起提交。

依赖约束

语言 允许的依赖
Python numpy、torch、h5py、zstandard、safetensors、标准库
TypeScript hono、zod、ws(只在需要 WebSocket 时)、@hono/node-server、Node 20+ 标准库
Rust 标准库,单文件 rustc --edition 2021
Julia Random、Statistics、LinearAlgebra、Printf

Read the full file on GitHub · 164 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 Changed · +3 tokens per session 8c93d620353d
  2. 5d ago Changed · +39 tokens per session ac3cccfd83e7
  3. 12d ago Changed · +18 lines · +449 tokens per session 5419dc045c39
  4. 1mo ago Changed · +1 lines · +153 tokens per session 3bf404e727fa
  5. 1mo ago Changed · +1 tokens per session 47ddfbcc14db
  6. 1mo ago First seen · 145 lines · 1,861 tokens per session scan A e0596c431dc5

Subscribe to this mod's changes

ai-engineering-from-scratch-zh AGENTS.md is an instructions file published in the GitHub repository fancyboi999/ai-engineering-from-scratch-zh (1,276 stars, last pushed 4d ago), licensed MIT. It adds 2,506 tokens to every session, about $0.0100 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

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens