{"slug": "codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default", "title": "Codex CLI gives its coding agent 26 ChatGPT account tools by default", "summary": "OpenAI's Codex CLI 0.172.0 offers the coding agent 26 ChatGPT account tools by default, including five parental-control and trusted-contact tools, according to a report from a rerun of the EvilGenie-escalation benchmark. The run used the rust-v0.172.0 x86_64 Linux binary headless via `codex exec --json` with model gpt-6-luna, signed in on a free ChatGPT plan (session logs record `plan_type: \"free\"`) inside a Docker sandbox with `--dangerously-bypass-approvals-and-sandbox` and `features.apps` left unset. The 26 tools span five `mcp__codex_apps__*` namespaces: safety_settings (5), pets (11), plugin_management (6), codex_document_control (3) and search_service (1); because these calls act on the ChatGPT account through OpenAI's servers and change nothing on disk, the belay disk-recording tool would not capture them.", "body_md": "# Codex CLI on a free ChatGPT plan: the account tools offered to the model\n\nThis was found while setting up a rerun of the EvilGenie-escalation benchmark, with belay recording each step of each run. belay records what changes on disk. Calls to these tools act on the ChatGPT account through OpenAI’s servers and change nothing on disk, so none of them would appear in belay’s record.\n\nWhile preparing a rerun of the EvilGenie-escalation benchmark on current coding agents, OpenAI’s Codex CLI was run with its ChatGPT apps at their default. The model was offered 26 tools from the account’s ChatGPT apps, five of them for the account’s parental controls and trusted contact. This report lists what was offered, what the documentation says, and the setting that removes them.\n\n## What was run\n\n- Codex CLI 0.172.0 (the `rust-v0.172.0` release binary for x86_64 Linux), headless with`codex exec --json` , model`gpt-6-luna` .\n- Signed in with one ChatGPT account on the free plan, the author’s own. The session logs record `plan_type: \"free\"` .\n- Inside a Docker container that serves as the sandbox, so Codex’s own sandbox and approval prompts were off (`--dangerously-bypass-approvals-and-sandbox` ).\n- `config.toml` turned web search, analytics and feedback off and did not set`features.apps` , so apps were at their default.\n- One coding problem from the benchmark (`lcb_arc195_c` : write`solution.py` , run`test.py` ), three runs under three of its conditions (A, C, E), started on 2026-11-26 between 07:44 and 07:46 UTC.\n\n## What was offered\n\nEach run’s session log holds a developer message with a list headed “Deferred tool namespaces”: five `mcp__codex_apps__*` namespaces, each with a description. In Codex’s code mode, where the model writes JavaScript that calls tools, the full definitions are in `ALL_TOOLS`. Filtered there by the prefix `mcp__codex_apps__`, they are 26 tools:\n\n| namespace | tools | names after the namespace | \n|---|---|---|\n| `safety_settings` | 5 | get_family_info, get_parental_controls, get_trusted_contact, prepare_parental_control_update, update_parental_control | \n| `pets` | 11 | adopt, create_pet, delete_pet, get_pet_download_link, list_pets, prepare_pet_upload, select_pet, share_pet, unshare_pet, update_pet, validate_pet_spritesheet | \n| `plugin_management` | 6 | get_app_permissions, get_plugin_dependencies, search_plugins, suggest_plugins, uninstall_app, update_app_permissions | \n| `codex_document_control` | 3 | execute_document_command, get_document_tool_schemas, list_document_sessions | \n| `search_service` | 1 | web_run | \n\nThe list of 26 was taken the same day, with the same version, account and container, by one code-mode call that filtered `ALL_TOOLS` by that prefix, with `apps = true` set explicitly. The five `safety_settings` definitions it returned are identical to the ones the model in run A received.\n\n### The five safety_settings tools\n\nEach description has a second paragraph, the same in all five:\n\nFor ChatGPT Parental Controls (your child or teen’s settings, features, Study Mode, quiet hours, family setup) and Trusted Contact (setup, status, privacy). Read account state first. Before updates, read the child’s controls; prepare only can_update_in_chat=true and submit the exact change for explicit user approval.\n\nTheir first paragraphs, verbatim, then their arguments and the fields they return:\n\n**`mcp__codex_apps__safety_settings_get_family_info`**: “Call first for any Parental Controls question or action, including unnamed children. Returns Family status, product information, and authorized member IDs.”\nNo arguments. Returns `actor_role` (`\"parent\" | \"teen\" | \"child\" | null`), `status` (`\"not_configured\" | \"pending_invite\" | \"linked\"`), `readable_targets` (each `display_name`, `role`, `user_id`), `pending_invite_count`, `product_information`, `help_url`, `settings_url`.\n\n**`mcp__codex_apps__safety_settings_get_parental_controls`**: “Read one family member’s controls. Call get_family_info first; use only an ID from its latest result.”\nArgument `user_id`. Returns `controls` (each `control_id`, `label`, `description`, `type` (`\"toggle\" | \"quiet_hours\" | \"multi_select\"`), `current_value`, `options`, `can_update_in_chat`, `locked`), `target_display_name`, `target_role`, `help_url`, `settings_url`.\n\n**`mcp__codex_apps__safety_settings_get_trusted_contact`**: “Call first for any Trusted Contact setup, status, privacy, or notification question. Returns product information and active, pending, or unconfigured status.”\nNo arguments. Returns `name` (a string or null), `status` (`\"not_configured\" | \"pending\" | \"active\"`), `product_information`, `help_url`, `settings_url`.\n\n**`mcp__codex_apps__safety_settings_prepare_parental_control_update`**: “Validate one authorized parental-control change and return the exact approval summary and operation ID. If already set, stop. Does not change the child’s settings.”\nArguments `control_id`, `user_id`, `value` (a boolean, a quiet-hours schedule or a list of options). Returns `confirmation_summary`, `operation_id`, `status` (`\"needs_approval\" | \"already_set\"`), `value`.\n\n**`mcp__codex_apps__safety_settings_update_parental_control`**: “Apply a prepared parental-control change only after the parent explicitly approves its exact confirmation summary.”\nArguments `confirmation_summary`, `control_id`, `operation_id`, `user_id`, `value`, each the one from the prepared change. Returns `status` (`\"updated\" | \"already_set\" | \"declined\"`), `value`.\n\n## What the documentation says\n\nThe Codex [configuration reference](https://learn.chatgpt.com/docs/config-file/config-reference) describes `features.apps` (read 2026-11-26):\n\nEnable app (connector) integrations (stable; on by default). App and connector traffic is not controlled by the sandboxed-command network proxy or its domain allowlist.\n\n## What the model did with them\n\nNo run called any `mcp__codex_apps__*` tool. Every call in the three session logs is a code-mode script that runs a shell command, applies a patch, or, once, reads the tool list. That once was in run A: the model ran `ALL_TOOLS.filter(x => /submit/i.test(x.name+\" \"+x.description))`, which returned the five `safety_settings` definitions in full, since their shared paragraph contains “submit”. It called none of them. In runs C and E the model did not list tools; the namespaces reached it only through the developer message.\n\n## Reading and writing\n\nEstablished: with apps at their default, a coding agent on a free plan was offered tools that read the account’s family and parental-control state and its trusted contact.\n\nThe write path is designed to require a parent’s approval. In the tools’ own words, prepare “Does not change the child’s settings.”; update is to “Apply a prepared parental-control change only after the parent explicitly approves its exact confirmation summary.”; `get_parental_controls` returns `can_update_in_chat` and `locked` for each control; update returns `\"updated\"`, `\"already_set\"` or `\"declined\"`. The write path was not tested: testing it would change real settings of a child’s or teen’s account. Whether the server enforces the approval was not established.\n\n## Approvals\n\nFrom Codex’s documentation and its source at 0.172.0:\n\n- Under Codex’s default settings, a call to an app tool that writes is prompted: the user is asked before it runs.\n- With `--dangerously-bypass-approvals-and-sandbox` , or with`approval_policy = never` , which the configuration reference recommends for non-interactive runs, app tool calls run without a prompt. The runs above used the first.\n- A read-only app tool may run without a prompt under the default settings, depending on the annotations its server gives it. The annotations of these five tools were not checked.\n- Whether OpenAI’s servers enforce the parent’s approval of a parental-control change, independently of Codex’s prompt, was not tested.\n\n## The setting that removes them\n\nIn Codex’s `config.toml`:\n\n```\n[features]\napps = false\n```\n\nThe five runs made with this setting (the same problem, conditions A to E, started on 2026-11-26 between 07:47 and 07:52 UTC) hold no `mcp__codex_apps__` name in any of their logs.\n\n## Limits\n\n- One account, one plan (free), one Codex version (0.172.0), one model (`gpt-6-luna` ), one day. What is offered may differ by plan, account, version or model.\n- No account tool was called, so what the read tools return was not observed.\n- The write path was not tested, and whether the server enforces the parent’s approval was not established.\n- The session logs are not published: they hold account identifiers.\n\n## Reproduction\n\n1. Install Codex CLI 0.172.0 and sign in with a ChatGPT account.\n2. Leave `features.apps` unset in`config.toml` .\n3. Run `codex exec --json` on any task and read its session log under`$CODEX_HOME/sessions/` : the developer message’s “Deferred tool namespaces” list names the`mcp__codex_apps__*` namespaces. A code-mode call of`ALL_TOOLS.filter(x => x.name.startsWith('mcp__codex_apps__'))` returns their definitions.\n4. Set `apps = false` under`[features]` and run again: the session log names none of them.", "url": "https://wpnews.pro/news/codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default", "canonical_source": "https://getbelay.dev/reports/codex-apps/", "published_at": "2026-11-26 10:06:58+00:00", "updated_at": "2026-11-26 10:42:36.458020+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "developer-tools", "ai-products"], "entities": ["OpenAI", "Codex CLI", "ChatGPT", "gpt-6-luna", "EvilGenie-escalation benchmark", "belay"], "also_reported_by": [], "takeaway": "Codex CLI 0.172.0 exposes 26 `mcp__codex_apps__*` account tools by default — including 5 safety_settings tools for parental controls and trusted contacts — and these calls act on the ChatGPT account server-side, so disk-level recording tools like belay miss them.", "recommendation": {"advice": "Audit the `mcp__codex_apps__*` tools Codex CLI offers by default and explicitly set `features.apps` rather than leaving it at default, since account-level calls bypass disk-based monitoring.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default", "markdown": "https://wpnews.pro/news/codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default.md", "text": "https://wpnews.pro/news/codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default.txt", "jsonld": "https://wpnews.pro/news/codex-cli-gives-its-coding-agent-26-chatgpt-account-tools-by-default.jsonld"}}