Skip to main content

Module safe_fix

Module safe_fix 

Source
Expand description

Static safer-alternative suggestions for blocked shell commands.

suggest_fix maps known dangerous command patterns to human-readable alternative suggestions. Suggestions are informational only — never auto-applied. They appear in the blocked-command error message shown to the agent so the model can self-correct.

Structs§

SafeFixSuggestion
A suggestion for a safer alternative to a blocked shell command.

Functions§

suggest_fix
Suggest a safer alternative for a blocked command, if one is known.