Skip to content

06: Agent prompts dual-platform annotation #53

Description

@MatthewYe

Parent

#47

What to build

implementer.mdreviewer.md 添加双平台标注,处理以下差异:

差异点

关注点 OpenCode Codex
Skill 加载方式 prompt 内 skill(name: "tdd") items 参数传技能路径
工具引用 task subagent dispatch spawn_agent / wait_agent
重试通信 重新 task dispatch send_input(interrupt=true) 或 respawn
UNVERIFIED 模式 自然语言传递 结构化 flag

实现方式

在 agent .md 文件中用简单标注标记平台差异段,构建时生成:

  • packages/opencode/agents/implementer.md → OpenCode 版本
  • packages/codex/ 构建时生成 .toml 的 developer_instructions 内容

不引入完整的 manifest 方案(本期范围),用简单的前端 matter 或注释标注。

Acceptance criteria

  • OpenCode 的 implementer agent 加载后使用 skill(name: "tdd") 语法
  • Codex 的 implementer agent 加载后使用 items 参数语法
  • reviewer agent 同样正确处理双平台差异
  • 两个平台的 agent 行为一致(相同的 TDD 纪律、审查维度、报告格式)
  • 不引入新的重复——共享的 agent prompt 内容只出现在一处

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedAutopilot has resolved this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions