This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Deny a fast model on prompt submit, Task, and subagent start. | |
| input=$(cat) | |
| is_fast=$(printf '%s' "$input" | jq -r ' | |
| def fast_name: tostring | test("(^|[^A-Za-z0-9])fast([^A-Za-z0-9]|$)|-fast"; "i"); | |
| def truthy: | |
| if type == "boolean" then . | |
| elif type == "number" then . != 0 | |
| else tostring | test("^(true|1|yes|on)$"; "i") |