AGENTS.md@internal/appA
AGENTS.md@internal/app from iohub/yagent is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add iohub/yagent/internal/app/AGENTS.md@git:20261024.9b44441Pins git:20261024.9b44441 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- iohub/yagent
- Path
internal/app/AGENTS.md- Versions recorded
- 4
- Latest version
- git:20261024.9b44441, committed Oct 24, 2026
- First version recorded
- Oct 21, 2026
- Size
- 8,338 bytes
- Repository stars
- 31
- License
- Apache-2.0
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
# internal/app — 一次性装配 > 范围:本目录内不可派生的约束。全局见仓库根 `AGENTS.md` §6.7。 ## 边界 一次性装配 MCP / 工具引擎 / 守卫 / 七个 Agent / Director(`sync.Once`),以及每轮 `TaskRequest` 的装配。蓝图的**运行时唯一持有者**。**不负责** LLM-工具循环,也不写业务判据(判据在 `config` 与 `blueprint` 各自包里)。 **转派**(在本包里找它们是找错地方):常驻七个 Agent 各构造一份单例(`app.go:406-502`),但**每次委派 新建实例**在 `internal/agents/spawn.go:29-35`;Meta 设计的自定义 Agent 注册成 `delegate_<name>` 并在本任务内永久可用在 `internal/agents/director_surface.go:284`(`MaxSteps=15` 的理由写在 `:260`), 其输出解析在 `internal/agents/director/meta_handler.go:100`。装配层不许复刻这三件事。 ## 硬约束 **1. `Init` 的装配顺序本身是被照抄的契约。** `internal/agents/e2e_authorization_test.go:29` 明写 harness 按 `app.go:112-292` **同一条顺序**接线——换顺序就测到一条生产不存在的路(根 AGENTS.md §11 坑 33 同族:测试与生产必须共用同一个载体)。一处连点是硬的:`userConfirmMgr.SetPublisher` 必须先于 `RegisterConsumer`(`app.go:311-318`)。 **2. 任何重建 Agent 引擎的地方都必须保留 `*llm.RoutingEngine` 包装**(`app.go:743-747` 的 `agentEngine`), 否则 auto-routing 静默失效(历史 commit 0c87c8a)。闸门 `TestAgentEngineAlwaysWrapsWithRoutingEngine`(`assembly_test.go:37`)只看返回类型、不驱动 `resolve()`。 **3. `engine` 字段只能经 `setEngine()/defaultEngine()` 读写**(`app.go:95-106`):TUI 换模型与任务线程 并发,接口值的两个机器字会撕裂。deepthinking / design 的引擎同理只能经 `SetToolProvider` 的热替换分支换 …
Read the whole file at its exact version.
How to install
mdr add iohub/yagent/internal/app/AGENTS.md@sha256:a57c883ed8a2936aThe line at the top of this page pins the label git:20261024.9b44441, 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_pwftof6zxsmpmbvb)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between Oct 21, 2026 and Oct 24, 2026, about one every day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261024.9b44441 latest | 2026-10-24 | 9b44441 | 8,338 B | A | view · diff |
| git:20261023.34d2295 | 2026-10-23 | 34d2295 | 4,393 B | A | view · diff |
| git:20261022.53411ac | 2026-10-22 | 53411ac | 3,540 B | A | view · diff |
| git:20261021.9f5bf87 | 2026-10-21 | 9f5bf87 | 3,582 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (8338 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
iohub/yagent · 31 stars · license Apache-2.0 · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_pwftof6zxsmpmbvb GET https://markdownregistry.com/api/v1/resolve?ref=iohub/yagent/internal/app/AGENTS.md GET https://markdownregistry.com/api/v1/blob/a57c883ed8a2936a7b366bb5356138196599d8b3ed840ea8bc01b3a9618a765d
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.