feat(codex): add user-global Codex CLI instructions#135
Conversation
This repository already deploys a user-global Copilot CLI instruction file (`home/dot_copilot/copilot-instructions.md` → `~/.copilot/copilot-instructions.md`), but the parallel layer for Codex CLI was missing — only `~/.codex/config.toml` was deployed. Without a user-global `AGENTS.md`, Codex sessions in repositories that lack a project-level `AGENTS.md` fall back to model defaults for the conversation language policy, Conventional Commits style, and the bounded signing fallback ladder. Add `home/dot_codex/AGENTS.md` modeled on the canonical Copilot user-global file, adapted for Codex CLI's interaction model (intent-based pause/continue wording instead of Copilot's product- specific "Agent mode" / "Plan mode" terms). The file preserves the same five sections — deferral preamble, Conversation, Commit rules with the full P/C/A/U signing fallback ladder (configured GPG → optional gpg-agent restart → SSH fallback with three-step key discovery → unsigned), Coding standards, and Guardrails — so behavioral parity holds without a byte-identical copy. Track A under the symmetrization roadmap; sibling tracks land `home/dot_claude/CLAUDE.md` (#132), `home/dot_gemini/GEMINI.md` (#133), and the documentation update in `docs/ai-strategy.md` (#134) independently. Refs #131 Roadmap #130 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR adds ChangesCodex AI Agent Instructions
Possibly related issues
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR adds a user-global Codex CLI instructions file so Codex picks up consistent defaults (conversation language, Conventional Commits, signing fallback ladder, coding standards, guardrails) across repositories that lack their own AGENTS.md. It mirrors the existing Copilot CLI user-global file for parity.
Changes:
- Add
home/dot_codex/AGENTS.mddeployed by chezmoi to~/.codex/AGENTS.md. - Adapt Copilot-specific "Agent mode" / "Plan mode" wording to intent-based phrasing for Codex CLI.
|
claude-code-8e8ebc52: review triage snapshot — IDD automation marker. Do not edit. |
|
Acknowledged — recording the auto-no-action review for the IDD pre-merge unreplied-comment evidence check. |
E6 dispositions — PATH B (advisory)Both items in
E2 critique pass on the same snapshot returned 0 additional findings (acceptance criteria of #131 satisfied; required CI checks all green; no scope drift). |
|
claude-code-8e8ebc52: review triage snapshot (refreshed post-disposition) — IDD automation marker. Do not edit. |
Summary
Adds
home/dot_codex/AGENTS.mdso chezmoi deploys a user-globalCodex CLI instructions file at
~/.codex/AGENTS.md, bringingCodex CLI to parity with the already-deployed Copilot CLI
user-global file (
home/dot_copilot/copilot-instructions.md→~/.copilot/copilot-instructions.md).The new file preserves the same five sections used by the
canonical Copilot user-global file — repository-precedence
preamble, Conversation, Commit rules (with the full P/C/A/U
signing fallback ladder), Coding standards, and Guardrails — and
adapts the wording for Codex CLI's interaction model (intent-based
pause/continue wording rather than Copilot's product-specific
"Agent mode" / "Plan mode" terms).
Closes #131
Roadmap #130
Test plan
npx markdownlint-cli2 "home/dot_codex/AGENTS.md"— 0 errorsnpx cspell home/dot_codex/AGENTS.md— 0 issuestests/bash/helpers/bats-core/bin/bats tests/bash/— 212 / 212pwsh -c "Invoke-Pester tests/powershell/ -Output Detailed"— Linux baseline: 182 passed, 0 failed, 33 skipped (Windows-only scopes auto-skipped)chezmoi diffshows~/.codex/AGENTS.mdwill be addedSigning path
GPG was attempted first (configured default; key
DFC46A0ADEE2FC635163CD5431D6D754C1D839D1) and failed withcategory (P) pinentry —
PINENTRY_LAUNCHEDwas emitted, thengpg reported
signing failed: タイムアウトです(Timeout).Category (P) prohibits the gpg-agent restart step, so the commit
was routed straight to the project-blessed
git commit-sshalias(SSH key
~/.ssh/id_ed25519-kito.pub, transientgpg.format=sshinvocation). GitHub may show the commit asUnverified if that SSH key is not registered as a signing
key on the maintainer's GitHub profile; that is expected
best-effort behavior for SSH signing.
Out-of-scope
home/dot_codex/config.tomlis intentionally untouched.feat(claude): add user-global Claude Code memory filefeat(gemini): add user-global Gemini CLI instructionsdocs(ai-strategy): document the user-global instructions layerSummary by CodeRabbit
Note: This release contains no end-user-visible changes. Updates are limited to internal development standards and processes.