Work with agents
An agent is a versioned configuration: a model, a system prompt, tools, subagents, and a session role. Each time you save changes to an agent, Claude Managed Agents for Amazon Bedrock creates a new version. Agents are archived, not deleted.
Create an agent
To create an agent
Open Claude Managed Agents. On the Agents tab, choose Create agent.
Fill in the sections that are described in the following table.
Choose Create agent.
The console opens the new agent's page. The success message includes Create session, which opens the Create session page with the new agent selected.
Section | What you set |
|---|---|
Starter templates (optional) | Choose a template to fill in the agent's name, description, system prompt, and model. The templates are Deep researcher, Bug hunter, Data analyst, Structured extractor, Code reviewer, and Technical writer. Each template picks the newest model of its tier that is available in the Region. If none is available, the console tells you to choose a model in Agent details. You can change any field after you choose a template. |
Agent details | Agent name (required, up to 256 characters). Model (required). System prompt (optional, up to 100,000 characters). Under Additional details, Description (optional, up to 2,048 characters). |
Tools (optional) | The built-in tools and the AgentCore Gateways that the agent can use, and the access control for each. For details, see Tools and access control. |
Multiagent (optional) | Under Subagent, choose up to 19 agents in the project that this agent, the coordinator, can delegate parts of a task to. An agent that has subagents of its own can't be a subagent. To create an agent in a new tab, choose Create new. |
Permission | The agent's session role. For details, see The agent's session role. |
Tags (optional) | Up to 50 tags for the agent. For how tags work, see Resource tags. |
The agent's model
The Model field opens the Amazon Bedrock model selector. It lists the Anthropic models that are available in the Region. Choose the model, and then under Inference profiles, choose a cross-Region inference profile, such as a geographic profile (US or EU) or a global profile. You can't choose an on-demand model.
For a new agent, the console picks the newest Claude Opus model that the Region offers. If there's none, it picks the newest Claude model that the project can run. Claude Fable models are unavailable in the selector, which shows the reason, unless your account's data retention mode is aws_review. See Step 6: Allow AWS review if your agents use Claude Fable.
Tools and access control
The Tools section has two parts:
Claude built-in tools – Turn on this toggle to give the agent the built-in tools. The Tools and permissions table lists them:
bash,read,write,edit,glob, andgrep, which run commands and work with files in the session's sandbox, and the memory toolsmemory_list,memory_read,memory_search,memory_write,memory_str_replace,memory_append, andmemory_delete, which work with the memory stores that are attached to a session.AgentCore Gateway – Turn on this toggle to connect the agent to your own tools and APIs through AgentCore Gateway. Under Gateway, choose up to 20 gateways. The Gateways and permissions table lists them. To create a gateway in the AgentCore console, choose Create a new Gateway.
For each tool and each gateway, choose a value in the Access control column:
Access control | What happens on a tool call |
|---|---|
Always allow | The call runs without asking. Built-in tools, including the memory tools, start on Always allow. |
Always ask | The session waits for your approval before each call. Gateways that you add start on Always ask. |
Always deny | The call is blocked. The tool is turned off. |
If any memory tool is on, memory_read must also be on. An agent needs read to load skills, and the memory tools to use memory stores. For more about tools, skills, and memory, see Add tools and skills.
The web tools web_fetch and web_search aren't available in Claude Managed Agents for Amazon Bedrock, so the console doesn't list them.
The agent's session role
Each agent has one session role in your account. You choose it when you create the agent, and you can change it when you edit the agent. Sessions of the agent run as this role by default, and their model calls and gateway calls are signed with it. You don't choose a role when you create a session.
In the Permission section, under IAM permissions, choose one of the following:
Create default role – The console creates a role with the permissions that the agent needs, including permission to call the gateways that you added. Enter a Role name, or keep the generated name, which starts with
AmazonBedrockClaudeManagedAgentsServiceRole-.Use another role – Under Role name, choose an existing role. The list shows roles that Amazon Bedrock can assume. The role must trust Amazon Bedrock and have the tag
ManagedAgentsExecutionRolewith the valueenabled. If the role that you choose doesn't have the tag, choose Add tag to add it.
For the permissions that the session role needs, see Set up permissions and prerequisites.
View an agent
To open an agent's page, choose its name on the Agents tab. The page has the following parts:
Details – The agent's name, status (Active or Archived), description, ID, ARN, and dates. To copy the ARN, choose Copy ARN.
Configurations tab:
View invocation code – A code sample that starts a session with this agent, in Python, TypeScript, or Java.
Versions – The agent's versions. To open a version, choose its number.
Model and system prompt, Tools, Multiagent, and Permission – The agent's current configuration.
Sessions tab – The agent's sessions. To start one, choose Create session.
The page's buttons are Archive, Edit, View metrics in CloudWatch, and Create session. View metrics in CloudWatch opens the agent's page in CloudWatch GenAI Observability. See Monitor agents with Amazon CloudWatch and AWS CloudTrail.
Edit an agent
When you save changes to an agent, Claude Managed Agents keeps your previous configuration as a version and creates a new version with your changes. You can't edit an archived agent.
To edit an agent
Open the agent's page, and then choose Edit. You can also select the agent on the Agents tab, and then choose Actions, Edit.
Change the agent's settings. The sections are the same as on Create agent, without Starter templates.
Choose Save as new version.
The success message names the new version and the version that holds your previous configuration.
If someone else saved the agent after you opened it, the console shows a warning and doesn't save your changes. Choose Reload to load the latest version, and then make your changes again.
View an agent version
Each version is read-only. To view one, open the agent's page. On the Configurations tab, under Versions, choose the version number. The version's page shows the model, system prompt, tools, and subagents that the version had.
Archive an agent
Archiving makes an agent read-only. You can still view an archived agent and its sessions, but you can't change it or use it for new sessions. You can't unarchive an agent. Claude Managed Agents doesn't delete agents.
To archive an agent
Open the agent's page, and then choose Archive. You can also select the agent on the Agents tab, and then choose Actions, Archive.
In Archive agent?, type confirm.
Choose Archive.
Archived agents have the status Archived. The Agents tab shows them when you clear its Status = Active filter. The agent pickers on other pages don't list them.