Home icon

Persist session state with filesystem configuration and execute shell commands

Machine Learning Blog



This article announces two new capabilities for Amazon Bedrock AgentCore Runtime: managed session storage for persistent filesystem state and execute command for running shell commands directly in agent sessions.

  • Managed session storage persists agent filesystem state across stop/resume cycles
  • Configure persistent storage by adding sessionStorage to filesystemConfiguration at mount path /mnt
  • Session data retained for 14 days of idle time before cleanup
  • Execute command runs deterministic operations like npm test or git push directly in agent environment
  • Commands execute in same container and filesystem as agent with streaming output
  • Each command spawns new bash process; no persistent shell session between commands
  • Shared filesystem enables workflows combining agent reasoning with deterministic operations
  • Use cases include test automation, git workflows, environment bootstrapping, and validation gates

Together, managed session storage and execute command enable multi-day development workflows where agents can persist work across sessions and run deterministic operations without LLM routing.



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

Mar 25
2026
Amazon Bedrock AgentCore Runtime now supports managed session storage for persistent agent filesystem state (preview)
Mar 24
2026
Session policies for Amazon EKS Pod Identity
Mar 17
2026
Implementing Persistent Storage for AWS Fargate and Amazon EBS
Mar 17
2026
Amazon Bedrock AgentCore Runtime now supports shell command execution

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.