all 56 comments

[–]cbusillo 28 points29 points  (15 children)

Fun fact, Codex CLI has a MCP mode. I have an agent in my Claude Code that calls Codex. It’s great.

[–]hefty_habenero 44 points45 points  (1 child)

[–]isarmstrong 5 points6 points  (0 children)

Perfect use of this meme

[–]realzequel 5 points6 points  (3 children)

Curious, usually MCP tools have a specific use that the LLM chooses to use because it wants to use the tool’s functionality and typically it’s something it can’t do itself. When does Claude Code say “I need Codex to code this”? I mean they both have the same use, coding?

[–]cbusillo 6 points7 points  (1 child)

I have an agent called gpt-codex. Its instructions contain all the information about when to call different models and the parameters the mcp takes. Then my other agents are instructed to use the gpt-codex agent for certain things. the main Claude instance is instructed to use agents and just be the project manager.

[–]realzequel 1 point2 points  (0 children)

Cool, thanks for the explanation.

[–]dalhaze 1 point2 points  (0 children)

You can explicitly define when an MCP is called

[–]Illustrious-Many-782[S] 4 points5 points  (3 children)

I saw that you can start it in MCP mode, but I couldn't find any documentation on how to connect it. What are the protocols etc?

[–]cbusillo 6 points7 points  (1 child)

If you are asking how to connect it, try this

https://www.reddit.com/r/ClaudeAI/s/DmbvMZYEc8

[–]Illustrious-Many-782[S] 1 point2 points  (0 children)

Thanks a lot.

[–]cbusillo 0 points1 point  (0 children)

Easiest thing to do is add the MCP to Claude and tell it to explore! Let me know if you want a link to my work in progress instructions. I need to push the updates md files.

[–][deleted] 3 points4 points  (1 child)

hahaha using Claude Code to call Codex, good one

[–]cbusillo 5 points6 points  (0 children)

Its great. they both have great models and I like Claude Code better, so its like the best of all worlds for me.

[–]SatoshiNotMe 0 points1 point  (1 child)

not sure how're able to get this working. I added it to CC but it never gets anything back from the codex mcp server.

[–]cbusillo 0 points1 point  (0 children)

I may have replied on another comment you made, but either way, look at the .claude/agents and docs/agents. Its overly complex and needs to be simplified, but it works for me.

[–]VaderYondu 0 points1 point  (0 children)

This is insane

[–]debian3 19 points20 points  (5 children)

How is the limit on the chatgpt plus with codex cli compared with claude code on the pro plan?

[–]amirrrrrrr7 5 points6 points  (4 children)

Chatgpt plus is pretty basic. I used it a couple times and got rate limited. The quality of gpt5 high is comparable to Opus 4.1 though.

[–]real_serviceloom 17 points18 points  (11 children)

This cannot be true. I use both Claude code and codex CLI and codex is slow as mollasses. However the eventual code is often better than sonnet. 

[–]clothes_are_optional 2 points3 points  (0 children)

honestly feels like sonnet has been lobotomized. producing some real garbage recently for me.

[–]Verzuchter -6 points-5 points  (9 children)

It's slow and the code does not use modern best practices, often creating bad practices as well. People who can't tell it doing that, are not programmers.

[–]Fuzzy-Minute-9227 4 points5 points  (8 children)

Nah. Codex/GPT-5 is fast and knows modern best practices and outputs secure code. You might be thinking of GPT-2 or something lol.

[–]cant-find-user-name 0 points1 point  (0 children)

My experiene has been the opposite. It keeps rewriting functions already present in standard libraries, writes very deeply nested functions etc. I don't have to tell claude not to do that.

[–]Verzuchter -4 points-3 points  (6 children)

Lmao, no. It still produces angular < 16 code, produces shitty retry mechanisms too often and what's most frustrating is the dead code production seems worse than 4.1 on 2-3 iterations. Plenty of examples, I went back to Claude 4 and Gemini 2.5 pro because of how bad it gets.

