EXAMPLE / PLAIN TEXT
CLI-neutral 起始 prompt
在任一支援 CLI 貼上或調整;實作前補入 repository paths 與真實 commands。
目標:新增一個可觀察行為。
Context:列出相關 files、docs 與失敗證據。
限制:保留 public APIs 與 CLI 原生安全控制。
完成條件:指定 tests、lint、build 與 diff 證據。
未決問題:記錄不確定性,不要隱藏。 WORKFLOW / 三個 CLI
GUIDANCE-FIRST WORKFLOW
director-mode 與 session-relay 兩個核心 Skills 在 plugin-only 安裝也有 bundled fallback。同供應商用原生 resume;跨供應商則從預設 unreviewed 的 packet 開新接手端原生 session。
BOUNDARY / NATIVE CONTROLS
Director Mode Lite 不加入隱藏 approval layer、deny rule、forced workflow,也不隱式改權限;director-open 是可信任 workspace 的獨立選擇。
METHOD / EVIDENCE
只採用能推進任務的最小階段;繼續前先讓證據可見。
說明目標、相關 context、限制、done-when 證據與未決問題。
Artifact:可審查任務 brief只檢查下一個決策需要的 files 與 documentation。
Artifact:引用 files 與目前行為完成能滿足一項驗收結果的最小一致修改。
Artifact:聚焦 diff使用專案 tests、lint、type checks、build 與 review 規則,不看泛用成功標籤。
Artifact:commands 與實際 output用 evidence 對照 done-when;只有下一步理由明確才繼續。
Artifact:明確決定與剩餘風險PORTABLE / BRIEF
Brief 刻意維持精簡,能跨 CLI 交接,不必拖著完整 transcript。
EXAMPLE / PLAIN TEXT
在任一支援 CLI 貼上或調整;實作前補入 repository paths 與真實 commands。
目標:新增一個可觀察行為。
Context:列出相關 files、docs 與失敗證據。
限制:保留 public APIs 與 CLI 原生安全控制。
完成條件:指定 tests、lint、build 與 diff 證據。
未決問題:記錄不確定性,不要隱藏。 ADAPTERS / NATIVE SURFACES
把長期指引放在工具原生 project surface,把任務細節放在當前 prompt。
| CLI | 長期指引 | SESSION 用法 | 驗證方式 |
|---|---|---|---|
| Claude Code | CLAUDE.md 與已安裝 Claude assets | director-open claude 或原生啟動 | 專案檢查 + diff |
| Codex CLI | AGENTS.md 與已安裝 Codex assets | director-open codex 或原生啟動 | 專案檢查 + diff |
| Grok Build | .grok agents 與相容 assets | director-open grok 或原生啟動 | 專案檢查 + diff |
HANDOFF / SESSION-RELAY
session-relay 建立 director-handoff/v2、可讀 v1,以 --parent 記錄多 hop lineage,並用 status --json 比對 live worktree。Packet 預設 review_status: unreviewed;validate 與 status 都不等於審查。
.director-mode/bin/director-doctor --json --no-probe
.director-mode/bin/director-relay create \
--from claude --to codex \
--goal "Finish one bounded outcome" \
--summary "Verified state only" \
--next "First concrete next step" \
--verification "Command and observed result"
# Later hop: repeat create with --parent
.director-mode/bin/director-relay validate
.director-mode/bin/director-relay status --json
.director-mode/bin/director-relay continue --to codex 摘要已驗證事實、changed files、checks、結果與剩餘不確定性。
移除推測、secrets、無關 transcript 與無證據主張;真的審查後才明確記錄。
同供應商用原生 resume;跨供應商開新的原生 session。
接收 CLI 在繼續前重查目前 files、Git state 與 evidence。
DECISION / HUMAN-REVIEWABLE
停止是正常結果,不是 automation 失敗。
Done-when 證據齊全,review 沒有 blocking issue。
目標仍有效,但 evidence 顯示一項有邊界修正。
不同 CLI 或新 session 有明確優勢,且收到已檢查 handoff。
權限、context、evidence 或使用者意圖不足。