AGENTS.mdA
AGENTS.md from echoyue-lp/echo-agent is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add echoyue-lp/echo-agent/AGENTS.md@git:20261023.5172645Pins git:20261023.5172645 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- echoyue-lp/echo-agent
- Path
AGENTS.md- Versions recorded
- 8
- Latest version
- git:20261023.5172645, committed Oct 23, 2026
- First version recorded
- May 9, 2026
- Size
- 12,060 bytes
- Repository stars
- 89
- 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
# echo-agent AGENTS.md
本文件是 AI agent 在本仓库工作时的**最高优先级约束**(优先级高于 agent 默认行为和任何技能),请严格遵守。本仓库可独立检出使用,本文件即完整约束,不依赖外部 superproject。
## 仓库定位
通用 Rust Agent 框架 Cargo workspace:根 crate `echo_agent` + 子 crate `echo_core` / `echo_macros` / `echo_execution` / `echo_integration` / `echo_tools` / `echo_state` / `echo_orchestration` / `echo-agent-learning`。SDK Host、protocol、合同和三语言 SDK 位于独立的 `echo-agent-sdk` 仓库;crate 名用下划线(`echo_agent`,`cargo check -p echo_agent`)。
**框架服务所有复用方,不是某个应用的私有库。** 任何"能放框架、也能放应用"的功能,动手前必须先回答分层问题(见下)。
## 统一术语:只有 Subagent,没有 Worker(强制)
产品模型、领域模型、运行时模型和代码术语中都只有 `Subagent`,没有 `Worker` 概念。标准关系是 `TaskRun → PlanTask → SubagentRun`。类型、trait、字段、函数、事件、注释、文档和 UI 文案均使用 subagent 命名;后续迭代中触及遗留 `worker` 命名必须随手迁移。仅第三方协议固定 wire name 可在最小适配边界保留,内部立即转换。
## Rust 编码硬性约束(最高优先级)
### 1. 字符串处理:UTF-8 安全,禁止字节级截断
`str::len()` 是字节数;字节索引切片(`&s[..n]`)在中文/emoji 上会切到字符中间 → **panic**。处理任意文本必须用字符迭代器:
```rust
// 正确(本项目既有 pattern)
let preview: String = s.chars().take(N).collect::<String>();
if s.chars().count() > N { ... }
// 禁止:&s[..100] / &s[100..] / s.len() > 100
```
### 2. 禁止任何会导致系统 panic 的 API
| 禁止 | 安全替代 |
|---|---|
…Read the whole file at its exact version.
How to install
mdr add echoyue-lp/echo-agent/AGENTS.md@sha256:9bdcfa5381c70842The line at the top of this page pins the label git:20261023.5172645, 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_ttenrmlhey2w4cvc)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 8 versions of this file, between May 9, 2026 and Oct 23, 2026, about one every 24 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261023.5172645 latest | 2026-10-23 | 5172645 | 12,060 B | A | view · diff |
| git:20261021.6849bfc | 2026-10-21 | 6849bfc | 12,060 B | A | view · diff |
| git:20261016.875cc22 | 2026-10-16 | 875cc22 | 10,806 B | A | view · diff |
| git:20260915.27c7701 | 2026-09-15 | 27c7701 | 10,504 B | A | view · diff |
| git:20260914.0878a67 | 2026-09-14 | 0878a67 | 10,457 B | A | view · diff |
| git:20260912.4af71b1 | 2026-09-12 | 4af71b1 | 10,264 B | A | view · diff |
| git:20260904.9e1bf68 | 2026-09-04 | 9e1bf68 | 10,220 B | A | view · diff |
| git:20260509.91b87ab | 2026-05-09 | 91b87ab | 4,151 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (12060 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
echoyue-lp/echo-agent · 89 stars · license MIT · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_ttenrmlhey2w4cvc GET https://markdownregistry.com/api/v1/resolve?ref=echoyue-lp/echo-agent/AGENTS.md GET https://markdownregistry.com/api/v1/blob/9bdcfa5381c708427b6ba974031a9fafa828829660238363658795f1d95dcab8
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.
More from echoyue-lp/echo-agent
Every file in echoyue-lp/echo-agent