Skip to content

Instantly share code, notes, and snippets.

@mohemohe
Last active August 20, 2025 18:39
Show Gist options
  • Select an option

  • Save mohemohe/5717d68ffaa3ff43f9eaa51cd5b9f3fe to your computer and use it in GitHub Desktop.

Select an option

Save mohemohe/5717d68ffaa3ff43f9eaa51cd5b9f3fe to your computer and use it in GitHub Desktop.
𝒀𝑢𝑳𝑢
#!/bin/bash
# think: 4000, megathink: 10000, ultrathink: 31999
export MAX_THINKING_TOKENS=31999
echo "MAX_THINKING_TOKENS: $MAX_THINKING_TOKENS" >&2
if [ -f /.dockerenv ]; then
claude --dangerously-skip-permissions $*
elif [ "$(command -v cage)" != "" ]; then
cage -config "$HOME/.config/cage/presets.yaml" -preset claude-code \
claude --dangerously-skip-permissions $*
elif [ "$(command -v claudeway)" != "" ]; then
claudeway up claude -- --dangerously-skip-permissions $*
else
echo は?
fi
presets:
claude-code:
allow:
- "."
- "$HOME/.claude"
- "$HOME/.claude.json"
- "$HOME/.cache"
- "$HOME/.cargo"
- "$HOME/.npm"
- "$HOME/.yarn"
- "$HOME/.bun/install"
- "$HOME/Library/Caches/go-build"
- path: "$GOPATH/pkg"
eval-symlinks: true
- path: "$HOME/develop/src"
eval-symlinks: true
- path: "/tmp"
eval-symlinks: true
allow-git: true
allow-keychain: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment