AGENTS.md@src/host/promptsA
AGENTS.md@src/host/prompts from gzx2211/dsh-visual-workflow is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add gzx2211/dsh-visual-workflow/src/host/prompts/AGENTS.md@git:20261017.3538eb1Pins git:20261017.3538eb1 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- gzx2211/dsh-visual-workflow
- Path
src/host/prompts/AGENTS.md- Versions recorded
- 6
- Latest version
- git:20261017.3538eb1, committed Oct 17, 2026
- First version recorded
- Sep 22, 2026
- Size
- 2,225 bytes
- Repository stars
- 65
- License
- MIT
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Prompts Module Rules
## 范围与职责
适用于 `src/host/prompts/`。
**所有提示词正文集中在 `texts/`**:一个注入场景 = 一个文件 = 一段从上到下的完整正文。
本目录的其它 `.ts` 只做「事实 → 模板变量 → 渲染一次」,不存放正文片段,也不做跨文件拼装。
**语言变体**:同一场景的中英文各一份完整正文,分别放在 `texts/` 与 `texts/en/`;构建器按本次
运行语言整体选择模板,不做逐句拼接。
维护入口与变量语法见同目录 `README.md`(需要修改提示词时按需阅读)。
## 维护方式
- **改提示词 = 直接改 `texts/` 下对应文件的正文**;不要再把正文拆成小段、用常量互相引用拼装。
- **允许不同场景的正文重复**:原「共享措辞与锚点单一源、变体之间不复制模板」约束已废除——
它是组装化的成因,维护成本高于重复成本。
- 变量用 `{{name}}` 标出;可选段用 `{{#if name}}…{{/if}}`(支持嵌套);列表类内容由调用方先渲染成一段文本再传入。
- 模板文件头必须写明:适用场景、注入位置(system prompt / 用户消息 / 工具返回 / 消息投递)、变量表。
- 父代理三模式(纯编排 / 编排+自执行 / 纯执行)各一份独立文件,不用条件分支互相套用。
## 组装与依赖
- 构建器是纯计算:入参即全部输入,同入参必同输出;渲染结果不得残留 `{{`(渲染器会抛错)。
- 本模块处于依赖链末端,不反向依赖运行时模块。
## 测试
- **正文与文案常量不做测试断言**:提示词会频繁修改,断言文案会让维护成本反噬。
- 只测机制与结构:渲染器行为(变量、可选块、残留检测)、数据是否进入输出、模式与通道差异、渲染幂等。
- 禁止为了通过测试而把正文片段抄进断言。
## 核心原则
1. 正文集中在 `texts/`,一场景一文件;打开文件即见完整全貌。
2. 组装退化为一次渲染,不拼小段。
3. 允许重复,换取可读与可维护。
4. 纯函数:无时钟、无随机、无 IO、无隐式全局状态。
5. 正文不进断言。Read the whole file at its exact version.
How to install
mdr add gzx2211/dsh-visual-workflow/src/host/prompts/AGENTS.md@sha256:db8914f71aa864a8The line at the top of this page pins the label git:20261017.3538eb1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_2enhpxnmcz47ewxv)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Sep 22, 2026 and Oct 17, 2026, about one every 5 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261017.3538eb1 latest | 2026-10-17 | 3538eb1 | 2,225 B | A | view · diff |
| git:20261016.52cec8a | 2026-10-16 | 52cec8a | 2,043 B | A | view · diff |
| git:20260928.0bc633c | 2026-09-28 | 0bc633c | 1,548 B | A | view · diff |
| git:20260923.4575b13 | 2026-09-23 | 4575b13 | 1,581 B | A | view · diff |
| git:20260922.cf8e5a9 | 2026-09-22 | cf8e5a9 | 4,134 B | A | view · diff |
| git:20260922.79e581b | 2026-09-22 | 79e581b | 4,137 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (2225 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
gzx2211/dsh-visual-workflow · 65 stars · license MIT · pushed 2026-10-29 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_2enhpxnmcz47ewxv GET https://markdownregistry.com/api/v1/resolve?ref=gzx2211/dsh-visual-workflow/src/host/prompts/AGENTS.md GET https://markdownregistry.com/api/v1/blob/db8914f71aa864a82891cdc439e0451033a7a57cc92f8d34536347a3721d6e43
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.