Skip to content

Instantly share code, notes, and snippets.

@daveio
Created February 4, 2026 18:15
Show Gist options
  • Select an option

  • Save daveio/8863b4a5227fe6183687507abb217c1e to your computer and use it in GitHub Desktop.

Select an option

Save daveio/8863b4a5227fe6183687507abb217c1e to your computer and use it in GitHub Desktop.
behold, my justfile
set shell := ["fish", "-c"]
ask backend model +prompt:
@cd {{invocation_directory()}}; just ask-{{backend}} {{model}} "{{prompt}}" | prettier --parser=markdown | glow
ask-copilot model +prompt:
@cd {{invocation_directory()}}; copilot --model {{model}} --silent --allow-all-paths --allow-all-tools --stream on -p "{{prompt}}\\n\\nOutput Markdown." 2>/dev/null
ask-claude model +prompt:
@cd {{invocation_directory()}}; claude --model {{model}} --permission-mode bypassPermissions --dangerously-skip-permissions -p "{{prompt}}\\n\\nOutput Markdown." 2>/dev/null
ask-gemini model +prompt:
@cd {{invocation_directory()}}; echo NOT YET IMPLEMENTED
ask-codex model +prompt:
@cd {{invocation_directory()}}; echo NOT YET IMPLEMENTED
ask-copilot-gpt-5-mini +prompt:
@cd {{invocation_directory()}} && just ask copilot gpt-5-mini "{{prompt}}"
ask-claude-haiku +prompt:
@cd {{invocation_directory()}} && just ask claude haiku "{{prompt}}"
alias ai := ask-claude-haiku
󰀵 dave ~   18:12   in 4s330ms
❯ just ask claude opus "I'm getting `./file.h:1:10: fatal error: 'unicode/regex.h' file not found` - which Homebrew formula should I install?"
The unicode/regex.h header is part of ICU (International Components for
Unicode).
brew install icu4c
★ Insight ─────────────────────────────────────
• ICU4C is a "keg-only" formula in Homebrew, meaning it's not automatically
linked to /usr/local/include
• You'll likely need to add compiler flags for your build system to find it
─────────────────────────────────────────────────
After installing, you'll need to tell your compiler where to find ICU. The
formula will output the paths, but typically:
# For compilation flags
export CPPFLAGS="-I$(brew --prefix icu4c)/include"
export LDFLAGS="-L$(brew --prefix icu4c)/lib"
# Or for pkg-config based builds
export PKG_CONFIG_PATH="$(brew --prefix icu4c)/lib/pkgconfig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment