← English news
Priority 4/5

Amazon Bedrock Introduces Interactive Shell Support in AgentCore Runtime via WebSockets

Amazon Bedrock has enhanced its AgentCore Runtime with the release of the InvokeAgentRuntimeCommandShell API. This new capability establishes a persistent terminal session over WebSockets, backed by a pseudoterminal in the running agent environment. This allows engineers to interact directly with agent sessions in a manner similar to a standard terminal shell, facilitating deeper live inspection.

Primary source

Open AWS What's New ↗

This article summarizes the source. Check the original for full details and conditions.

Comparison

AspectBefore / AlternativeAfter / This
Execution PatternSingle-use command execution via InvokeAgentRuntimeCommandPersistent, multi-turn interactive session via WebSockets
Terminal BackingStandard stateless execution without a continuous contextFull pseudoterminal (PTY) backing for real-time shell feedback
Use Case SuitabilitySimple, automated task running and script executionComplex debugging, live environment exploration, and interactive session validation

Action Checklist

  1. Verify IAM policies to control access to the new InvokeAgentRuntimeCommandShell API Ensure strict boundaries are set as this allows direct pseudoterminal access to the environment.
  2. Configure network settings and proxy rules to support persistent WebSocket connections WebSockets require different timeout and keep-alive handling compared to standard REST calls.
  3. Update development and testing toolchains to leverage the interactive shell for agent debugging Integrate the new API into developer sandboxes to accelerate testing cycles.