From e94b6895e2620c5b8665350d234b1c6267d53691 Mon Sep 17 00:00:00 2001 From: Dylan Hurd Date: Mon, 13 Apr 2026 15:39:51 -0700 Subject: [PATCH] docs: describe profile-scoped rules Co-authored-by: Codex --- docs/config.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/config.md b/docs/config.md index c314ce2283..1f09a4903f 100644 --- a/docs/config.md +++ b/docs/config.md @@ -50,6 +50,16 @@ Codex can run a notification hook when the agent finishes a turn. See the config When Codex knows which client started the turn, the legacy notify JSON payload also includes a top-level `client` field. The TUI reports `codex-tui`, and the app server reports the `clientInfo.name` value from `initialize`. +## Exec policy rules + +Codex loads execution policy files from `rules/` under each active config +folder. When profile-based permissions are active via `default_permissions = +"name"`, Codex loads only `rules/name.rules` for that permissions profile and +stores newly approved command or network rules in `~/.codex/rules/name.rules`. +When no permissions profile is active, Codex keeps the legacy behavior of +loading all `*.rules` files and writing new approvals to +`~/.codex/rules/default.rules`. + ## JSON Schema The generated JSON Schema for `config.toml` lives at `codex-rs/core/config.schema.json`.