Skip to content

Calling External Coding Agents

When you ask the Agent, it opens a terminal tab, starts codex or claude code, sends your request, and reads the response. The Agent then answers in the chat based on that response.

A tab where a Coding Agent is running is named like “Terminal <number> · codex” or “Terminal <number> · claude” (the tab for claude code shows “claude”).

Use this when you want codex or claude code in your environment to do the work and receive its response in the chat. You can watch the Coding Agent work in the terminal tab.

The codex or claude code CLI must be runnable as a command in your environment. The Agent starts it by sending codex or claude as a command to the shell in the terminal tab.

  1. In the chat, make a request that names the Coding Agent to use.

    Example request:

    Use codex to look up the weather in Tokyo.

  2. If the Agent opens a terminal tab and starts a Coding Agent, a confirmation dialog appears before it starts. Check the details and press “Allow”.

  3. A confirmation dialog also appears before the Agent sends the request to the Coding Agent. Press “Allow” to send the request.

  4. The Agent reads the Coding Agent’s response and answers in the chat.

Which method the Agent chooses for this request may depend on the content of the request. The steps above are the flow when the Agent opens a terminal tab and starts a Coding Agent.

The following images show codex and claude code running in terminal tabs.

codex working in a terminal tab

claude code working in a terminal tab

Before starting a Coding Agent, sending a request, or sending commands or keys to a terminal tab, a confirmation dialog appears.

  • The dialog title is “Allow <tool name>?”. Press “Allow” to run it, or “Deny” not to run it.
  • If you do not respond within 120 seconds, it is treated as denied.
  • When Tool Permission under Agent in Settings is set to “Auto Allow”, the confirmation dialog does not appear.

When the Coding Agent asks for confirmation

Section titled “When the Coding Agent asks for confirmation”

The Coding Agent’s CLI may stop and ask for its own confirmation (such as approving an operation). In that case, the Agent may read the screen and ask you how to answer.

You can also select the terminal tab and answer by typing directly into the CLI.

  • A Coding Agent cannot be started in a tab where a Coding Agent has already been started, or where a program other than the shell is running in the foreground.
  • The Agent can also send requests to a Coding Agent running in a terminal tab that you opened yourself.