---
id: 8623
lang: en
title: "AWS adds session memory and shell-command execution to AI agents"
published_at: "2026-05-02 17:13:55"
source_name: "AWS Machine Learning Blog"
source_url: "https://aws.amazon.com/blogs/machine-learning/persist-session-state-with-filesystem-configuration-and-execute-shell-commands/"
canonical_url: "https://news.hamidun.com/en/news/8623"
categories: ["llm"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# AWS adds session memory and shell-command execution to AI agents

> **Краткая суть (BLUF):** AWS has extended Bedrock AgentCore with two practical features for coding agents: persistent storage for session files and direct shell-command execution. An agent can now return to the same workspace after a pause, and commands such as npm test, pytest or git push run in the same container, without extra orchestration through the model.  The platform also streams stdout and stderr in real time, which speeds up checking edits and debugging.

AWS has updated its Bedrock AgentCore Runtime service: AI agents can now keep sessions across restarts and run shell commands directly from the model.

### Why do AI agents need persistent storage?
Previously, an agent's session lived inside a separate micro-VM and lost all its files once it stopped. Now an agent can keep its working state across restarts, so saved dependencies or generated code, for example, are no longer lost.

### Which commands can an AWS Bedrock AI agent run?
An agent can run predictable shell commands, such as tests or git operations, directly inside its own environment, without needing external tools.

### Why should AI agents run shell commands?
To perform predictable operations such as tests, git commands and dependency installation safely inside the model's isolated environment.

---
- **Первоисточник:** [AWS Machine Learning Blog](https://aws.amazon.com/blogs/machine-learning/persist-session-state-with-filesystem-configuration-and-execute-shell-commands/)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/8623
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
