

# Work with the agent

Your agent-ready WorkSpace comes with an AI agent that runs on your WorkSpace. You describe what you want in plain language, and the agent reads files and runs commands for you. You can work with the agent in three views.

**Note**  
This feature is in public preview. Features and behavior are subject to change.


| View | Use it to | 
| --- | --- | 
| Chat | Ask the agent questions and give it tasks in plain language. | 
| Terminal | Work with the agent at a command line. The agent starts automatically. | 
| Desktop | Use the full streaming Windows desktop and your own tools. You can show the chat side by side with the desktop. | 

Your chats and terminals are saved on the WorkSpace, so you can close the tab and pick up where you left off.

**Note**  
The agent can make mistakes. Review its work before you rely on it or share it.

## Chat
<a name="agentic-work-with-agent-chat"></a>

### Start a chat
<a name="agentic-work-with-agent-start-chat"></a>

**To start a chat**

1. Open the **Chat** view.

1. (Optional) Choose a model from the model list below the message box. For more information, see [Choose a model](#agentic-work-with-agent-choose-model) later in this topic.

1. Describe what you want in plain language, and then choose **Send**.

**Note**  
A chat message can be up to 1 MiB, about one million characters of plain text. For longer content, save it to a file in your workspace folder and ask the agent to read it.

To start another chat, choose **New chat session** (\+).

### Follow the agent's work
<a name="agentic-work-with-agent-follow"></a>

While the agent works, an indicator shows that it's processing your request and generating a response, and the reply appears as the agent writes it. Each time the agent uses a tool, such as reading a file or running a command, a step appears above the reply. Choose a step to see what the agent asked the tool to do and what came back.

If you scroll up while a reply is arriving, choose **Jump to latest** to go back to the newest text. To copy a message or a block of code, choose its **Copy** button.

Each chat handles one request at a time. To work on something else while the agent is busy, start another chat.

### Approve agent actions
<a name="agentic-work-with-agent-approve"></a>

Before the agent does something that your administrator hasn't approved in advance, such as running a command, it stops and asks you. A card appears in the chat, and the agent waits until you answer. The request has no time limit.

**To answer a request**

1. Read the card. It shows what the agent wants to do and the command or file involved.

1. Choose **Approve & run** to let the agent continue, or **Not now** to decline. If you decline, the agent carries on without that action.

The **Chat** button shows how many requests are waiting for you, so you can tell from other views. A request stays until you answer, even if you reload the page.

**Note**  
If a command is very long, the card shows only the beginning.

### Sign in to a service
<a name="agentic-work-with-agent-signin"></a>

If the agent needs you to sign in to a service, such as GitHub, a sign-in card appears in the chat, and the sign-in page opens in the browser on your WorkSpace desktop.

**To sign in from the chat**

1. On the sign-in card, choose **Show desktop**.

1. Sign in to the service in the browser window on the desktop.

1. Return to the chat. The agent continues.

If the page doesn't open, choose **Open on desktop** on the card. If you don't finish signing in within 10 minutes, the sign-in expires. The step that needed it fails, and the agent continues.

### Stop a turn
<a name="agentic-work-with-agent-stop-turn"></a>

To end a task before it's done, choose **Stop**. It replaces the send button while the agent works. The reply keeps the text that has arrived, and you can send a new message.

**Note**  
**Stop** doesn't undo anything. If the agent has already edited a file or run a command, the change stays. Check the result before you continue.

## Terminal
<a name="agentic-work-with-agent-terminal"></a>

### Start a terminal
<a name="agentic-work-with-agent-start-terminal"></a>

Each terminal starts Claude Code for you. You don't install or configure anything, and your files and tools are already there. Enter a request and watch the agent read, edit, and test right in the terminal.

**To open a terminal**

1. Open the **Terminal** view.

1. Choose **New terminal session**.

1. Enter a request, and then press **Enter**.

Each terminal is its own conversation with the agent. A terminal runs Claude Code, not a general command prompt. To use PowerShell or other Windows tools, use the **Desktop** view.

### Approve agent actions in a terminal
<a name="agentic-work-with-agent-approve-terminal"></a>

When the agent needs your approval in a terminal, it asks in the terminal instead of showing a card. Answer in the terminal. The agent waits until you answer.

### Sign in to a service from a terminal
<a name="agentic-work-with-agent-signin-terminal"></a>

**To sign in from a terminal**

1. In the terminal, the agent asks to open a sign-in URL. Choose **Accept**.

1. The sign-in page opens on the desktop, and the **Desktop** view comes to the front. Sign in to the service in the browser window.

1. Return to the **Terminal** view. The agent continues.

If the sign-in expires before you finish, the step that needed it fails, and the agent continues.

### Stop the agent in a terminal
<a name="agentic-work-with-agent-stop-terminal"></a>

To interrupt the agent in a terminal, press **Esc**. Interrupting doesn't undo anything. If the agent has already edited a file or run a command, the change stays.

### If a terminal ends
<a name="agentic-work-with-agent-terminal-ends"></a>

If the agent in a terminal ends, the terminal's row in the list shows **Shell ended**, **Ended - can reopen**, or **Failed**. If you see **Ended - can reopen**, choose **Reopen conversation** to continue the conversation in a new shell. To remove the terminal and its conversation, choose **Discard**. Otherwise, choose **Close**.

## Desktop
<a name="agentic-work-with-agent-desktop"></a>

The **Desktop** view shows your WorkSpace's Windows desktop in a tab. Use any app on your WorkSpace, with nothing to install. The agent works on the same WorkSpace, so you see its changes in your files and apps. When the agent needs you to sign in to a service, the sign-in page opens here.

Switching between views doesn't interrupt anything. The desktop stays connected, and the agent keeps working.

## Sessions
<a name="agentic-work-with-agent-sessions"></a>

Your chats and terminals are sessions. They're saved on the WorkSpace, so you see the same sessions on every device. Chats are listed under **Sessions** in the **Chat** view, and terminals are listed in the **Terminal** view.
+ To open an earlier session, choose it in the list, or choose it under **Recent sessions** on **Home**.
+ To find a chat, enter text in **Search**.
+ To change the order of your chats, choose **Sort sessions**, and then choose an order.
+ To keep a chat at the top, open the actions menu on its row, and then choose **Pin**.
+ To rename a session, open the actions menu on its row, and then choose **Rename**.
+ To delete a session, open the actions menu on its row, and then choose **Delete**. The session is deleted immediately, without a confirmation prompt.
+ To see older messages in a chat, scroll to the top and choose **Show earlier messages**.

Pins and sort order are saved in your browser, so they don't follow you to another device. AWS deletes sessions that you haven't used for 182 days.

**Note**  
Your chats are saved on your WorkSpace. WorkSpaces doesn't include chat content in the usage logs that it delivers to your administrator. However, your organization's administrators might be able to access files on your WorkSpace. They can also choose to log model requests in Amazon Bedrock. For your organization's policy, ask your administrator.

## Choose a model
<a name="agentic-work-with-agent-choose-model"></a>

In the **Chat** view, the name of the current model appears below the message box. Choose the name to see the list. **Default** uses the WorkSpace's default model, and the list shows which model that is. Your choice applies from your next message, and each chat keeps its own choice. If no model name appears, the agent uses the default model. In a terminal, run the `/model` command to choose a model. The command lists only the models that your WorkSpace allows.

## See available skills
<a name="agentic-work-with-agent-skills"></a>

Skills are sets of instructions that the agent loads when a task calls for them. Your administrator can set skills for you, and you can add your own.

**To see available skills**

1. Choose your name at the bottom of the navigation rail, and then choose **Settings**. On a mobile device, open the menu first.

1. Choose **Skills**.

The list shows the skills that your administrator set up, with each skill's name and a short description. You can also add your own skills. Put a folder that holds a SKILL.md file in your skills folder or in the project. The agent uses your skills, but they don't appear in this list.

To see the services that the agent can connect to, choose **Connectors** in the same place.

## Working with files and tools the agent creates
<a name="agentic-work-with-agent-files-tools"></a>

The agent runs under its own Windows account. As a result:
+ It saves files in your workspace folder, `D:\Users\{{user}}\workspace`. It can read, but not change, your Documents, Desktop, and Downloads folders and common code folders such as repos, unless your administrator allows it.
+ Before you run Git in a repository the agent created, run `git config --global --add safe.directory {{path}}` once for that repository.
+ Tools the agent installs might not be found in a new session. Install tools for all users (requires administrator access), or ask the agent to add the tool's folder to `.claude\settings.local.json`.

## If something goes wrong
<a name="agentic-work-with-agent-troubleshoot"></a>


| What you see | What to do | 
| --- | --- | 
| The agent did not finish this turn. | Read the message from the agent for the reason, and then choose **Send** again. | 
| The agent did not take this prompt. | Choose **Send** again. If the agent is still working on an earlier message, wait for it to finish first. | 
| Not connected to the workspace agent. | Wait. The connection returns on its own, and messages that you send in the meantime are sent when it does. If the message stays, close and reopen the WorkSpace. For more information, see [Disconnecting](agentic-disconnecting.md). | 
| Interrupted before the agent finished. | Your connection dropped during the reply. The agent keeps working, and the chat shows the finished reply after you reconnect. | 
| This message is too large to send. | Shorten the message, or split it into two messages. | 
| This session was removed by the agent. | Send your message again to start a new chat. Your unsent message is back in the message box. | 
| Git reports "detected dubious ownership" in a repository the agent created. | The agent runs under its own Windows account. Repositories it creates are owned by that account, so Git won't run in them for you until you mark them as safe. Run this once for each repository:<br />`git config --global --add safe.directory {{path-to-repository}}`<br />For example: `git config --global --add safe.directory D:/Users/{{user}}/workspace/my-app`<br />Use forward slashes (/) in the path. The setting stays in effect after your WorkSpace is rebuilt. | 
| Tools that the agent installs aren't found in a new session. | The agent runs under its own Windows account and can't change the Windows `PATH`. As a result, a tool that it installs might not be found the next time you start a chat or terminal session. To make a tool available to the agent in every session, do one of the following:+  Ask your administrator to install the tool for all users. Tools installed for all users with the tool's standard installer are available to the agent. Start a new chat or terminal session after the install. <br />+  Ask the agent to add the tool to its project settings. For example: "Add the folder you installed Node into to `env.PATH` in `.claude\settings.local.json`, keeping the full existing `PATH` after it." This applies only to that project folder. <br />Tools that you install only for your own user account aren't available to the agent. | 

## Next steps
<a name="agentic-work-with-agent-next-steps"></a>
+ [Connect to services](agentic-connect-services.md)
+ [Approve agent actions](agentic-approvals.md)
+ [Disconnecting](agentic-disconnecting.md)
+ [Getting started with your agent-ready WorkSpace](agentic-user-get-started.md)