Skip to content

Latest commit

 

History

History
94 lines (72 loc) · 4.87 KB

File metadata and controls

94 lines (72 loc) · 4.87 KB

⚡ crazycode

A terminal launcher for AI coding tools — with a full awake-mode toggle that keeps your PC alive.

  ⚡  CRAZYCODE          📂 my-project
  ~/code/my-project
  ⎇  main ●
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ▶ aider           Paul Gauthier       ✓
  2 claude          Anthropic           ✓
  3 codex           OpenAI              ✓
  4 forge           Tailcall            ✓
  5 gemini          Google              ✓
  6 goose           AAIF                ✓
  7 muse            Meta                ✗
  8 opencode        SST                 ✗
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  [c] coffeeshot ☕     [awake mode off]
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ↑↓/1-8 select  ·  enter launch  ·  r resume  ·  c toggle awake mode  ·  q quit
  ⏱  last session: aider · 12m 34s
  ⚠  all tools launch without asking permission

The menu shows your working directory, git branch (with dirty indicator ●), and returns here after exiting any tool. Session duration is displayed after each tool exit.

r starts the highlighted tool in resume mode, from the first keystroke — nothing needs to have run first. It does not name a session: you pick that inside the tool. claude, codex and muse open their session picker on launch (--resume / resume); forge, gemini and opencode start clean and keep their picker in-app (/conversation, /resume, and ctrl+x then l respectively). goose has no picker and resumes its most recent session; aider has no sessions and reloads the directory's chat history.

Quick install

curl -fsSL https://raw.githubusercontent.com/Ymx1ZQ/crazycode/main/install.sh | bash

This will:

  1. Clone the repo into ~/.crazycode/
  2. Add a thin wrapper to your shell rc (~/.bashrc or ~/.zshrc) — updates take effect immediately, no re-source needed
  3. Install all optional tools by default (press n to skip any)
  4. Show a summary of what was installed

Then reload your shell and type crazycode.

Flags: --all (install everything, no prompts), --silent (errors only).

What each option does

Option What it does
aider Opens aider — AI pair programmer by Paul Gauthier (--yes-always)
claude Opens Claude Code — Anthropic's official AI CLI (--dangerously-skip-permissions)
codex Opens Codex — OpenAI's AI coding CLI (--sandbox danger-full-access)
forge Opens ForgeCode — Tailcall's open-source coding agent (FORGE_TRACKER=0 set by default — opt-out of US-residency telemetry)
gemini Opens Gemini CLI — Google's AI coding CLI (--yolo)
goose Opens Goose — AAIF's open-source AI agent (GOOSE_MODE=auto set by default — fully autonomous tool execution)
muse Opens Muse Code — Meta's AI coding CLI powered by Muse Spark (--yolo disables approval/sandbox — muse resume to resume)
opencode Opens opencode — AI coding tool by SST
coffeeshot [c] Awake mode — keeps the PC fully alive: masks sleep/suspend/hibernate, holds a systemd-inhibit idle inhibitor, ignores lid switch, disables screen lock
camomile [c] Restores normal power management (toggle coffeeshot off)

All AI tools launch without asking permission — full auto-approve mode.

CLI usage

Launch tools directly without the TUI:

crazycode aider          # launch aider directly
crazycode claude         # launch claude code directly
crazycode muse           # launch Muse Code directly
crazycode coffeeshot     # toggle awake mode on/off
crazycode status         # show awake mode status
crazycode --help         # show all commands

Tab completion is built-in — just press Tab after crazycode .

Manual install

git clone https://github.com/Ymx1ZQ/crazycode.git ~/.crazycode
echo 'crazycode() { source ~/.crazycode/crazycode.sh && _crazycode_main "$@"; }' >> ~/.bashrc
source ~/.bashrc

From an existing clone

If you've already cloned the repo, run ./install.sh directly — it detects the local checkout and installs from it (no network), then re-points origin to the canonical GitHub URL so future updates work normally.

Requirements

  • bash 4+
  • Linux (systemd) — awake mode requires sudo for systemctl mask/unmask and logind.conf
  • The AI tools themselves — each needs its own install (the installer walks you through them)