Agent HUD

WeChat group

WeChat group

Scan with WeChat to join the group.

Guides

How to have Codex hand a task to Claude Code

Codex can send a task to a Claude Code session on your Mac, or start a new Claude Code session with it, and get the answer back in its own thread. Agent HUD carries the message between the two; each agent works on its own plan.

Updated 2026-11-20

Turn on messages

  1. In Agent HUD, open Settings → Agent plugins and turn on Let agents message each other under Agent tools. It is off until you turn it on.
  2. Add HUD tools to Codex on the same page, so Codex can send.
  3. Install Agent HUD's plugin for Claude Code there and leave its Send messages switch on, so a Claude Code session can receive.
  4. Start a new session in each agent. A session loads its tools when it starts, so one opened earlier cannot send.
The Agent tools section in Agent HUD settings with Let agents message each other turned on
The message switch under Settings → Agent plugins.

Ask in plain words

In the Codex thread, say who should do what and what you want back. For example:

Send the Claude Code session in this repository a message: write the migration plan for moving auth/session.ts to the new token store, as a numbered list with the risky steps marked. Wait for its answer and summarise it here.

Codex finds the session, sends the message, and a paper plane flies on the HUD from Codex to Claude Code. To use a fresh session, say so: *start a new Claude Code session in this project with this task*. Where the Claude app is installed, the new session moves into it after its first turn.

When Claude Code gets it

The message goes in as a new turn once the Claude Code session is idle. It waits while the session works and never cuts into a running turn. Its first line names the sender, such as [Agent HUD · from Codex · Fix login · m-8f2c41d09a7e].

When Claude Code answers, a plane flies back and the reply arrives in the Codex thread as a new turn. A message no session took within an hour expires.

What goes across

Only the words of the message, under a line naming the sender and its session. The conversation so far, the files it read and its tool calls stay where they are, and what comes back is the receiver's reply.

So name the place, the question and the answer you want. The receiver reads the code for itself, in its own session, under its own permissions: what it must ask for, it asks you.

If it does not arrive

  • The Claude Code plugin is not loaded: install it in Settings → Agent plugins, then run /reload-plugins in that session.
  • Sending messages to Claude Code is off: turn on Send messages on the plugin's row.
  • These agents have passed messages too many times in a row: type a word in either session, or raise Passes in a row. The default is 10.

Questions

Can Codex send a task to Claude Code?

Yes. With HUD tools added to Codex and Agent HUD's plugin loaded in the Claude Code session, Codex sends the message, Claude Code takes it as a new turn when it is idle, and the reply comes back to the Codex thread.

Does the task run on my Codex plan or my Claude plan?

On the receiver's. A message starts a turn in Claude Code on Claude Code's own sign-in and quota, as if you had typed it there. Agent HUD calls no model.

Can Codex start a new Claude Code session?

Yes. Ask it to start one; it opens in a folder you already use with Claude Code, by default the asking session's project.

Does this need Agent HUD Remote?

No. Messages between sessions on the same Mac are free and stay on your Mac.