Skip to content

Instantly share code, notes, and snippets.

View RafaelBroseghini's full-sized avatar
🥋

rafa RafaelBroseghini

🥋
View GitHub Profile
@RafaelBroseghini
RafaelBroseghini / block-fast-model.sh
Last active October 5, 2026 16:23
block fast models
#!/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")