AGENTS.md@apps/server/agentA
AGENTS.md@apps/server/agent from zenstory-ai/zenstory is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add zenstory-ai/zenstory/apps/server/agent/AGENTS.md@git:20261021.53f9e26Pins git:20261021.53f9e26 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- zenstory-ai/zenstory
- Path
apps/server/agent/AGENTS.md- Versions recorded
- 10
- Latest version
- git:20261021.53f9e26, committed Oct 21, 2026
- First version recorded
- Oct 14, 2026
- Size
- 39,167 bytes
- Repository stars
- 76
- 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
# Agent 模块架构指南 ZenStory 写作 agent 的服务端:路由 → 多角色工作流(planner / hook_designer / writer / quality_reviewer)→ openai-agents-python 运行时(OpenAI 兼容 Chat Completions,主备两个供应商,见 `core/llm_providers.py` / `core/llm_failover.py`)→ SSE。 工作流是 `graph/` 里的自研编排,**不使用 LangGraph**。 路径约定:不带前缀的路径相对 `apps/server/agent/`;模块外的文件写全路径(例如 `apps/server/utils/logger.py`, 不要和 `agent/utils/` 混淆)。行为细节与取舍以 `.agents/notes/` 里链接的决策记录为准,改行为前先读对应记录。 ## 目录结构 ``` agent/ ├── service.py # AgentService.process_stream:一次 /agent/stream 的主入口 ├── stream_adapter.py # StreamAdapter:workflow 事件 → SSE 帧,<file> 正文捕获与落库,CHAT_HOLD ├── suggest_service.py # /agent/suggest 的下一步建议 ├── constants.py # 子系统共享常量 ├── context/ # 项目上下文组装 │ ├── assembler.py # ContextAssembler │ ├── budget.py # token 预算与请求级 prompt 台账 │ └── prioritizer.py # 优先级分档 │ # 注:没有会话压缩/总结模块,历史只按 token 预算取最近窗口 ├── core/ # 基础设施 │ ├── events.py # SSE 事件(EventType)与帧构造 │ ├── workflow_events.py # 图内部事件(StreamEventType / StreamEvent) │ ├── sse_pump.py # SSEStreamPump:心跳、请求墙钟时限、作者停止 …
Read the whole file at its exact version.
How to install
mdr add zenstory-ai/zenstory/apps/server/agent/AGENTS.md@sha256:4f2e2cc77f3f532dThe line at the top of this page pins the label git:20261021.53f9e26, 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_o3rzoossbjgcf4xg)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 10 versions of this file, between Oct 14, 2026 and Oct 21, 2026, more than one a day.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261021.53f9e26 latest | 2026-10-21 | 53f9e26 | 39,167 B | A | view · diff |
| git:20261021.e8f028c | 2026-10-21 | e8f028c | 38,865 B | A | view · diff |
| git:20261021.a09c49b | 2026-10-21 | a09c49b | 38,375 B | A | view · diff |
| git:20261020.afefe57 | 2026-10-20 | afefe57 | 36,019 B | A | view · diff |
| git:20261020.ee29817 | 2026-10-20 | ee29817 | 35,728 B | A | view · diff |
| git:20261015.681fdaf | 2026-10-15 | 681fdaf | 32,134 B | A | view · diff |
| git:20261015.8d4b1e8 | 2026-10-15 | 8d4b1e8 | 32,268 B | A | view · diff |
| git:20261015.acc78a1 | 2026-10-15 | acc78a1 | 31,139 B | A | view · diff |
| git:20261014.308d1b0 | 2026-10-14 | 308d1b0 | 31,716 B | A | view · diff |
| git:20261014.f02f003 | 2026-10-14 | f02f003 | 31,274 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (39167 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
zenstory-ai/zenstory · 76 stars · license MIT · pushed 2026-10-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_o3rzoossbjgcf4xg GET https://markdownregistry.com/api/v1/resolve?ref=zenstory-ai/zenstory/apps/server/agent/AGENTS.md GET https://markdownregistry.com/api/v1/blob/4f2e2cc77f3f532dfc6eefc3c810c87ce50244db4df2469983cd48279086ab23
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.