Parent
#308(2026-09-16 に ADR 0005 の範囲へ縮小)
What to build
~/.codex/AGENTS.md を chezmoi テンプレートで生成し、Claude の ~/.claude/CLAUDE.md と同じ共有本文・共有 rules を読ませる。合成は chezmoi の .chezmoitemplates + {{ template }} / {{ include }}(gitignore-common と同じパターン)。harness/ には触らない。
Acceptance criteria
Not in scope
~/.codex/config.toml / hooks.json、Cursor、permissions / hooks の翻訳。Cursor はグローバル rules を持たない(ADR 0004)。
Blocked by
なし(#310 は完了)
Parent
#308(2026-09-16 に ADR 0005 の範囲へ縮小)
What to build
~/.codex/AGENTS.mdを chezmoi テンプレートで生成し、Claude の~/.claude/CLAUDE.mdと同じ共有本文・共有 rules を読ませる。合成は chezmoi の.chezmoitemplates+{{ template }}/{{ include }}(gitignore-commonと同じパターン)。harness/には触らない。Acceptance criteria
~/.claude/CLAUDE.mdと~/.codex/AGENTS.mdの両テンプレートが取り込む~/.codex/AGENTS.mdの出力 = Codex 前置き → 共有本文 →dot_claude/rules/common/*.mdの連結(Source は移動しない)AskUserQuestionへの言及は Claude 前置きだけに現れ、共有本文は「選択肢を求めるときは番号付きの選択肢で提示する」に言い換える~/.claude/CLAUDE.mdレンダリング結果は、上記の言い換え以外に変更前との差分が無いchezmoi execute-template --config <test toml> --source <repo>)が (1) 共有本文が両出力に含まれる (2) 共有 rules 全件が AGENTS.md に含まれる (3)AskUserQuestionは CLAUDE.md 出力のみ (4) AGENTS.md が 32 KiB 未満 (5)chezmoi managed --sourceに.codex/AGENTS.mdが出る、を検査する。先行事例:test/harness-instructions.bats、justfileのcheck-templatesjust lintが通る(check-templates / scan-sensitive を含む)CLAUDE.mdの Key Patterns(Source はharness/modules/project/35-key-patterns.md)にグローバル指示の合成方式を追記し、just harness-syncで再生成するNot in scope
~/.codex/config.toml/hooks.json、Cursor、permissions / hooks の翻訳。Cursor はグローバル rules を持たない(ADR 0004)。Blocked by
なし(#310 は完了)