Cross-platform interactive launchers for Codex, Gemini, and Claude Code.
This package provides lightweight wrapper commands that help you:
- choose a working directory,
- pick a model,
- choose a permission/sandbox mode,
- and launch your selected CLI with consistent prompts.
It supports:
- Windows (PowerShell-based launcher flow)
- macOS and Linux (Node-based launcher flow)
Primary short commands:
codexqgeminiqclaudeq
Legacy aliases:
codex-quick-launchgemini-quick-launchclaude-quick-launch
Your original upstream CLIs remain available directly:
codexgeminiclaude
npm install -g @openai/codex @google/gemini-cli @anthropic-ai/claude-code https://codeload.github.com/aGamingGod1234/codex-gemini-quick-launch/tar.gz/refs/heads/maincodexq
geminiq
claudeqOptional dry-run (show command without launching):
codexq --no-launch
geminiq --no-launch
claudeq --no-launchWhen you run any launcher (codexq, geminiq, claudeq), it follows this high-level flow:
- Check for updates for this quick-launch package.
- If an update is available, it attempts to auto-update by running the configured global npm install command.
- Continue to launcher UI (even if update fails).
- Ask for target directory.
- Ask for model (unless passed by arg where supported).
- Ask for permission/sandbox mode.
- Show summary.
- Launch selected CLI (or print command if
--no-launch).
- Uses
scripts/agent_launcher.ps1. - Keeps the existing PowerShell interactive behavior.
- Supports providers:
codex,gemini,claude.
- Uses
scripts/agent_launcher_unix.js. - Provides matching interactive flow in Node.js.
- Supports providers:
codex,gemini,claude.
- Model flag:
-m <model> - Adds reasoning config:
-c reasoning_effort=<level>(Windows flow uses interactive reasoning selection) - “Allow all permissions” mode adds:
--dangerously-bypass-approvals-and-sandbox
- Model flag:
-m <model> - “Allow all permissions” mode adds:
-s false --approval-mode yolo
- Model flag:
--model <alias-or-model> - Supported aliases in launcher:
default,sonnet,opus,haiku,sonnet[1m],opusplan
- “Allow all permissions” mode adds:
--dangerously-skip-permissions
On postinstall, this package configures native prompt hooks for the upstream CLIs so refinement happens even when users run plain codex, claude, or gemini directly (not only codexq/claudeq/geminiq).
Installed artifacts:
~/.claude/hooks/cgl-refine.js(+~/.claude/hooks/common.js)~/.gemini/hooks/cgl-refine.js(+~/.gemini/hooks/common.js)~/.claude/settings.jsonmerge: adds/updateshooks.UserPromptSubmit.hooks[]entry namedcgl-auto-refine~/.gemini/settings.jsonmerge: adds/updateshooks.BeforeAgent.hooks[]entry namedcgl-auto-refine~/AGENTS.mdmerge: adds/updates a marked Codex instructions block (CGL_AUTO_REFINE_START/CGL_AUTO_REFINE_END)
Behavior:
- The hook/snippet instructs agents to always output a short Refined Prompt/Refined Spec section first, then continue implementation in the same response.
- Settings merges are non-destructive: existing keys and other hooks are preserved.
Opt-out:
- Set
CGL_DISABLE_REFINE=1and rerun postinstall (npm install -g ...) to skip install/update of refinement config. - If you previously installed refinement hooks/snippets, remove the
cgl-auto-refinehook entries from~/.claude/settings.jsonand~/.gemini/settings.json, and remove the marked block from~/AGENTS.md.
Manual verification:
- Launch
claude, submit any prompt, confirm the first section is Refined Prompt (or Refined Spec) before coding output. - Launch
gemini, submit any prompt, confirm the first section is Refined Prompt (or Refined Spec) before coding output. - Launch
codexin a directory under your home folder, submit any prompt, confirm the first section is Refined Prompt (or Refined Spec) before coding output.
The launcher performs periodic update checks. If a newer version is detected, it attempts to run:
npm install -g @openai/codex @google/gemini-cli @anthropic-ai/claude-code https://codeload.github.com/aGamingGod1234/codex-gemini-quick-launch/tar.gz/refs/heads/mainBehavior:
- If update succeeds, launcher proceeds using updated installation.
- If update fails (network, permissions, npm issues), it prints a warning and continues with current installed version.
The project accounts for core platform filesystem differences:
- Separators: Windows commonly
\, macOS/Linux/ - Case sensitivity:
- Windows: typically case-insensitive
- Linux: case-sensitive
- macOS: commonly case-insensitive by default (can vary)
- User/app data locations:
- Windows:
%USERPROFILE%,%APPDATA%,%LOCALAPPDATA% - macOS:
$HOME,~/Library/Application Support - Linux:
$HOME, often XDG dirs such as~/.local/state
- Windows:
- Path roots:
- Windows: drive letters (
C:\) - macOS/Linux: single root (
/)
- Windows: drive letters (
bin/codex-quick-launch.js– codex command wrapperbin/gemini-quick-launch.js– gemini command wrapperbin/claude-quick-launch.js– claude command wrapperscripts/agent_launcher.ps1– Windows interactive launcherscripts/agent_launcher_unix.js– macOS/Linux interactive launcherscripts/update-check.js– update detection + auto-update logicscripts/postinstall.js– install metadata + Windows legacy shim cleanup
- Requires Node.js 18+.
- Quick launchers do not replace upstream CLIs; they orchestrate launch configuration and then call those CLIs.