Skip to content
daftAI2026Public

About

Zero-overhead cross-platform CLI trampoline for agy — gay -> agy, gay --yolo -> agy --dangerously-skip-permissions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

gay-cli

Zero-overhead cross-platform CLI trampoline for agy.

English · 中文

CI Version Stars License Zero Dependencies

gay-cli terminal demo

Prerequisite: gay delegates directly to agy. Install antigravity-cli first and make sure agy is in your PATH.

Features

  • Zero resident overhead on Unix: Pure POSIX #!/bin/sh with exec agy "$@", replacing the wrapper process in-place (~1ms startup, 0 bytes resident RAM, 100% native TTY/TUI/signals).
  • All platforms out of the box: Native implementations for macOS, Linux, and Windows (PowerShell & CMD), plus zero-dependency GitHub npm install.
  • Zero runtime dependencies: Auditable scripts with no unsigned binaries and no SmartScreen/Gatekeeper warnings.
  • Transparent passthrough: Only --yolo is rewritten (stopped after --); top-level -h/--help prepends a separated gay-cli alias header before agy --help, and every other flag, subcommand, space, quote, and exit code passes straight through to agy.
  • Clean interactive handoff: Automatically clears the gay / gay --yolo trigger line on interactive TTY consoles before launching agy (leaves pipes, --help, -p/--print, and subcommands untouched; set GAY_NO_CLEAR=1 to opt out).

Quick Start

Homebrew (macOS / Linux)

brew install daftAI2026/tap/gay

macOS / Linux (script)

curl -fsSL https://raw.githubusercontent.com/daftAI2026/gay-cli/main/install.sh | sh

Windows (PowerShell)

irm https://raw.githubusercontent.com/daftAI2026/gay-cli/main/install.ps1 | iex

npm (GitHub)

npm install -g github:daftAI2026/gay-cli

With an AI agent

Tell your agent (Antigravity, Claude Code, Codex, Cursor, etc.):

Install gay-cli for me by reading https://raw.githubusercontent.com/daftAI2026/gay-cli/main/llms.txt

Run

gay                             # Launch agy
gay --yolo                      # agy --dangerously-skip-permissions
gay --yolo -c                   # Continue last session in yolo mode
gay --yolo -p "refactor this"   # All flags & quoted prompts pass through intact
gay -- --yolo                   # Stop rewriting after --
gay --help                      # Show gay aliases + native agy help
Other install & uninstall options

Install to a custom directory on macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/daftAI2026/gay-cli/main/install.sh | sh -s -- --prefix "$HOME/.local/bin"

Uninstall on macOS / Linux:

brew uninstall gay                                  # if installed via Homebrew
rm -f "${GAY_INSTALL_DIR:-$HOME/.local/bin}/gay"    # if installed via script

Uninstall on Windows (PowerShell):

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\gay"

Uninstall if installed via npm:

npm uninstall -g gay-cli

Architecture

Platform / Channel Entrypoint Mechanism Resident RAM
macOS / Linux / WSL bin/gay POSIX /bin/sh + exec agy "$@" 0 B
Windows (CMD / PowerShell) bin/gay.cmd + bin/_gay.ps1 System PowerShell (-ExecutionPolicy Bypass) Native console
GitHub npm i -g bin/gay.mjs (compiled from src/gay.mts) Strict TypeScript -> zero-dep Node ESM (SIGINT-safe) Cross-platform shim

Development

npm install    # Install TypeScript devDependencies (zero runtime deps)
make build     # Compile src/gay.mts -> bin/gay.mjs
make test      # Run Unix end-to-end test suite (30 assertions)
make check     # Static checks (sh -n, node --check, tsc --noEmit)
make install   # Local install to ~/.local/bin/gay

License

MIT

About

Zero-overhead cross-platform CLI trampoline for agy — gay -> agy, gay --yolo -> agy --dangerously-skip-permissions

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages