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)
Nov 18
2025
How to automate Session Manager preferences across your organization
Jun 6
2025
How to use persistent storage with AWS Elastic Beanstalk Windows deployment.
May 10
2024
Securely administer servers migrated with AWS Application Migration Service using AWS Systems Manager Session Manager

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.