Skip to content

Latest commit

 

History

History
251 lines (189 loc) · 7.24 KB

local-dev-setup.md

File metadata and controls

251 lines (189 loc) · 7.24 KB

Local Development Environment Setup (Linux)

This guide documents how to set up and maintain the local AI-assisted development environment across the WebJamApps workspace on Linux.

Overview

The WebJamApps development workflow relies on multiple AI coding assistants, MCP servers, and audio production tools:

  1. Claude Code CLI (claude) — Anthropic's interactive CLI agent for terminal-based development and subagent delegation.
  2. Antigravity CLI (agy) — Google's coding agent CLI (Gemini 4 Hydrogen / Gemini 4 Argon / Claude Sonnet 5.5), utilized for headless task dispatch and high-efficiency full-stack implementation.
  3. OpenAI Codex CLI (codex) — OpenAI's terminal-based coding assistant.
  4. Cockos REAPER DAW (reaper & reaper-update) — Digital audio workstation used for music projects, MIDI generation, stem bounces, and live tracking via the Reaper MCP server.
  5. GitHub MCP (github-mcp-server) — GitHub's released server program, used by agy.

To keep these tools current without having to remember distinct update commands for each ecosystem, a master update script scripts/update-all.sh is provided.


Prerequisites & System Path

Ensure ~/.local/bin exists and is included in your PATH. In ~/.bashrc (or ~/.zshrc):

export PATH="$HOME/.local/bin:$PATH"

Verify basic build and scripting tools:

sudo apt update && sudo apt install -y curl git bash tar xz-utils jq

Ensure modern runtime environments are installed:

  • Deno (v2.x+): curl -fsSL https://deno.land/install.sh | sh
  • Node.js (v20+ / v22+): via nvm or official NodeSource packages.

Tool Installation Guide

1. Claude Code CLI (claude)

Anthropic Claude Code is installed globally into ~/.local/share/claude with an entrypoint symlinked to ~/.local/bin/claude:

# Official standalone installer
curl -fsSL https://claude.ai/install.sh | bash

Alternatively via npm:

npm install -g @anthropic-ai/claude-code

Verification:

claude --version

Manual update:

claude update

2. Google Antigravity CLI (agy)

The Antigravity CLI binary lives in ~/.local/bin/agy.

  1. Download or install the agy Linux binary to ~/.local/bin/agy.
  2. Ensure the binary is executable:
    chmod +x ~/.local/bin/agy
  3. Run the built-in environment and shell configuration step:
    agy install
  4. Configure Tool Permission (request-review): By default, agy installs with toolPermission set to always-proceed. To ensure agy requests confirmation before executing unapproved commands and to enable prompt monitoring in multi-agent sessions (agents warns if this setting is not request-review):
    • Launch an interactive session:
      agy
    • Type /config and press Enter.
    • Type Tool Perm to filter settings, then press Enter.
    • Use the arrow keys (Up/Down) to move the > cursor to request-review and press Enter to save.
    • Press Escape twice to exit settings.

Verification:

agy --version
agy -p "/config" | grep "toolPermission"
# Expected output: toolPermission	request-review

Manual update:

agy update

3. OpenAI Codex CLI (codex)

The OpenAI Codex CLI is installed via the official install script:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Verification:

codex --version

Manual update:

codex update

4. Cockos REAPER DAW (reaper & reaper-update)

REAPER is installed to $REAPER_PREFIX. Its default is the literal path /home/joshua/opt, so any other developer must set REAPER_PREFIX (for example REAPER_PREFIX="$HOME/opt") whenever running reaper-update or update-all.

  1. Initial Installation / Updates via reaper-update.sh: Run the repository's REAPER updater script:

    bash scripts/reaper-update.sh
    # Or with a custom prefix:
    REAPER_PREFIX="$HOME/opt" bash scripts/reaper-update.sh

    The script checks the latest available Linux x86_64 release from https://www.reaper.fm/download.php, extracts the tarball, and runs the official Cockos install-reaper.sh installer quietly into your specified prefix.

  2. Symlink for Global PATH Access: Create a symlink in ~/.local/bin so reaper-update is runnable from anywhere:

    ln -s "$PWD/scripts/reaper-update.sh" ~/.local/bin/reaper-update
  3. Verify:

    reaper-update

    Note: REAPER user configuration and preferences are preserved in ~/.config/REAPER. Always quit REAPER before updating.


Combined Updating with update-all

To update the development tools with a single command, use scripts/update-all.sh.

One-Time Setup (Recommended)

From the root of the web-jam-tools repository:

ln -s "$PWD/scripts/update-all.sh" ~/.local/bin/update-all

Running the Update

Once symlinked, run from any terminal:

update-all

Or from inside the web-jam-tools repository:

deno task update:all
# or direct script:
bash scripts/update-all.sh

Script Execution Flow & Features

The script executes the updates in strict sequential order:

  1. claude update
  2. agy update
  3. codex update
  4. reaper-update (resolves reaper-update in PATH, falling back to scripts/reaper-update.sh)
  5. Install or update github-mcp-server from the latest verified Linux release; see the GitHub MCP launch and update details.

At the conclusion of the run, a summary table is printed:

[update-all] ==================== Summary ====================
[update-all] claude update:   SUCCESS
[update-all] agy update:      SUCCESS
[update-all] codex update:    SUCCESS
[update-all] reaper-update:   SUCCESS
[update-all] github-mcp:      SUCCESS
[update-all] =================================================

Flags & Options

  • Dry run: Preview planned commands without executing updates:
    update-all --dry-run
  • Strict mode (fail on missing): By default, missing tools are reported with a warning and marked as SKIPPED (not installed). If you want the script to fail if any tool is absent:
    update-all --strict
  • Help:
    update-all --help

Overriding Binary Paths

If tools are installed under non-standard paths, override them via environment variables:

CLAUDE_BIN="/custom/bin/claude" \
AGY_BIN="/custom/bin/agy" \
CODEX_BIN="/custom/bin/codex" \
REAPER_UPDATE_BIN="/custom/bin/reaper-update" \
update-all

Additional WebJamApps Workspace Setup

After setting up the CLIs above:

  1. Install Claude, Antigravity, and Git Hooks:
    bash scripts/install-hooks.sh
    This installs agent hooks, CLI tools (agents, update-scripts), and sets git config --global core.hooksPath to install the machine-wide pre-push secret scanner.
  2. Install Claude & Codex Skills:
    deno task install-skills
  3. Run Push-Time Guard Proof:
    bash scripts/prove-push-guard.sh
  4. Wire Multi-Root VSCode Workspace:
    ln -s ~/WebJamApps/web-jam-tools/WebJamApps.code-workspace ~/WebJamApps/WebJamApps.code-workspace