epytor: Instructions file for Codex

AGENTS.md

epytor AGENTS.md is an instructions file for Codex, OpenCode from peiyucn/epytor. It costs 8,953 tokens per session, scanned A, original, MIT.

A project rulebook for epytor, a TypeScript VS Code extension with a separate web-based interface.

In plain words
What is it for?
Use it when designing features, writing specifications, building or debugging the extension, checking themes and communication, or making focused Git commits.
Why use it?
It removes uncertainty about the language, package manager, build commands, communication between the extension and its interface, and commit rules.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is 本文件按根规范 [`../AGENTS.md`](../AGENTS.md) 的「I 章节标准」组织:九章顺序固定,通用章**原样复用**根规范对应段落(一字不改),项目专属内容写在各章的「本项目」小节与第 9 章。.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/peiyucn/epytor/agents-md"><img src="https://agentmods.dev/badge/instructions/peiyucn/epytor/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,953 This file is loaded in full into every session.
When invoked 8,953 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.08953 $0.08953
Opus 5.5 $0.03581 $0.03581
Sonnet 5.5 $0.01791 $0.01791
Haiku 4.5 $0.00895 $0.00895

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

Security

Grade A, and why

epytor 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 6d 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 · 450 lines

How it starts

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

项目指令 — epytor

本文件按根规范 ../AGENTS.md 的「I 章节标准」组织:九章顺序固定,通用章原样复用根规范对应段落(一字不改),项目专属内容写在各章的「本项目」小节与第 9 章。 单仓库独立 clone 时读不到根规范,故通用章在此全文复制(根规范 I3:项目 AGENTS 须自含,冗余可接受)。

项目概况

VS Code「所见即所得」Markdown 编辑器,基于 Milkdown(Crepe)7.22.3。

  • src/ — Extension 端:extension.ts(入口,注册 CustomEditorProvider)、MarkdownDocument.ts(文档模型)、MarkdownEditorProvider.ts(Provider 核心:面板/消息路由/保存与 revert/frontmatter 编排)、editor/(外移的 Provider 职责:imageMessageHandlers 图片与路径消息、externalChange 外部变更决策与落地、navigation 待跳转行、statusBar 状态栏、writeAudit 写盘审计、pathLinks 路径链接、webviewHtmlBuilder、fileWatcher,全部用显式接口注入而不是互相引用)、utils/(路径越界防护、文件名净化、配置净化、行号映射、图片保存、外部变更纯判定、文件大小格式化、docPath(文档相对路径解析的唯一入口)、fireAndLog 等)
  • webview/ — WebView 端按功能域分目录:
    • index.ts(入口:DOM 脚手架 + 消息路由)、editor.ts(CrepeBuilder 装配门面)、messaging.ts(双端通道)
    • app/ — 会话与请求生命周期(scrollSync 源码行↔视口几何、scrollTargets 延迟滚动与折叠恢复、persistence 未落盘推送/滚动/选区持久化、imageRequests 上传/图库/重命名、linkBehavior 链接行为、pendingRequest、rebuildRestore、editorStatePersistence)
    • editor/ — 编辑器内核支撑(editorSession(编辑器实例 + SavedSnapshot 唯一所有者)、serialization 保存归一化纯函数、continuity 重建焦点/选区/滚动、mermaidPreview、cmTheme、cmThemeObserver、compositionGate、themeBus、bubbleBoundary、mermaid)与 editor/plugins/(headingFold / headingSticky / listMarker / softBreakKeymap / cellClickFixPlugin / formatKeymapPlugin)
    • markdown/ — 序列化与保真(markdownSerializer、minimalDiff、listSpread、listBackspace、listMarker、frontmatter、emptyTaskListItem、taskListItemEnter)
    • outline/ — 目录与标题(headingFold、headingSticky、headingHighlight、headingScroll)
    • images/、table/、code/、find/、scroll/、shell/ — 各自领域的支撑逻辑
    • components/ — 有独立 DOM 的组件(toc / imageView / findBar / pathLink / tableGridPicker / topBarOverflow / mermaidZoom / frontmatterPanel / codeBlockEnhance / imagePicker / topBar)
    • ui/ — 通用 UI 原语(icons / tooltip / notice / dom / dropdownComplete / pathCompleteCore / anchoredOverlay(锚点浮层脚手架)/ lightbox(灯箱宿主)/ modifierKeys(Ctrl/Meta 唯一来源)/ topbarMetrics(顶栏高度的唯一来源))
    • vendor/ — vendored 上游 feature(latex / virtual-cursor)
  • shared/messages.ts — Extension ↔ WebView 消息类型契约(唯一真源);shared/constants.ts、shared/tableWrap.ts — 双端共享常量
  • webview/messaging.ts — WebView ↔ Extension 的唯一通道
  • docs/ — specs/(功能 spec)、checklists/(手测清单)、tech-debt.md(技术债务)、upstream-limits.md(上游限制明细)、audits/(审计与度量报告)

Read the full file on GitHub · 450 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. 6d ago Changed · +282 lines · +3,995 tokens per session 4b0b8de60b5b
  2. 18d ago Changed · -1 lines · -16 tokens per session 60e022d8b0e0
  3. 1mo ago Changed · -147 lines · +927 tokens per session 74b3fa877172
  4. 2mo ago Changed · +2 lines · +163 tokens per session 2e3e8d5c2563
  5. 2mo ago First seen · 314 lines · 3,884 tokens per session scan A 0266113dddfd

Subscribe to this mod's changes

epytor AGENTS.md is an instructions file published in the GitHub repository peiyucn/epytor (13 stars, last pushed 5d ago), licensed MIT. It adds 8,953 tokens to every session, about $0.0358 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

epytor AGENTS.md compared with instructions from other repositories

epytor AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
epytor AGENTS.mdpeiyucn/epytorInstructions file135d agoMITA8,953Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot