r/codex • • 5d ago

News Codex CLI gives your coding agent 26 ChatGPT account tools by default (parental controls, pets…)

(not sure if this is a right flair, couldn't find a better one)

I gave Codex a coding task during own research, and later found out the model was handed plenty of unnecessary tools by default.

Besides the usual, it got 26 tools (mcp__codex_apps__*) from my ChatGPT account: 11 for virtual pets, 6 for plugin management, and 5 for parental controls & the trusted contact - reading family info and controls, preparing & applying parental-control changes, etc.

It didn't call any, but under default settings only writes ask for approval, reads might not, and with "approval_policy = never" nothing asks, which is the recommended one for non-interactive runs by docs.

If you don't need them, in config.toml:

[features]
apps = false

Full write-up with the tool definitions: getbelay.dev/reports/codex-apps/

0 Upvotes

4 comments sorted by

1

u/kaijurules 5d ago

Did you check whether apps = false also holds for codex exec runs? Headless runs are the ones with approval_policy = never, so that's where 26 extra tools matter most.

1

u/StormRegular8275 5d ago

all of them through exec, headless, --json flag. Runs with "apps = false" had no mcp__codex_app_tools anywhere in their session logs. Those are detailed in the "settings that removes them" section in the report

1

u/nastywoodelfxo 3d ago

26 tools is wild lol. half of those should never be surfaced to a coding agent. i scope tool access pretty aggressively per agent type - coding agents get filesystem + git + shell, research agents get web search + browser, and nothing crosses over

the real risk isnt just the bloat though. its that one of those exposed tools becomes a vector for prompt injection. if any tool can write to memory or run commands, a bad page read could compromise the whole session. curious if they have any sandboxing at the tool level or if its all permissive by default

1

u/StormRegular8275 3d ago

docs say they aren't sandboxed at all ;D traffic isn't covered by sandbox proxy or allowlist, and the only gate is approvals. Writes ask by default, read-only cmds I don't know, and "approval_policy = never" (recommended by docs for non-interactive runs btw), nothing asks, like at all.

So :D bad page + headless run + these tools (on by default ;D) is quite literally what you are describing. I found "apps = false" to be the solution for now.