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 1,862 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,042 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 1,862 This file is loaded in full into every session.
When invoked 1,862 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.01862 $0.01862
Opus 5 $0.00931 $0.00931
Sonnet 5 $0.00372 $0.00372
Haiku 4.5 $0.00186 $0.00186

Measured 5d ago against content hash 47ddfbcc14db, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 5d 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 · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 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 为唯一权威契约。

定位

核心课程包含 20 个阶段、503 节课。每个算法都先从原始数学构建,再使用生产框架完成同一操作。 你会亲手写出反向传播、分词器、注意力机制和 agent 循环,所以当 PyTorch 或其他库登场时,它们不再是黑盒。

certifications/claude/ 是独立的 Claude 认证备考层,包含 4 条路线、33 节认证课、诊断和原创模拟题。 它不计入 503 节核心课程,也不进入 EPUB/PDF 图书流程。

仓库结构

phases/
  NN-phase-slug/
    NN-lesson-slug/
      docs/zh.md              # 中文课程正文
      code/                   # 实现与测试
      quiz.json               # 6 道题
      outputs/                # 可复用产物
certifications/claude/
  program.json                # 项目声明、核验日期、官方链接
  tracks/*.json               # 考试蓝图、路线和学习计划
  lessons/NN-slug/            # 认证课程
  assessments/<exam-code>/    # 诊断和完整模拟题
glossary/terms.md              # 术语表唯一数据源
site/                          # 纯静态站点
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.xmlsite/llms.txtsite/build-meta.jssite/certification-data.jssite/lessons/
  9. site/data.js 是中文仓跟踪的构建产物;课程、术语或站点数据变动后必须重建并与源文件一起提交。

依赖约束

语言 允许的依赖
Python numpytorchh5pyzstandardsafetensors、标准库
TypeScript honozodws(只在需要 WebSocket 时)、@hono/node-server、Node 20+ 标准库
Rust 标准库,单文件 rustc --edition 2021
Julia RandomStatisticsLinearAlgebraPrintf

课程契约

docs/zh.md

# <标题>

> <一句话摘要>

**类型:** <Learn | Build | Reference>
**语言:** <与 code/main.* 匹配的语言>
**前置要求:** <课程链接或“无”>
**预计时间:** <分钟>

## 学习目标
- <4–6 条以动词开头的目标>

**语言:** 必须与 code/ 中的 main.* 一致。中文正文完成后删除 docs/zh.md

quiz.json

Read the full file on GitHub · 145 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. 5d ago Changed · +1 tokens per session 47ddfbcc14db
  2. 9d 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,042 stars, last pushed today), licensed MIT. It adds 1,862 tokens to every session, about $0.0093 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-30.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens