Preview web apps live as your coding agent builds them with Amazon Bedrock AgentCore runtime
Amazon Bedrock AgentCore Session endpoints give each runtime session an authenticated URL that forwards any HTTP method, path, and WebSocket connection to the ports you allow. In this post, you deploy a coding agent that keeps a Vite website running in its session, then watch the live site update in your browser as the agent edits files.
Amazon Bedrock AgentCore allows coding agents to build and preview live web applications, enabling product teams to test changes in real-time. The AgentCore runtime runs each agent session in an isolated microVM, providing an authenticated URL to access the running app in the browser. Session endpoints allow you to open the app with an authenticated URL, sending each request's HTTP method, path, query string, body, and WebSocket connections to the allowed ports.
The solution deploys a coding agent to run a Vite website in its session, then opens a local page with a chat on the left and the live website on the right. The agent switches the site to a dark color theme, and the changes are visible without a refresh. The process involves creating a session with allowed ports, invoking the agent runtime to start the session, and using a local endpoint to forward requests to the Session endpoint.
The Session endpoint provides an authenticated URL that is only valid for the duration of the session, and it is scoped to one session, requiring credentials for each request.
Written by urgent.news from AWS Machine Learning's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.