Expand description
Bash command execution tool with safety validation
Structs§
- Bash
Tool - Tool for executing bash commands
- Cargo
Commands - Helper struct for commonly used cargo commands
Enums§
- Bash
Safety - Bash command safety level
Functions§
- is_
read_ only - Check if a bash command is read-only (no side effects). Used to auto-allow commands even under Prompt permission. Inspired by claw-code’s readOnlyValidation.
- validate_
bash_ command - Validate a bash command for safety before execution. Returns (safety_level, reason) for the command.