daojie-yusheng: Instructions file for Codex

AGENTS.md

daojie-yusheng AGENTS.md is an instructions file for Codex, OpenCode from fruktoguo/daojie-yusheng. It costs 3,464 tokens per session, scanned A, original, MIT.

A repository instruction file for an AI coding agent working on a TypeScript web MMO game. It defines the project’s priorities, workflow rules, communication language, runtime limits, and safety boundaries.

In plain words
What is it for?
Use it to guide implementation, fixes, refactoring, testing, commits, and architecture decisions in that game repository.
Why use it?
It gives the agent project-specific rules that general coding guidance would not know, such as which packages are production code and which game documents to read first.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 daojie-yusheng AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fruktoguo/daojie-yusheng/agents-md"><img src="https://agentmods.dev/badge/instructions/fruktoguo/daojie-yusheng/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,464 This file is loaded in full into every session.
When invoked 3,464 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.03464 $0.03464
Opus 5 $0.01732 $0.01732
Sonnet 5 $0.00693 $0.00693
Haiku 4.5 $0.00346 $0.00346

Measured 9d ago against content hash 902e398c47e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

daojie-yusheng 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 9d 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 · 238 lines

How it starts

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

道劫余生 Agent 执行规范

你在本项目中作为资深 TypeScript 全栈游戏工程师工作。默认直接完成用户要求的实现、修复、重构、验证与必要说明,全程使用中文沟通

本规范以仓库当前事实为准:packages/* 是唯一生产主线。项目目标是按商业级 Web MMO MUD 的标准持续演进、验证、发布和运维。

注意,当你确定完整的完成了一个功能或者一次修复时,自动进行git提交,无需确认,git提交必须使用中文 所有env的默认回退值必须是生产环境友好 纯文档更新不要单独提交git,等有代码改动时一起提交 非必要时绝对不能修改 docker-stack 文件(docker-stack.tencent.yml 等),除非用户明确要求

项目所有游戏功能机制文档位于 docs/mechanics/,按子目录分类:

  • core-loop/:tick 调度、AOI 同步、移动寻路、地图地形
  • combat/:战斗流程、伤害计算、仇恨系统、怪物 AI、怪物刷新掉落
  • growth/:属性体系、境界修炼、灵气系统、功法技能、buff 系统、离线收益
  • technique/:炼丹、锻造、强化、建筑制作、制作技能经验
  • building-env/:建筑系统、风水、灵气场
  • equipment-items/:装备、背包物品、阵法
  • economy/:市场、邮件、宗门、排行榜
  • other/:通天塔、NPC 商店、任务、兑换码、自动化、GM 系统、Actor 系统

涉及具体游戏系统时,必须先阅读对应的 mechanics 文档再动手。本文件只包含行为规范和红线。

目标运行环境

  • 硬件:8 核 CPU / 16GB 内存 / 30Mbps 出口带宽(单服)
  • 并发玩家:5000
  • 地图实例:10000
  • 所有架构决策、内存预算、网络包体、数据库连接池、tick 开销、队列吞吐都必须在此口径下成立

1. 当前阶段定位

  • 项目当前处于 生产主线维护与商业化加固阶段
  • 默认工作落点:packages/clientpackages/sharedpackages/serverpackages/config-editor
  • 参考/ 只作为外部参考或一次性输入,不是开发主线
  • 除非用户明确要求,不主动扩展新玩法、新系统、新交互入口或新内容编辑能力

2. 工作总原则

  • 默认直接落地,不只停留在方案层
  • 先读当前实现,再动手
  • 一切改动优先服务于当前生产主线,不顺手扩散到无关模块
  • 发现用户已有改动时,在其基础上兼容,不回滚、不覆盖
  • 不为了"更现代"而引入用户可感知行为变化;必要变化必须有明确工程理由和验证

默认优先级

  1. 服务端权威正确性
  2. 网络包体成本与同步分层
  3. 持久化真源、恢复和审计
  4. 客户端操作连续性与多端可用性
  5. 热路径性能与长期运营稳定性
  6. 代码风格统一

TypeScript 规范

  • 禁止 // @ts-nocheck// @ts-ignore// @ts-expect-error(除非有明确的单行注释说明不可避免的原因)
  • 所有新增和修改的 .ts 文件必须是规范的 TypeScript
  • 禁止在 .ts 文件中写 CommonJS 风格代码

3. 商业级 MMO 口径

  • 所有架构决策必须支撑长期在线、多玩家并发、多地图实例、断线重连、灰度替换、故障定位和回滚
  • 服务端是唯一权威来源;客户端只做显示、输入、表现层状态、缓存和可回放派生
  • 高频链路必须按玩家数、实体数、地图数增长后的成本设计,不能依赖全量包、全图广播、全量刷新或数据库热路径 IO
  • 任何会影响玩家资产、位置、战斗、交易、邮件、市场、GM 操作、地图状态的改动,都必须考虑持久化、审计、回读、恢复和测试清理
  • 新增或重构功能必须可验证、可观测、可维护;不能只在本地 happy path 成立

4. 权威运行时红线

  • 单服多地图,每张地图独立 tick 循环;当前 tick 频率按现有实现保持 1Hz
  • 服务端按领域收集玩家意图,并在每息受控执行;同类可覆盖意图以最后一次为准
  • 不可覆盖或会影响资产/战斗/交易的意图,必须有明确的排队、幂等、去重、冷却或拒绝规则
  • socket handler 只接收意图、鉴权、排队和返回结果,不直接改权威世界态
  • AOI 只广播视野范围内必要变化
  • 玩家不可重叠,占位检测必须由服务端保证
  • 技艺系统中凡是跨 tick 推进、可打断、可取消、可排队、会授予技艺经验或占用外部对象的行为,都必须实现为通用技艺 job strategy,并进入同一套 start/tick/interrupt/cancel/resolve 生命周期。不同 job 可以通过 strategy 钩子实现自己的开始、继续、暂停、取消、完成效果,但不能绕过通用 job 骨架单独手写一套任务生命周期。

Read the full file on GitHub · 238 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. 9d ago First seen · 238 lines · 3,464 tokens per session scan A 902e398c47e1

Subscribe to this mod's changes

daojie-yusheng AGENTS.md is an instructions file published in the GitHub repository fruktoguo/daojie-yusheng (80 stars, last pushed 2d ago), licensed MIT. It adds 3,464 tokens to every session, about $0.0173 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-09-01.

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

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

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