AGENTS.local.md support for Codex, without changing the official codex command or Codex IDE/desktop launch path.
Read https://github.com/samzong/codex-agents-local/blob/main/INSTALL_PROMPT.md
Follow that prompt in your Codex to install without changing your existing `codex` entry point.
- Put shared repo instructions in
AGENTS.md. - Put private local instructions in
AGENTS.local.md. - This tool generates
AGENTS.override.mdin the same directory whenAGENTS.local.mdexists. - If an existing
AGENTS.override.mdwas not generated by this tool, it is left untouched and a warning is emitted.
After installation, keep using Codex normally:
codex .flowchart TD
I["install prompt"] --> B["~/.local/bin/codex-agents-local"]
I --> H["~/.codex/hooks.json"]
C["codex CLI"] --> H
D["Codex IDE / desktop"] --> H
H --> S["SessionStart sync"]
H --> U["UserPromptSubmit sync"]
The installer enables SessionStart and UserPromptSubmit hooks in ~/.codex/hooks.json, so startup context and later AGENTS.local.md edits can both be synced into the current session.
codex-agents-local doctor
codex-agents-local sync --cwd .
codex-agents-local sync --cwd . --json
codex-agents-local install --hooks
make auditAdd these to your global gitignore or repo gitignore:
AGENTS.local.md
AGENTS.override.mdRun the audit gate before publishing changes:
make auditSee SECURITY.md for the full security boundary.