Ag2 Shell Tool

Give an AG2 `Agent` the ability to run shell commands. Covers `SandboxShellTool` (client-side `subprocess` via `LocalEnvironment`, works with any provider) and the provider-native `ShellTool` (OpenAI Responses execution). Use when the user wants the Agent to execute commands, build/test code, manage files, or operate on a workspace. Always pair with sandboxing — `allowed`, `blocked`, `ignore`, or `readonly`.

ag2ai Updated 252 repo stars

File contents

ag2ai/ag2-skills commit 101e3ed5a9

Frequently asked questions

npx get-skill add ag2ai/ag2-shell-tool