Ag2 Shell Tool

Give an AG2 beta `Agent` the ability to run shell commands. Covers `LocalShellTool` (client-side `subprocess`, works with any provider) and the provider-native `ShellTool` (Anthropic / OpenAI 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

File contents

ag2ai/build-with-ag2/tree/main/.agents/skills/ag2-shell-tool commit 63083b6aac

Frequently asked questions

npx skillmds@latest add ag2ai/ag2-shell-tool-2