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.
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
2026
2025
2025
2024
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.