Skip to content

Instantly share code, notes, and snippets.

@lupodellasleppa
Last active August 28, 2026 14:38
Show Gist options
  • Select an option

  • Save lupodellasleppa/c3e12e4706f688d3406ab964b4f553ea to your computer and use it in GitHub Desktop.

Select an option

Save lupodellasleppa/c3e12e4706f688d3406ab964b4f553ea to your computer and use it in GitHub Desktop.
Set agy instead of gemini as agent - OMARCHY
#!/bin/bash
set -e
cd
mise uninstall gemini
mise install agy
cat << 'EOF' > ~/.local/bin/gemini
#!/bin/bash
# Shim translating legacy gemini CLI flags to agy
args=()
while (($#)); do
case "$1" in
--yolo)
args+=(--dangerously-skip-permissions)
shift
;;
*)
args+=("$1")
shift
;;
esac
done
exec agy "${args[@]}"
EOF
chmod +x ~/.local/bin/gemini
mkdir -p ~/.config/omarchy/defaults
echo "gemini" > ~/.config/omarchy/defaults/agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment