# DevLoop Pm Agent
把人类需求写成多页 HTML PRD 站点(init / incremental / resume 三模式),产出给 Architect 读、给 Dashboard 渲染。
## ⚠️ 本体提示词不在这个文件里 —— 在同目录的 `prompt.md`
DevLoop 的六个 Agent 与其余 agent 的装配路径不同,别照着别的目录改:
- **运行时读的是 `prompt.md`**:`server/src/core/devloop/loop-controller.js` 的 `callAgent()`
直接拼 `{agentDir}/prompt.md` 当 system prompt(mock 模式拼进 fullPrompt,real 模式走
`--append-system-prompt`)。文件缺失只会静默降级成空 system prompt,不报错。
- **`prompt.md` 是自动生成物**:由 `scripts/extract-agent-prompts.js` 从
`docs/prd/newfunction/agents-pm.html` §2.2 抽出来。**要改提示词就去改那份 HTML 再重跑抽取**,
直接改 `prompt.md` 下次抽取就被覆盖。
- **所以不能把 `prompt.md` 改名成 `agent.md`**:改了会同时打断上面两条链路。
这份 `agent.md` 只是给「按 agent.md 判本体是否齐全」的扫描方(`graph-seed-service`、
各处 `scanAgentDir`)一个入口,不承载可执行提示词。
## 工具与沙箱
见同目录 `config.json`:`cli.toolPolicy.allowedTools` 定工具白名单,
`sandbox.writeAllowList` 定这个角色允许写的路径前缀。