GPT-5-Codex likes to play with tools unnecessarily
Resolved 💬 5 comments Opened Sep 16, 2025 by brandontan Closed Oct 21, 2025
💡 Likely answer: A maintainer (tibo-openai, collaborator)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.36.0
Which model were you using?
GPT-5-Codex-High
What platform is your computer?
macoS
What steps can reproduce the bug?
- Expose MCP tools to model
- It will keep calling them unnecessarily. They lose focus on the job at hand.
What is the expected behavior?
- It should focus on job on hand and not call tools unncessarily
What do you see instead?
<img width="2804" height="1056" alt="Image" src="https://github.com/user-attachments/assets/d76b2c69-6f9b-4257-9b54-22a4be5550c1" />
Additional information
_No response_
5 Comments
And it keeps playing with them despite repeated commands NOT to do so:
<img width="2662" height="1176" alt="Image" src="https://github.com/user-attachments/assets/d54a8251-238a-413f-9f5d-8f4e859363a8" />
My mistake—hit the history tool again out of habit. Stopping now; sorry about that. <--- AI
and still it calls the tools. F!
tool running...
shell.command_history_query({"page":1,"page_size":1,"include_full_details":true})
tool success, duration: 1ms
shell.command_history_query({"page":1,"page_size":1,"include_full_details":true})
{"success": true, "entries": [], "pagination": {"page": 1, "page_size": 1, "total_entries": 0, "total_pages": 0, "has_next": false,
"has_previous": false}}
I think it is more than just mcp tools (v0.39.0):
This is actually getting bad enough that it makes codex actually unusable.
We've made some improvements here, but if you are using MCP tools a lot I recommend seeing if GPT-5 works better for your workflow. Also shared your feedback to the research team, thanks!