# Chat with your agent in OSMates

Chat in an OSMates window with the AI coding agent you already use, such as Claude Code or Codex.

## Install an ACP agent

1. Install an agent that speaks the Agent Client Protocol (ACP). Claude Code needs its adapter, `claude-agent-acp`, and Codex needs `codex-acp`. Gemini CLI, goose, and OpenCode speak ACP themselves.
2. Sign in to the agent in Terminal, as its own guide says.

OSMates doesn't install or sign in agents, and never sees their keys. If the window says the agent "isn't signed in", sign in in Terminal, then click **Start** again.

## Start your agent

1. Choose **Window > Agent**. To work on one machine, choose **Machine > Ask Your Agent** instead.
2. Choose your agent next to **Agent**. If it isn't listed, click **Choose Program** and select it.
3. Choose its tools next to **Tools**. See [Pick a profile](https://osmates.com/docs/agents#pick-a-profile).
4. Click **Choose Folder** and select the folder the agent works in.
5. Click **Start**, type a request, then press Command-Return.

![The Agent window's setup, with Claude Code as the agent, Full tools, and a project folder](https://osmates.com/docs/images/agent-window-setup.png)

The agent runs as you, in that folder. In a machine's Agent window, each conversation's first request names that machine.

The window shows the agent's messages, its plan, and each tool call. Click a tool call to see its input, paths, and output. Proposed file changes show as `-` and `+` lines, which you can't edit.

## Answer the agent's questions

The agent asks before some of its own steps, such as running a command.

1. Read what it wants to do and the paths it names.
2. Click one of its choices, such as **Allow Once**, **Always Allow**, or **Don't Allow**.

Escape doesn't allow. The agent decides what **Always Allow** covers, in the words the sheet shows. What the agent does to a machine also needs your [permission in OSMates](https://osmates.com/docs/agent-access).

## Stop the agent

Click **Stop**, or press Command-Period. The agent ends its current request, and unfinished tool calls show Cancelled. The conversation stays.

To end the agent's process, click **Quit Agent** in the toolbar, or close the window.

## Open an earlier conversation

1. Click **Conversations** in the toolbar.
2. Choose a conversation under **Earlier Conversations**, or choose **New Conversation**.

The list shows the agent's conversations in the window's folder, for agents that keep them.

## Limits

- Only agents that speak ACP version 1 work.
- Requests are text, without images or files.
- The agent's terminal output stays in the agent. The window shows only that a command ran.
- Links in the agent's messages don't open.
