How to let Claude Code write the code and Codex review it, in one app
Sessions in HB Code can message each other. Ask Claude Code to send its change to a Codex session for a review. That's a second pair of eyes from another model. Codex reads the files in the same project, and its answer lands in the Claude thread.
HB Code is a desktop app for Mac and Windows. It runs Claude Code and Codex on your own computer with your own Claude and ChatGPT plans.
Steps
- Press Add project in the sidebar. Choose the project folder.
- Press New session. Choose Claude. Press Start Claude session. This session writes the code.
- Press New session again. Choose Codex. Press Start Codex session. This session does the review.
- To see both threads at once, press Open session in new window on one of the sessions.
- Give Claude the task. End it with a line like this: When you're done, send the change to the Codex session for a review and ask it to send the review back.
- The Claude thread shows a row Message to with the name of the Codex session. Codex starts a turn with the message.
- The review arrives in the Claude thread as a row Message from. If Claude still runs, the review joins the running turn. If not, it starts a new turn.
- If the review waits in the queue of the Claude session, press Send now.
Notes
- Codex can't see the Claude conversation. The message must say what changed and why. The files Codex reads itself, in the project.
- A review comes back only when Codex sends one. HB Code doesn't wait for an answer.
- A message waits for you when the receiving session has more access than the sending one. With the starting levels, Auto mode for Claude and Full auto for Codex, the review from Codex waits until you press Send now in the Claude session.
- It works the other way round too. Codex can write and Claude can review.
- Two agents can keep going back and forth. Say in the task how many rounds of review you want.
- The iPhone and Android apps show the same message rows, and Send now.
Questions
- Can Codex review what Claude Code wrote without copy and paste?
- Yes. Claude sends the message to the Codex session with HB Code's session message tool. You only ask for it in the task.
- Is there a review button?
- No. You ask the writing agent in plain words. A Codex session also has the /review command for a review of the uncommitted changes.
- Do both sessions need the same project?
- A session can send to any session on the same desktop. For a review, start both in the same project folder, so that Codex reads the same files.
- Can I put both chats side by side in one window?
- Not in one window. Open one session in a window of its own and put the two windows next to each other.
- Which plan pays for the review?
- Each run uses its own agent account. The Claude turn uses your Claude plan and the Codex review uses your ChatGPT plan.