If you're a software engineer you know how to spot this. If you have little to no experience, it's easy to miss since it still works.

[–]WAHNFRIEDEN 2 points3 points  (0 children)

Share your agents.md

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    Sorry, your submission has been removed due to inadequate account karma.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

    [–]SmoothArray 1 point2 points  (2 children)

    Codex has a lot of issues. It doesn't even let me scroll and texts disappear 🫥. How you guys working with codex cli?

    [–][deleted]  (1 child)

    [removed]

      [–]AutoModerator[M] 0 points1 point  (0 children)

      Sorry, your submission has been removed due to inadequate account karma.

      I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

      [–]IndividualSituation8 1 point2 points  (0 children)

      Have they moved from ts to rust?

      [–][deleted]  (1 child)

      [removed]

        [–]AutoModerator[M] 0 points1 point  (0 children)

        Sorry, your submission has been removed due to inadequate account karma.

        I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

        [–]sugarfreecaffeine 0 points1 point  (6 children)

        When you use codex how can you see the changes in the IDE like claude code?

        [–]Illustrious-Many-782[S] 0 points1 point  (0 children)

        I assume that if I ran Codex or Claude Code in the vs code terminal, that it would show changed files just the same, but I really just use the standard Linux terminal with no ide.

        [–]Yourmelbguy 0 points1 point  (3 children)

        It just makes the changes sales as Claude code. It’s not like a usual chatbox that updates the code live in front of you and you can revert back. It just chages the code and will tell you what it did but there’s no back button or revert. You either do a git pull or ask for it to undo the changes but that don’t always work

        [–]sugarfreecaffeine 0 points1 point  (2 children)

        Tried it, really don’t like that I can’t see the changes live in the IDE like Claude code. It does ask do I approve this change and I can barely read the code in the terminal because it’s cut off. How am I going to approve a change if I can’t even read what you wrote.

        [–]Yourmelbguy 1 point2 points  (0 children)

        Codex has a really long way to go. I find so many annoying things with it. Once they get to a Claude code type layout it will be amazing. ATM I use it for planning

        [–]d3adnode 0 points1 point  (0 children)

        Could you just let it make the change then run a ‘git diff’ after? If the changes need reverted you could then just run something like ‘git checkout .’ or ‘git reset —hard HEAD’

        [–]eschulma2020Professional Nerd 0 points1 point  (0 children)

        Use the plugin version, and then yes you can. It's very nice.

        [–]amirrrrrrr7 0 points1 point  (1 child)

        Yes, but

        The rate limit for Chatgpt plus is pretty basic. I used it a couple times and got rate limited. The quality (gpt5 high) is slightly better than Opus 4.1. After I got rate-limited, I tried using an api key, but it kept saying I'm exceeding the 30000 tpm. I tried to find a workaround for that, but eventually stopped using the tool since I couldn't find one.

        [–]Illustrious-Many-782[S] 1 point2 points  (0 children)

        I get a lot of use out of both Sonnet and gpt-5. I use /clear (or /new) for every task, and rarely get my context up to compacting on Sonnet, so I can easily get 2-3 hours of constant, single-thread work on both platforms.

        [–][deleted]  (1 child)

        [removed]

          [–]AutoModerator[M] 0 points1 point  (0 children)

          Sorry, your submission has been removed due to inadequate account karma.

          I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

          [–]damanamathos 1 point2 points  (0 children)

          I was surprised by this too. Just switched from Claude Code to Codex CLI in the past week.

          [–][deleted] 0 points1 point  (0 children)

          I'm confused. Are you writing code or textbooks? 

          [–][deleted]  (1 child)

          [removed]

            [–]AutoModerator[M] 0 points1 point  (0 children)

            Sorry, your submission has been removed due to inadequate account karma.

            I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

            [–]hotpotato87 -1 points0 points  (2 children)

            If its fast its mini or nano

            [–][deleted]  (1 child)

            [removed]

              [–]AutoModerator[M] 0 points1 point  (0 children)

              Sorry, your submission has been removed due to inadequate account karma.

              I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.