Chat with an agent in Castle
Ask Claude Code or Codex for devices from a chat inside Castle. Open the sidebar, pick a device, choose a mode, read History and stop a reply.
By the end of this page you will have asked your agent for something from a chat inside Castle.
Castle has an optional sidebar on the right of its main window, where you chat with Claude Code or Codex. It is for asking an agent for devices without leaving Castle. Connect the agent first: Connect your agent.
Use it
- Open the agent sidebar.
- Pick the device you want. The open device shows as a chip in the message box.
- Type what you want and press Send.
- Press Stop to stop a reply.
If the agent is not ready, or did not start, the sidebar shows a card that says why. If agents are off, the header says Agents are off, with an Allow Agents button.
Mode
A pill sets the agent program’s own mode. Claude Code has Auto, Accept edits and Ask. Codex has Auto and Ask.
History
History lists your earlier chats. A long chat shows its newest items, and each answer has Copy.
In the device window
A device’s own window has the agent’s name in its bar. Press it to show or hide a chat drawer on the window’s right edge.