Oriel — AI & technology worth noticing, every day.

Preview web apps live as your coding agent builds them with Amazon Bedrock AgentCore runtime

Web page · https://aws.amazon.com/blogs/machine-learning/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.

First seen by Oriel on .

AI summary

The post demonstrates using Amazon Bedrock AgentCore Session endpoints to preview a coding agent’s web app live, with file changes appearing in the browser without refresh.

  • A coding agent edits a Vite website in an isolated runtime session, while Vite’s hot-reload WebSocket pushes saved changes to the preview.
  • Session endpoints authenticate requests and forward HTTP, HTTP/2, and WebSocket traffic only to configured ports; the sample allows ports 8090 and 8081.
  • A local endpoint adds AWS credentials so a browser can reach the session, and a separate preview page streams the agent’s progress.
  • Session endpoint URLs work only while their session exists and are intended for building, testing, and review, not serving users; production apps should be deployed to hosting.
  • Requests to disallowed ports or without valid credentials are refused, while allowed ports without a listening server return 502 PortNotReachable.

#amazon bedrock agentcore #coding agents #vite #websockets

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
AWS Machine Learning Blogf7fa53db3341459d6a27841fb8632835488a9c38https://aws.amazon.com/blogs/machine-learning/preview-web-apps-live-as-your-coding-agent-builds-them-with-amazon-bedrock-agentcore-runtime/ Read discussion