Home icon

Build a serverless image editing agent with Amazon Bedrock AgentCore harness

Machine Learning Blog



This article demonstrates building a serverless image editing agent using Amazon Bedrock AgentCore harness, which handles orchestration, tool routing, and memory management through configuration rather than custom code.

  • AgentCore harness eliminates orchestration code—define agents entirely through API parameters with no Python framework or container needed
  • Per-invocation model switching routes basic chat to Claude Haiku and image edits to Claude Sonnet while preserving conversation context
  • Per-invocation persona override injects domain-specific system prompts (Real Estate, Retail, Automotive) without redeployment
  • AgentCore Memory stores 30-day conversation history, enabling agents to retain full context across turns within a session
  • AgentCore Gateway with MCP exposes three Lambda-backed image editing tools with semantic routing for automatic tool selection
  • InvokeAgentRuntimeCommand runs Python scripts directly on the microVM for post-processing like watermarking with zero token cost
  • Full solution deploys with single command using AWS CDK, including React frontend, authentication, encrypted storage, and three image editing tools

AgentCore harness enables production-ready agents with straightforward tool-calling patterns by removing operational overhead and allowing behavior iteration through configuration changes.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Oct 21
2024
Deploy a serverless web application to edit images using Amazon Bedrock
Jan 23
2026
Build AI agents with Amazon Bedrock AgentCore using AWS CloudFormation
Oct 14
2025
Build a device management agent with Amazon Bedrock AgentCore
Jan 16
2026
Deploy AI agents on Amazon Bedrock AgentCore using GitHub Actions

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.