Problem Statement
Need VS Code installed for read-only code browsing purposes, aligning with the spilled coffee principle. While the current workflow emphasizes tmux + git worktrees + Claude Code for OSE principle adherence, VS Code serves a specific use case for visual code exploration.
Requirements
- Command
code . should open VS Code in the current directory
- Installation must be automated and reproducible (spilled coffee principle)
- Script should detect and handle existing installations gracefully
- Must work across Linux and macOS environments
- Should integrate with existing dotfiles installation patterns
Proposed Implementation
Minimal Approach
- Create
utils/install-vscode.sh following the pattern of existing installers (e.g., install-neovim.sh)
- Add VS Code installation to appropriate setup flow
- Ensure proper PATH configuration for the
code command
Installation Script Structure
#!/bin/bash
# VS Code Installation Utility
# Automated installation following the spilled coffee principle
# Source common logging functions
source "${SCRIPT_DIR}/logging.sh"
install_vscode() {
# Check if already installed
# Platform-specific installation:
# - macOS: brew install --cask visual-studio-code
# - Linux: snap/apt/official Microsoft repo
# Verify installation
# Set up PATH if needed
}
Definition of Done
Notes
- This aligns with OSE principle by providing a read-only view tool
- Not replacing the primary tmux + Claude Code workflow
- Follows spilled coffee principle for reproducible setup
Problem Statement
Need VS Code installed for read-only code browsing purposes, aligning with the spilled coffee principle. While the current workflow emphasizes tmux + git worktrees + Claude Code for OSE principle adherence, VS Code serves a specific use case for visual code exploration.
Requirements
code .should open VS Code in the current directoryProposed Implementation
Minimal Approach
utils/install-vscode.shfollowing the pattern of existing installers (e.g.,install-neovim.sh)codecommandInstallation Script Structure
Definition of Done
utils/install-vscode.shscript createdcode .command works after installationNotes