Skip to content
ybarsottiPublic

About

~/. πŸ“‚

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

Β 

History

492 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

~/. πŸ“‚ My dotfiles

managed with chezmoi.

Installation

Interactive Setup

During installation, you'll be prompted to configure machine-specific settings:

  • Machine purpose: Choose "personal" or "work"
  • Work credentials: If you choose "work", you'll be prompted for work email and git username

Install dotfiles

$ sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply ybarsotti

During the first run, you'll be prompted to configure machine-specific settings for the appropriate email/git configuration.

Common Chezmoi Commands

A quick reference for the most frequently used chezmoi commands for day-to-day operations.

Core Workflow

This is the most common cycle for making changes to your dotfiles.

  • chezmoi edit [target-file]

    • Purpose: The safest way to edit a managed dotfile. It opens the source file in your editor, not the destination file in your home directory.
    • Example: chezmoi edit ~/.zshrc
  • chezmoi diff

    • Purpose: Shows a diff of the changes that would be made by chezmoi apply. It's highly recommended to run this before applying to see what will change.
    • Example: chezmoi diff
  • chezmoi apply

    • Purpose: Applies the changes from your source directory to your home directory, making it match the desired state. This is the main command to sync your dotfiles. Use the -v (verbose) flag to see what it's doing.
    • Example: chezmoi apply -v

Managing Files

Commands for adding, removing, or changing which files are managed by chezmoi.

  • chezmoi add [target-file]

    • Purpose: Adds a new file from your home directory to chezmoi's source state.
    • Example: chezmoi add ~/.config/alacritty/alacritty.yml
  • chezmoi forget [target-file]

    • Purpose: Removes a file from chezmoi's management. The file is removed from the source directory but is left untouched in your home directory.
    • Example: chezmoi forget ~/.bashrc
  • chezmoi remove [target-file]

    • Purpose: The more destructive version of forget. It removes the file from the source directory and also deletes it from your home directory.
    • Example: chezmoi remove ~/.old_config_file

Syncing & Status

Commands for keeping multiple machines in sync and checking the current state.

  • chezmoi update

    • Purpose: Pulls the latest changes from your dotfiles git repository and then runs chezmoi apply. This is the primary command for syncing changes to a machine.
    • Example: chezmoi update
  • chezmoi status

    • Purpose: Shows a summary of files that have been modified in your home directory and differ from what's in the source directory.
    • Example: chezmoi status
  • chezmoi cd

    • Purpose: A handy shortcut to open a new shell session directly in the source directory (~/.local/share/chezmoi).
    • Example: chezmoi cd

Destructive Operations

Warning: Use the following commands with caution as they can delete files.

  • chezmoi purge
    • Purpose: Removes everything managed by chezmoi from your home directory. This effectively uninstalls your managed dotfiles, leaving your system clean.
    • Example: chezmoi purge

Development Tools

This dotfiles setup includes several development tools that are automatically installed through the packages.yaml configuration:

Code Quality & Linting

  • shellcheck - Shell script static analysis tool for finding bugs and improving code quality
    • Usage: shellcheck script.sh
  • yamllint - YAML linter for configuration files
    • Usage: yamllint config.yaml
  • hadolint - Dockerfile linter
    • Usage: hadolint Dockerfile
  • actionlint - GitHub Actions workflow linter
    • Usage: actionlint .github/workflows/*.yml
  • markdownlint-cli - Markdown linter
    • Usage: markdownlint '**/*.md'
  • vale - Prose linter for documentation
    • Usage: vale README.md
  • typos-cli - Fast source code spell checker
    • Usage: typos, typos --write-changes
  • codespell - Find and fix common misspellings
    • Usage: codespell, codespell -w (fix)
  • ruff - Extremely fast Python linter (replaces flake8, pylint)
    • Usage: ruff check ., ruff format .
  • pre-commit - Git hooks framework for running checks before commits
    • Setup: pre-commit install or just install-hooks
    • Usage: pre-commit run --all-files
  • prettier - Code formatter for consistent styling
    • Usage: prettier --write file.js
  • shfmt - Shell script formatter
    • Usage: shfmt -w script.sh
  • black - Python code formatter with opinionated style
    • Usage: black script.py, black --check .
  • isort - Python import sorter and organizer
    • Usage: isort script.py, isort --check-only .
  • autopep8 - Python PEP8 code formatter
    • Usage: autopep8 --in-place script.py
  • clang-format - C/C++ code formatter
    • Usage: clang-format -i file.cpp, clang-format --style=Google file.c
  • crapper, dryer, mutator - Robert C. Martin's code-quality tools, used by the ub-mode skill. They are not Homebrew packages: .chezmoiexternal.toml pins each one to a commit in ~/.local/share/unclebob/, and a wrapper in ~/.local/bin runs it. The first run of each tool creates its .venv (Python 3.11 or later). They write .metrics/, which the global git ignore file ignores.
    • crapper --changed --threshold 10 - CRAP score per function (complexity and coverage)
    • dryer --changed --threshold 0.8 - structural duplication
    • mutator --max-workers 2 src/file.py - mutation testing (survivors and uncovered lines)
    • Bump: change the commit in the URL and its checksum.sha256 together

Version Managers & Runtimes

  • mise - Universal runtime version manager (replaces nvm, rbenv, etc.)
    • Usage: mise use node@lts, mise use python@3.12, mise list
  • pipx - Install Python packages in isolated environments
    • Usage: pipx install package, pipx list
  • uv - Fast Python package installer and resolver
    • Usage: uv pip install package, uv tool install package
  • luarocks - Lua package manager
    • Usage: luarocks install package

Development Utilities

  • opencode - OpenCode CLI tool for development workflows
    • Usage: opencode . to open current directory
  • commitizen - Tool for creating standardized commit messages
    • Usage: git cz or cz commit
  • gh - GitHub CLI for repository management
    • Usage: gh repo clone, gh pr create, gh issue list
  • lazygit - Terminal UI for git commands
    • Usage: lazygit
  • lazydocker - Terminal UI for Docker
    • Usage: lazydocker
  • git-flow - Git branching model extensions
    • Usage: git flow init, git flow feature start
  • git-delta - Enhanced git diff viewer with syntax highlighting
    • Usage: Automatically used by git (configured in .gitconfig)
  • gitleaks - Detect and prevent secrets in git repos
    • Usage: gitleaks detect, gitleaks protect
  • git-sizer - Compute size metrics for git repos
    • Usage: git-sizer --verbose
  • direnv - Load/unload environment variables per directory
    • Usage: Create .envrc files, automatically loads on cd
  • just - Modern command runner (better than Make)
    • Usage: just, just --list, just check
  • watchexec - Execute commands when files change
    • Usage: watchexec -e js npm test
  • entr - Run commands when files change
    • Usage: ls *.py | entr pytest
  • act - Run GitHub Actions locally for testing CI workflows
    • Usage: act, act -l (list workflows), act push (simulate push event)
  • terraform - Infrastructure as Code tool
    • Usage: terraform init, terraform plan, terraform apply

System Tools & Terminal Enhancements

  • ripgrep - Fast text search tool
    • Usage: rg "pattern" file.txt, rg -i "case insensitive"
  • ast-grep - Structural search and rewrite over the tree-sitter AST (sg)
    • Usage: ast-grep -p 'console.log($$$)' -l ts, ast-grep -p '$A == $B' -r '$A === $B' -U
    • Pairs with ripgrep, does not replace it: rg matches text, so it also matches commented-out code and a name inside a string. ast-grep matches shape, which is what a codemod needs. It also ships an MCP server.
  • ffmpeg - Audio and video encoder, with ffprobe for stream checks
    • Usage: ffmpeg -i in.mp4 -vf scale=1280:-2 out.mp4, ffprobe -show_streams in.mp4
    • The video-demo skill uses it to encode clips, mix the voice and verify the render
  • fd - Modern find replacement with better performance
    • Usage: fd filename, fd -e js (find JS files)
  • bat - Enhanced cat with syntax highlighting and Git integration
    • Usage: bat file.txt, bat --style=numbers file.py
  • eza - Modern ls replacement with better formatting and colors
    • Usage: eza -la, eza --tree, eza --git
  • fzf - Fuzzy finder for command-line
    • Usage: **<TAB> (fuzzy complete), Ctrl+R (history search)
  • tree - Directory tree viewer
    • Usage: tree, tree -L 2 (limit depth)
  • zoxide - Smarter cd command that learns your habits
    • Usage: z dirname (jumps to most frecent match), zi (interactive)
  • atuin - Shell history with sync and powerful search
    • Usage: Ctrl+R (enhanced history search), atuin search
  • btop - Resource monitor with better interface than htop
    • Usage: btop
  • bottom - System monitor (alternative to btop)
    • Usage: btm
  • fastfetch - System information display
    • Usage: fastfetch
  • jq - JSON processor
    • Usage: echo '{"key":"value"}' | jq .key
  • tldr - Simplified man pages with practical examples
    • Usage: tldr tar, tldr git-commit
  • duf - Better disk usage/free utility
    • Usage: duf
  • httpie - User-friendly HTTP client
    • Usage: http GET httpbin.org/json
  • oha - HTTP load testing tool
    • Usage: oha -n 100 -c 10 https://example.com
  • grpcurl - curl for gRPC services
    • Usage: grpcurl localhost:9090 list
  • gnu-sed - GNU version of sed (macOS ships BSD sed)
    • Usage: gsed 's/old/new/g' file
  • weathr - CLI weather forecast tool
    • Usage: weathr
  • gping - Ping with a graph
    • Usage: gping google.com
  • bandwhich - Network utilization by process
    • Usage: sudo bandwhich
  • nmap - Network discovery and security auditing
    • Usage: nmap -sP 192.168.1.0/24
  • pngpaste - PNG image clipboard utility for macOS
    • Usage: pngpaste output.png (paste clipboard image to file)
    • Required for Neovim img-clip.nvim plugin
  • yazi - Terminal file manager
    • Usage: yazi or y (with cd integration)
  • tmux - Terminal multiplexer
    • Usage: tmux new-session, tmux attach
  • zellij - Terminal workspace with built-in multiplexer
    • Usage: zellij
  • thefuck - Command correction tool
    • Usage: Type command, get error, type fuck to get corrected version

Performance & Analysis Tools

  • hyperfine - Command-line benchmarking tool (better than time)
    • Usage: hyperfine 'command1' 'command2', hyperfine --warmup 3 'npm test'
  • procs - Modern process viewer (better than ps)
    • Usage: procs, procs firefox, procs --tree
  • dust - Disk usage analyzer (better than du)
    • Usage: dust, dust -d 3 (limit depth), dust -r (reverse sort)
  • tokei - Code statistics and line counter
    • Usage: tokei, tokei --languages (list supported languages), tokei src/

API Development & Testing

  • evans - Expressive gRPC client for testing gRPC services
    • Usage: evans -r repl -p 9090, evans --proto api.proto
  • grpcurl - curl for gRPC services
    • Usage: grpcurl localhost:9090 list, grpcurl -d '{"name":"test"}' localhost:9090 Service/Method

SSH Management (Personal only)

  • sshs - TUI for SSH connections that reads from ~/.ssh/config
  • mosh - Resilient SSH sessions that auto-reconnect on unstable connections
    • Usage: mosh user@host (drop-in replacement for ssh)
    • Works great on mobile/unstable networks, low-latency typing
    • Docs: https://mosh.org

AI & Agent Tools

  • ollama - Run large language models locally (personal machines only)
    • Usage: ollama run llama3.2, ollama list, ollama pull mistral
    • Start server: ollama serve
  • claude-code - Anthropic's Claude Code CLI agent
    • Usage: claude, installed via npm install -g @anthropic-ai/claude-code
  • codex - OpenAI Codex CLI agent
    • Usage: codex, installed via npm install -g @openai/codex
  • openspec - Spec-driven planning layer for coding agents
    • Usage: openspec init, openspec propose, openspec status
  • specify (GitHub Spec Kit) - Toolkit for Spec-Driven Development with AI coding agents
    • Usage: specify init <project>, specify plan, specify build
    • Install: Via uv tool install (automatic)
  • gemini-cli - Google Gemini CLI agent
    • Usage: gemini, installed via brew install gemini-cli
  • gastown - Multi-agent orchestration (coordinates Claude, Codex, Gemini workers)
    • Usage: gt install ~/gt --git, gt mayor attach
    • Install: Via brew install gastown
  • agent-browser - Browser automation CLI for AI agents
    • Usage: agent-browser open <url>, agent-browser screenshot out.png, agent-browser eval <js>
    • Install: Via brew install agent-browser, then agent-browser install downloads its Chrome
    • The annotated-screenshots skill uses it to capture pages at 2x
  • agent-deck - Terminal session manager TUI for AI coding agents
    • Usage: agent-deck
    • Install: Via brew install asheshgoplani/tap/agent-deck
  • gitnexus - Codebase knowledge graph engine for AI agents
    • Usage: npx gitnexus analyze, npx gitnexus setup
    • MCP server: claude mcp add gitnexus -- npx -y gitnexus@latest mcp
  • graphifyy (CLI: graphify) - Multi-modal knowledge graph for AI coding assistants
    • Usage: graphify . (build graph), /graphify query "...", graphify hook install
    • Install (auto via chezmoi): pipx install graphifyy && graphify install && graphify claude install
    • Outputs graphify-out/GRAPH_REPORT.md β€” Claude Code skill auto-reads it
  • bmad-method - AI-driven agile development framework with 34+ workflows
    • Usage: npx bmad-method install (per-project)
  • hermes - Hermes Agent CLI from Nous Research
    • Usage: hermes, hermes-agent
    • Install: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash (automatic)
    • The installer builds its own uv virtual environment under ~/.hermes
  • openclaw - Multi-channel AI gateway with messaging integrations
    • Usage: openclaw, binary at ~/.openclaw/bin/openclaw
    • Install: curl -fsSL https://openclaw.ai/install.sh | bash (automatic)
    • The installer brings a private Node runtime under ~/.openclaw/tools
  • orca - Orca app and CLI for agent worktrees, terminals, and artifacts
    • Usage: orca worktree list, orca terminal send
    • Install: brew install --cask stablyai/orca/orca
    • The plain orca cask in homebrew/cask is a different tool, so the token stays tap-qualified
  • Grok Bot - xAI desktop agent that works across apps and tools
    • Install: brew install --cask grok-bot

Data Engineering & Analytics

Databases & CLI Tools

  • duckdb - Fast in-process analytical database (embedded, no server required)
    • Usage: duckdb mydata.db, duckdb -c "SELECT * FROM read_csv('data.csv')"
    • Perfect for local analytics and ETL without spinning up a database server
  • ClickHouse - OLAP database (use Docker, see Docker Compose examples)
    • Connect: docker exec -it dev-clickhouse clickhouse-client

Data Format Tools

  • xsv - Fast CSV command-line toolkit written in Rust
    • Usage: xsv stats data.csv, xsv select column1,column3 data.csv, xsv search pattern data.csv
  • miller - Like awk/sed/cut for structured data (CSV, JSON, TSV, etc.)
    • Usage: mlr --csv cut -f name,age data.csv, mlr --json stats1 -a sum -f price data.json
  • visidata - Interactive multitool for tabular data with TUI
    • Usage: vd data.csv, vd data.json, vd database.db

Docker Infrastructure

For databases and heavy services (PostgreSQL, Kafka, Spark, etc.), use Docker Compose:

  • See ~/.config/docker-compose-examples/ for ready-to-use configurations
  • Available services: PostgreSQL, Kafka, Spark, ClickHouse, MLflow
  • Quick start: docker-compose -f ~/.config/docker-compose-examples/postgres.yml up -d

Development Editors & Language Support

  • neovim - Modern Vim-based text editor
    • Usage: nvim file.txt
  • cursor - AI-powered code editor CLI
    • Usage: cursor . to open current directory
    • Note: Installed via official Cursor install script
  • tree-sitter - Incremental parsing system for syntax highlighting
    • Used automatically by Neovim and other editors

Shell Enhancements

  • zsh-autosuggestions - Fish-like autosuggestions for Zsh
  • zsh-syntax-highlighting - Fish-like syntax highlighting for Zsh
  • jandedobbeleer/oh-my-posh/oh-my-posh - Cross-platform prompt theme engine
  • zoxide - Smarter cd that learns your habits (see System Tools section)
  • atuin - Shell history with sync and search (see System Tools section)
  • direnv - Per-directory environment variables (see Development Utilities section)

Security & Privacy

  • gnupg - GNU Privacy Guard for encryption
    • Usage: gpg --gen-key, gpg --encrypt file.txt
  • pinentry-mac - macOS keychain integration for GPG
  • age - Simple file encryption (modern GPG alternative)
    • Usage: age-keygen -o key.txt, age -r recipient file.txt
  • sops - Encrypted secrets in Git repos
    • Usage: sops -e secrets.yaml > secrets.enc.yaml
  • trivy - Container and IaC security scanner
    • Usage: trivy image nginx:latest, trivy config .
  • semgrep - Static analysis for unsafe code patterns
    • Usage: semgrep scan --config p/default
  • osv-scanner - Known vulnerabilities in lockfiles
    • Usage: osv-scanner scan source -r .
  • gosec - Security linter for Go code
    • Usage: gosec ./...
  • checkov - Misconfiguration in Dockerfiles, workflows, Kubernetes and Terraform
    • Usage: checkov -d .
  • syft - SBOM of an image or a folder
    • Usage: syft nginx:latest -o spdx-json=sbom.json
  • grype - Vulnerability scan of an SBOM or an image
    • Usage: grype sbom:sbom.json --only-fixed
  • cosign - Sign and verify images and files with Sigstore
    • Usage: cosign verify-blob --bundle file.sigstore.json file
  • conftest - Test configuration files against Rego policies
    • Usage: conftest test --policy policy deploy.yaml
  • doppler - Secrets management
    • Usage: doppler login, doppler secrets
  • aws-vault - Securely store and access AWS credentials
    • Usage: aws-vault exec profile -- aws s3 ls

Package Visualization

  • youplot - Command-line data plotting
    • Usage: seq 1 10 | youplot line

Build Tools

  • cmake - Cross-platform build system generator
    • Usage: cmake ., make
  • make - Build automation tool
    • Usage: make, make install

Containerization

  • orbstack (cask) - Container and Linux VM runtime. It replaces Docker Desktop. The cask supplies the docker, docker compose, and docker buildx commands.
    • Usage: docker run, docker build, docker compose up
    • Manage the runtime: orbctl start, orbctl stop, orb status
    • Migrate from Docker Desktop: orb docker migrate

GUI Applications (Casks)

Browsers: Arc, Brave, Firefox

Development: Apidog (API testing), Beekeeper Studio (SQL editor), Conductor (Claude Code + GitHub), OrbStack (containers and Linux VMs), Figma, Ghostty (terminal emulator), Wave Terminal (block/widget terminal with local-LLM AI panel), Visual Studio Code, P4Merge (visual merge tool), Slack CLI (create, run and deploy Slack apps: slack login, slack create, slack run, slack deploy)

Productivity: Alt-Tab (window switcher), Raycast (launcher), BetterDisplay, Stats (menu bar monitor), Slack, Notion

Media: OBS, Spotify

Fonts

Nerd Fonts (with icon support): Hack, JetBrains Mono, Fira Code, Meslo LG, Sauce Code Pro, Caskaydia Cove, Iosevka, Victor Mono

Standard Developer Fonts: SF Pro, Fira Code, Cascadia Code, Monaspace (GitHub's superfamily)

GitHub CLI Extensions

15 extensions auto-installed via gh extension install:

  • gh-branch - Branch management
  • gh-bump - Version bumping
  • gh-clean-branches - Delete merged branches
  • gh-clone-org - Clone all repos in an org
  • gh-dash - Dashboard TUI for PRs and issues
  • gh-download - Download release assets
  • gh-eco - Explore repos in an ecosystem
  • gh-install - Install tools from GitHub releases
  • gh-milestone - Milestone management
  • gh-notify - GitHub notifications in terminal
  • gh-poi - Delete merged local branches
  • gh-repo-stats - Repository statistics
  • gh-skyline - 3D contribution graph
  • gh-task - Task management
  • gh-log - View commit logs

Justfile Commands

This repository includes a Justfile with convenient commands for common tasks. Run just or just --list to see all available commands.

Common Commands

  • just check - Run all validations (shellcheck, yamllint, gitleaks)
  • just diff - Show what changes chezmoi would make
  • just apply - Apply dotfiles to home directory
  • just update - Update from git and apply
  • just status - Check status of managed files
  • just update-gh-extensions - Upgrade all gh CLI extensions (the installer is run_once_, so extensions otherwise stay pinned at their setup-time version β€” gh dash sat on v4.22.0, which panics on startup under Wave). Also runs as part of just full-update.
  • just install-hooks - Install pre-commit hooks
  • just pre-commit - Run pre-commit hooks on all files
  • just test-deep-pipeline - Run the deep-plan / deep-execute / deep-review shell test suites (see "Deep-* Agent Pipeline" under Claude Code, below)
  • just format - Format all shell scripts and YAML files
  • just clean - Clean up temporary files and caches
  • just info - Show system information
  • just stats - Show repository statistics

Run just to see the full list of available commands.

Homebrew Tap Trust

Homebrew 6 refuses to load formulae or casks from a third-party tap until that tap is trusted, so run_onchange_01_homebrew_taps.sh.tmpl runs brew trust --tap on each one after tapping. Without it a fresh install taps everything and then fails on agent-deck, peon-ping, oh-my-posh, and borders. Trust means Homebrew will load and run that tap's Ruby formula code; it is recorded in ~/.config/homebrew/trust.json and reversed with brew untrust <tap>. The script guards on brew trust --help, so it stays a no-op on Homebrew 5 and earlier.

sst/tap used to be in that list and was removed: SST renamed itself to Anomaly, so the name now only resolves through a GitHub 301 to anomalyco/homebrew-tap. Because the tap name no longer matched its remote, brew trust recorded the raw clone URL rather than a tap name β€” and brew untrust could not undo it, since the URL resolves back to the name anomalyco/tap, which was never in the list. The stale entry had to be edited out of trust.json by hand. Nothing here installs from that tap anyway; opencode ships in homebrew/core now.

Configuration Files

Cursor IDE

  • ~/.config/cursor/settings.json - Cursor settings with Sonnet 4.5 AI model
  • ~/.config/cursor/keybindings.json - Custom keybindings for AI features
  • ~/.cursorrules - AI coding guidelines and best practices

Data Science Extensions (Auto-installed)

  • Jupyter (ms-toolsai.jupyter) - Full Jupyter notebook support in Cursor
  • Jupyter PowerToys (ms-toolsai.vscode-jupyter-powertoys) - Enhanced Jupyter features
  • Data Wrangler (ms-toolsai.datawrangler) - Interactive data viewing and cleaning
  • Python Environment Manager (donjayamanne.python-environment-manager) - Manage Python environments
  • DVC (iterative.dvc) - Data Version Control integration
  • Rainbow CSV (mechatroner.rainbow-csv) - CSV syntax highlighting with column alignment
  • Excel Viewer (GrapeCity.gc-excelviewer) - View Excel and CSV files
  • Data Preview (RandomFractalsInc.vscode-data-preview) - Preview CSV/JSON/Arrow/Parquet files

Git

  • ~/.gitconfig - Enhanced git configuration with 40+ useful aliases
  • ~/.gitignore_global - Comprehensive global gitignore
  • Git aliases include shortcuts like git s (status), git lg (pretty log), git co (checkout), etc.
  • P4Merge configured as default merge/diff tool for visual conflict resolution

Shell (Zsh)

  • ~/.zshrc - Main shell configuration with:
    • zoxide integration (smarter cd)
    • direnv hooks (per-directory environments)
    • atuin (enhanced shell history)
    • fzf integration (fuzzy finding)
    • Git aliases and shortcuts
  • ~/.zprofile - Environment variables and PATH setup

Tmux

  • ~/.config/tmux/tmux.conf - Full tmux configuration with:
    • Vi mode keybindings
    • Catppuccin theme
    • Plugin management (TPM)
    • Sensible defaults

Wave Terminal

Config lives in ~/.config/waveterm/ (flat JSON, : as level separator). Docs: https://docs.waveterm.dev/config

  • ~/.config/waveterm/settings.json - Global settings:

    • Terminal: keeps Wave's stock look on purpose β€” Hack 12px (--fixed-font, bundled with the app) and the default-dark theme at term:transparency 0.5. Neither term:fontfamily, term:fontsize, term:theme nor term:transparency is set, so the defaults apply.
    • Terminal behaviour: 10k scrollback, copy-on-select, term:shiftenternewline (Shift+Enter inserts a newline for Claude Code / AI CLIs), term:macoptionismeta (matches the Ghostty macos-option-as-alt setting)
    • AI: waveai:defaultmode points at a local Ollama mode, cloud modes hidden, telemetry off
    • Editor/preview/web/window tweaks (no minimap, word wrap, hidden files, external links)

    To try a different look without editing the file, right-click a terminal header β†’ Themes / Font Size, or set it globally:

    wsh setconfig term:theme=catppuccin-mocha
    wsh setconfig term:fontfamily="JetBrainsMono Nerd Font"
    wsh setconfig term:fontsize=14
    wsh setconfig term:transparency=0     # opaque background

    Revert to the stock look by deleting those keys from settings.json.

  • ~/.config/waveterm/waveai.json - Wave AI modes (Local Models / BYOK). Configured for Ollama, no API key needed:

    • ollama-qwen14b β€” qwen2.5:14b (default mode)
    • ollama-qwen-coder β€” qwen2.5-coder:3b
    • Both hit http://localhost:11434/v1/chat/completions with ai:capabilities: ["tools"]
  • ~/.config/waveterm/termthemes.json - Catppuccin Mocha / Macchiato / Latte, available as options in the terminal header right-click β†’ Themes menu. Not applied by default.

  • ~/.config/waveterm/backgrounds.json - Six semantic tab backgrounds, on top of Wave's 13 decorative built-ins: bg@work (blue), bg@personal (green), bg@agent (mauve), bg@review (peach), bg@prod (red, with diagonal hazard stripes) and bg@scratch (grey). The point is telling parallel sessions apart at a glance β€” each also sets bg:activebordercolor, so the focused block's border carries the same colour. Right-click a tab β†’ Backgrounds to apply, or:

    wsh setbg bg@prod                    # current tab
    wsh setconfig tab:background=bg@work # default for every new tab
    wsh setbg --print "#ff0000"          # generate the JSON for a custom one

    No global default is set, so new tabs stay unstyled unless you ask.

  • ~/.config/waveterm/widgets.json - Custom sidebar widgets, grouped by kind: AI agents (claude, codex, opencode, agent-deck) β†’ git/GitHub (gh dash, gh notify, lazygit) β†’ files (yazi) β†’ containers (lazydocker) β†’ system (sysinfo, processes, btop, dust). Wave's defwidget@sysinfo and defwidget@processviewer are redefined purely to move them out of the built-in block at the top and into the system group. None open magnified β€” press Cmd+M to magnify a block. Wave's own defaults (terminal, files, web, sysinfo, processes) stay β€” set a defwidget@* key to null to drop one, or redefine it to change its behaviour. defwidget@sysinfo is redefined here to plot CPU + Mem over a 180s window instead of CPU only over 100s.

    Notes for adding your own:

    • Every command is wrapped in /bin/zsh -lc '<cmd>' with cmd:shell: true. This is not cosmetic: a widget block does not inherit the shell's environment, and Wave overwrites PATH after applying cmd:env (it injects its own wsh directory). Without the login shell, ~/.zprofile never runs, PATH has no /opt/homebrew/bin, and anything with a #!/usr/bin/env node shebang dies with env: node: No such file or directory β€” codex does exactly this. The wrapper makes the block behave like a real terminal. Use -lc, not -lic: login sources ~/.zprofile (which sets PATH) without paying for the interactive plugin load in ~/.zshrc.

    • cmd:cwd is static β€” a widget cannot ask where to start. ~/.local/bin/wave-widget fills that gap: it finds every repo under ~/Developer, expands each one with git worktree list, and shows the lot in fzf with a git log preview before cd-ing and exec-ing the real command. claude, codex, opencode, lazygit and yazi use it; Esc closes the block. Currently 30 repos + 155 worktrees, ~1.5s to build.

      Why git worktree list and not a path scan: worktrees here live in at least four layouts (.claude/worktrees/ β€” where Claude Code puts them, .worktrees/, .zorch/worktrees/, and plain siblings), and a linked worktree's .git is a file, not a directory, so fd alone both misses them and double-counts repo roots. Rows are grouped as ● repo followed by its ↳ worktrees, with the branch name alongside.

      Env Effect
      WAVE_WIDGET_ROOT search root (default ~/Developer)
      WAVE_WIDGET_ALL=1 also list worktrees parked outside the root (throwaway /tmp review checkouts are hidden by default)

      Widgets that are not repo-scoped (gh dash, gh notify, lazydocker, agent-deck, btop) keep a plain command and start in $HOME; dust starts in ~/Developer.

      Two zsh traps this script had to work around, worth remembering: never declare local path (it is tied to the $PATH array β€” shadowing it blanks PATH for every command the function calls), and print -r does not expand \t, so building tab-separated rows needs printf.

    • controller: "cmd" also adds a refresh button to the block header, which is what makes one-shot commands like dust useful as widgets. Use controller: "shell" for a real session.

    • Non-terminal widgets need no controller: view: "preview" + file: for a file browser, view: "web" + url:/pinnedurl:, view: "sysinfo" + sysinfo:type: (CPU, Mem, CPU + Mem, All CPU), view: "processviewer".

    • The sysinfo widget only ever plots CPU and memory. Its collector (pkg/wshrpc/wshremote/sysinfo.go) samples gopsutil's cpu and mem once a second and nothing else β€” there is no disk, network, swap or temperature series to configure. Use btop for those.

    • Icons are Font Awesome names without fa-; brand icons need the brands@ prefix (e.g. brands@docker).

    • The notifications widget runs gh notify -w -e ci_activity. Without the exclusion it is unusable here: 34 of 36 unread notifications were ci_activity (workflow-run-failed), burying the two that were an actual PR comment and state change. -w opens the preview pane; plain gh notify in any terminal still shows everything including CI.

    • That widget also prepends ~/.local/libexec/gh-nocolor to PATH. gh writes \033]11;? (OSC 11, background colour) and \033[6n (cursor position) on every single invocation β€” verified with script -q /dev/null gh api user. Wave answers both, and when gh runs underneath a live TUI (gh-notify shells out to gh api while fzf is on screen) the replies land in that TUI's stdin: 11;rgb:0000/0000/0000 typed into the fzf query box, and previously a crash in gh-dash, which dereferenced a not-yet-loaded config on the resulting phantom keypress. NO_COLOR=1 makes gh skip the queries; the shim scopes it to gh alone, because fzf honours NO_COLOR too and would go monochrome. gh-notify's own colours are emitted by the script, so they are unaffected.

The agent group chat β€” llmessage

llmessage is a per-project chat that agents and you share. It lives in its own repo at ~/Developer/llmessage; this repo carries only the widget.

A /deep-execute run already writes events.jsonl and lanes/<lane>/replies/, but that conversation is one-way, machine-shaped, and dies with the run β€” RUN_DIR ends when the PR opens, so CI failures and review rounds land nowhere. llmessage reads those files from the outside and projects them into a session that lives until the PR closes. No line of deep-execute changes, which is deliberate: its scripts carry 820 assertions.

llmessage daemon              # mirror runs into their sessions, every 5s
llmessage daemon --once       # a single pass
llmessage tui                 # session list + live conversation
llmessage post --body "..."   # post to the current repo's session
llmessage sessions            # every session, newest first
  • The chat widget runs one --once sync and then the TUI, so it is useful even when no daemon is running.
  • The chat sits beside the run, never on its critical path. The numbered replies stay the wake channel worker-loop.sh waits on, so a broken chat cannot strand a lane.
  • A human message reaches a lane through the orchestrator, which reads the chat and routes it via reply.sh β€” the same single door that already owns commits and replies.
  • Install today is cargo install --path ~/Developer/llmessage. There is no pinned .chezmoiexternal.toml entry yet, because there is no published release to pin a SHA256 against; that follows the obscura pattern once the repo has one.

Useful commands:

wsh editconfig                 # open settings.json in Wave's editor
wsh editconfig waveai.json     # edit AI modes
wsh setconfig term:fontsize=15 # change a single setting
wsh secret set NAME=value      # store API keys in the OS keychain (not needed for Ollama)
wsh ai main.go -m "find bugs"  # send files/prompts to the AI panel from the CLI
wsh setbg "#1e1e2e"            # set the tab background
wsh badge check --color '#58c142'  # set a tab badge (used by Claude Code hooks)

Note: Wave rewrites settings.json when you change settings through its GUI, which makes the file drift from chezmoi. After tweaking things in the UI, run chezmoi add ~/.config/waveterm/settings.json to pull the change back into the repo.

Adding a cloud model (BYOK): add a mode to waveai.json with ai:provider (openai, openrouter, groq, google, nanogpt, azure) and store the key with wsh secret set OPENAI_KEY=... β€” the provider resolves the endpoint and secret name automatically.

Claude Code

  • ~/.claude/settings.json - Claude Code settings with hooks and MCP servers
  • ~/.claude/commands/*.md - Custom slash commands:
    • /test - Run project tests
    • /docs - Generate documentation
    • /refactor - Suggest refactorings
    • /deps - Analyze dependencies
    • /deep-plan - Multi-agent planning pipeline (see below)
    • /deep-execute - Runs an approved deep-plan parallel plan as lane workers (see below)
    • /deep-review - Multi-persona peer review of a diff
    • /pr-description - Conventional-commit PR title/body with requirements matrix, Mermaid, decisions and UI evidence (flow GIF/recording + before/after screenshots), then opens the PR assigned to you
  • ~/.claude/skills/annotated-screenshots - Annotated feature screenshots: captures the live app or a component rendered with fixture data through agent-browser, then draws highlight boxes, numbered callouts and a source banner with annotate.py (Pillow through uv run)
  • ~/.claude/skills/video-demo - Short narrated demo video of a feature: a brief introduction, then the real flow recorded with Playwright, rendered with Remotion from one narration.json, with edge-tts voices (English, pt-BR) and word-synced captions. Needs Node, uv and ffmpeg

Deep-* Agent Pipeline

Three slash commands chain together for planning and parallel execution of non-trivial work:

  • /deep-plan - Multi-agent planning pipeline (Opus + Codex draft, a 5-persona review loop, a Plannotator approval gate). Plan captures ticket/Slack sources, requirements coverage, applicable user journey, data-column population, and substantial-UI design handoff. Stops at an approved plan β€” it never builds or reviews code itself. Its last phase is an execution recommendation (below).
  • /deep-execute <plan.md> - Runs an approved parallel plan as lane workers sharing ONE git worktree, one Orca terminal per lane (orca-launch.sh; any terminal or nohup outside Orca). Each lane runs worker-loop.sh: the first turn sends the lane's rendered brief, and each later turn delivers the numbered replies that reply.sh published. done ends a round, not the lane, so review and QA fixes go back to the lane that owns the code. Each claude lane is pinned to its own --session-id, also across a relaunch, because all lanes share one worktree. Coordinates fan-out, an event/reply protocol (event.sh / board.sh / monitor-events.sh with --ack / reply.sh), contract drift (contract-bump.sh), per-round gating (round-gate.sh: round complete β†’ lane tests β†’ acceptance β†’ contract β†’ run state), a report-only /deep-review per round, a round cap with escalation, then steps 2 to 8 of _shared/after-approval.md: the final review, QA, frozen SHA, the run report (below), then the PR with its watch. The orchestrator is the sole git committer between rounds; lane workers never run git themselves. _shared/plan-routing.md says when a plan qualifies.
  • /deep-review - Multi-persona peer review of a diff (Claude + Codex headless reviewers), invoked once per /deep-execute run and usable standalone. The default roster runs 16 lenses; two of them guard against the failure modes an agent writing code falls into most: code-reuse asks whether the repo already does what the diff just added, searching by concept through Serena, gitnexus and graphify rather than by guessed name; type-precision flags loose annotations (bare dict, any, map[string]interface{}, missing return types, list[str, str]) and primitive obsession (str for an id, float for money, swappable same-typed parameters).
Execution recommendation (how the plan gets built)

The approved plan says what to build; how it gets built is a separate call, and it is yours. deep-plan's last phase reads the plan's ## Execution shape, picks one of four modes with the criteria in dot_claude/skills/_shared/plan-routing.md, and writes the choice to $RUN_DIR/execution-recommendation.md. The recommended mode runs unless you named another.

Before it offers those options it re-runs validate-plan.sh --root from the project root β€” the exact check /deep-execute's init-run.sh will run. Phase 3 already validated before presenting the plan, but Plannotator's second pass can edit it afterwards, so a shape failure would otherwise surface only once you asked to build. It now fails at the recommendation instead.

The four modes are A /deep-execute (parallel lanes), B the implement skill (serial, the default), C Claude Workflow and D a Codex implementer. plan-routing.md holds the criteria.

The planning session orchestrates; it does not implement. It directs workers, answers their questions, gates rounds, routes review and QA findings back to the owning agent, and commits. The session writes feature code only when you ask for that β€” never because it judged the change small enough to just do itself.

Whichever mode runs, the tail is the same and runs end to end without checking in β€” it halts only on a blocker no agent can settle alone. The run is wrapped in /goal (built into Claude Code and Codex) with the objective stated as the finished state β€” reviewed, QA-green, PR open β€” which is what keeps it driving there instead of stopping at the first natural pause; /deep-execute opens its own in Phase 0, and under B, C and D the planning session opens it. The tail is dot_claude/skills/_shared/after-approval.md. Under A the script build-run-report.sh builds the HTML run report; under B, C and D the session writes it.

QA has one route: the chain starts the qa-ui and qa-business agents. qa-business runs the plan's qa-plan.yaml through /qa-test-plan when it names one, and drives agent-browser itself otherwise.

The build and the fixes use predefined agents in dot_claude/agents/: implementer-backend, implementer-frontend and fixer. Each agent file fixes the role, the rules, the model (Sonnet) and the effort (medium). The spawn message carries only the task. In Orca, the chain starts the agent with orca terminal create --command "claude --agent <name>", then orca orchestration worker-start --terminal <handle>. Outside Orca, it uses the Agent tool with subagent_type: <name>. The settings set subagentPromptCacheTtl to 1h and leave agent teams off.

simple-plan reviews each plan with the plan-reviewer agent: one per side that the plan changes (backend, frontend), in parallel. It checks scope drift, the plan format, types, project patterns, reuse, the callers and flows the plan missed, external systems, architecture and edge cases.

Plans follow dot_claude/skills/_shared/plan-format.md, not superpowers:writing-plans. The superpowers header sent the build to subagent-driven-development, which ends in finishing-a-development-branch and stops to ask. The plan header now points to implement and after-approval.md.

The step file and the workflow gate

Every planning run keeps a step file, $RUN_DIR/chain.md, with dot_claude/skills/_shared/executable_workflow.sh. init lists every planning phase and every step of the build chain (_shared/workflows/*.steps). The orchestrator marks each step done with evidence, skip with a reason, or wait and block before it ends a turn. Each spawned agent (implementer-*, fixer, plan-reviewer, qa-ui, qa-business) keeps its own step file the same way. The final review step cannot be skipped once code was built.

dot_claude/hooks/executable_workflow-gate.sh runs on Stop and SubagentStop. It acts only on a session whose transcript holds the [workflow-gate] tracking <file> line that init prints, so work outside a workflow is never blocked. It blocks the end of a turn while a step is todo, and prints what is done, what is next and what is left. It stands aside for a waiting or blocked step, on stop_hook_active, for a step file older than 2 days, and when the user says "encerrar mesmo assim". It trusts only a step file under ~/.claude/*-runs/ that starts with # Workflow:, because any text in a transcript can contain a tracking line. The test is _shared/tests/executable_test-workflow-gate.sh.

The whole flow, from the plan to the merge:

flowchart TD
    P["/simple-plan or /deep-plan<br/>workflow.sh init β†’ chain.md"] --> G[grill, brainstorm, draft<br/>plan-format.md]
    G --> R["plan review<br/>plan-reviewer Γ—1-2 (simple) Β· 5 personas (deep)<br/>≀ 3 rounds"]
    R --> A[Plannotator gate<br/>no annotations = approved]
    A --> B["build: implement or /deep-execute<br/>one build.n row per task"]
    B -. every 5 min .-> W["agent-watch: stalled or off course?<br/>send the correction"]
    W -.-> B
    G -. every 5 min .-> W
    B --> DR["final /deep-review, full process<br/>≀ 3 fix rounds Β· cannot be skipped"]
    DR --> Q[qa-ui Β· qa-business β†’ fixer, ≀ 3 rounds]
    Q --> D[demo β†’ run report]
    D --> PR["/pr with watch<br/>every comment: reply + resolve"]
    PR --> PA["/pr-approved<br/>threads β†’ CI β†’ squash merge β†’ cleanup"]
    S{{"workflow-gate.sh<br/>Stop / SubagentStop"}} -. blocks while a step is todo .-> B
Loading
Watching the agents

_shared/agent-watch.md schedules a check every 5 minutes when the first agent starts (CronCreate; a 5-minute wait timeout under Codex). It covers the planning agents (explorers, planners, plan reviewers, the ui-designer) and the build agents. The check reads each agent's step file, its output and its diff. A stalled agent shows no progress, waits on a prompt, hangs on a command (watch mode, a foreground server, an editor, stdin), loops on the same command or error, or stays busy with no change to its steps or diff. The orchestrator interrupts a hung command (orca terminal send --interrupt, TaskStop) and breaks a loop. An off course agent edits files outside its task, does what the plan does not ask, skips a step such as the failing test, or works around a gate. The orchestrator sends the correction at once, logs it with workflow.sh log, and asks the user when the same agent fails twice. It is the only poll: between checks the orchestrator ends its turn.

Closing an approved PR β€” /pr-approved

/pr-approved [<pr>] runs the pr-approved skill when the reviewer approved:

  1. threads β€” address-pr-comments replies to and resolves every open thread. A thread that waits on the user blocks the merge.
  2. ci β€” waits for the checks; a red one goes through systematic debugging and starts again.
  3. merge β€” gh pr merge --squash, only when pr-approved.sh state reports ready.
  4. tasks β€” pr-approved.sh pending <worktree> keeps the worktree when it has uncommitted or unpushed work, open steps of another run, or a breakdown with more tasks.
  5. cleanup β€” deletes the remote branch, then orca worktree rm --delete-branch in Orca.

The /pr watch follows the same rule for each comment: fix or decline, reply, then resolve.

The Stop hook that refuses to lose the run report

Phase 5 was the only phase without a gate, and across three real runs the report was never built once. finish-run.sh checks for it, but something has to call finish-run.sh β€” and forgetting the last step is the failure being fixed.

So ~/.claude/hooks/unfinished-run-gate.sh runs as a Stop hook. It fires from the harness whether or not anyone remembered, and blocks the session from ending while a recent deep-execute run has a manifest and no rendered report/index.html.

A blocking hook that misdiagnoses is worse than the problem β€” it traps a session with no way out but editing settings.json mid-irritation. There are three guards, and all three leave a trace in ~/.local/state/deep-execute/stop-gate.log:

  • Say encerrar mesmo assim anywhere in the session and it stands aside.
  • It blocks once per run. After that the run is marked and never blocks again.
  • It honours stop_hook_active, so it cannot loop against its own block.

It also ignores runs whose events.jsonl has not moved in a day: an abandoned run from last month must not block every session from now on.

Run report (what was built, and why)

The approved plan records the decisions taken before code was written. Decisions taken during the run β€” which of two viable implementations a lane picked, what it assumed about a lane it doesn't own, where it worked around something the plan missed β€” otherwise die with the worker's session. decision.sh is the channel that outlives the pane:

decision.sh RUN_DIR LANE TASK --title "Materialized view for the totals" \
  --rationale "The plan left the aggregation strategy open; a view keeps reads to one query." \
  --alternative "Compute in the API layer β€” N+1 across three tables" \
  --tradeoff "Up to 60s of refresh lag on the totals"

It writes lanes/<lane>/decisions/NNN.json and emits a decision event carrying only the headline β€” an events.jsonl line must stay single-line and under PIPE_BUF for concurrent appends to be atomic, and rationale is prose. decision events are deliberately not monitor triggers; they are for the report, not an interruption mid-round.

After the final review, the frozen SHA, QA and the opened PR, build-run-report.sh RUN_DIR [--final-sha SHA] [--review report.md] [--qa index.html] [--pr URL] renders RUN_DIR/report/index.html: what was built (git diffstat, baseline β†’ frozen SHA), the lane table with owns/depends_on, every recorded decision with its rejected alternatives and accepted tradeoffs, the plan's own pre-implementation rationale, drift (contract version moved, extra rounds, blocked lanes), the final board plus full event timeline, the review/QA evidence (screenshots and recordings live in the linked QA report), and the pull request. Self-contained HTML, light and dark, no external assets.

Every claim on that page comes from a file in the run directory β€” it is never written or padded from a model's memory of the run. So a decision no lane recorded is simply absent, and the page says so rather than implying none were made.

An approved plan for /deep-execute extends deep-plan's normal plan format with an Execution shape (Mode: parallel, exactly one orchestrator lane, a lane table of owns path globs / test_command / agent / depends_on) and an API contract (a single materialized, versioned file every lane treats as read-only after fanout). validate-plan.sh --root enforces this shape before /deep-execute will accept the plan. The lane boundary itself is enforced by changed-files-within-union β€” a git-only diff against the round's baseline commit; per-lane attribution (worker-<lane>.files.txt) is self-declared and unauthenticated, so treat it as a diagnostic, never as proof of who wrote what.

Run just test-deep-pipeline to exercise the whole pipeline's shell test suites (700+ assertions across plan validation, lane/ownership boundaries, the event/reply protocol, round gating, and an end-to-end integration test walking a real plan through validate-plan.sh β†’ init-run.sh β†’ validate-contract.sh β†’ validate-run-state.sh).

Pre-commit

  • .pre-commit-config.yaml - Pre-commit hooks for:
    • Shell script linting (shellcheck, shfmt)
    • YAML linting (yamllint)
    • Markdown linting (markdownlint)
    • Python formatting (black, isort, ruff)
    • Secrets detection (gitleaks)
    • Spell checking (codespell)

MCP Servers

Where Claude Code actually reads MCP servers from. dot_claude/settings.json.tmpl renders an mcpServers block, and ~/.claude/mcp_servers.json holds the same merged set, but neither is what the CLI uses. Adding kitesurf and obscura to ~/.claude/settings.json left both absent from claude mcp list; registering obscura with claude mcp add --scope user put it in ~/.claude.json and it connected immediately. So ~/.claude.json is the live registry.

That file is in .chezmoiignore.tmpl on purpose β€” it is rewritten on every launch β€” which means chezmoi apply can never overwrite a server registered there. The tradeoff is that a server registered this way does not travel to a new machine. .chezmoidata/mcp-server.yml stays the written record of what each machine should have; register them on a fresh machine with claude mcp add --scope user <name> -- <command> [args...].

The following MCP servers are configured for Claude Code:

  • context7 - Up-to-date library documentation
  • sequential-thinking - Enhanced reasoning capabilities
  • playwright - Browser automation for testing
  • filesystem - Enhanced file operations in ~/Developer
  • memory - Persistent context across sessions
  • gitnexus - Codebase knowledge graph for AI agents
  • kitesurf - Cloudflare Browser Run's remote headless browser for agents
  • obscura - Local headless browser for agents (Rust, no Chrome), reaches localhost

Browser navigation β€” which tool for which target

Target Tool Why
Public web page kitesurf MCP Runs on Cloudflare. Nothing installs here, nothing runs here
localhost dev server, private IP obscura MCP Runs on this machine, so it reaches this network
Logged-in profile, Electron app, QA evidence agent-browser skill A real browser, and it records screenshots and video

Kitesurf (remote)

Kitesurf is Cloudflare's stateless headless browser. It runs on Cloudflare Workers, so nothing installs on this machine β€” there is no Kitesurf CLI and no local Chrome to manage. The only local part is chrome-devtools-mcp, which npx fetches on demand and which speaks CDP over a WebSocket to Cloudflare.

The server is defined in .chezmoidata/mcp-server.yml under mcp_servers.shared, so it loads on personal and work machines. It reads two variables from the environment at launch, which keeps the token out of this repo:

# ~/.zsh_env_vars (never committed β€” see .chezmoiignore.tmpl)
export CLOUDFLARE_ACCOUNT_ID="your-account-id"
export CLOUDFLARE_API_TOKEN="your-api-token"   # needs the "Browser Rendering: Edit" permission

Verify the credentials without an agent:

curl -X POST "https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/browser-run/screenshot?browser=kitesurf" \
  -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"url": "https://example.com"}' \
  --output screenshot.png

Kitesurf is free while in beta, behind per-account limits, and Cloudflare says it plans to open source it. It reaches no local port, which is what Obscura below is for.

Obscura (local)

Obscura is an Apache-2.0 headless browser engine in Rust β€” real V8, no Chrome, no Node. Cloudflare names it as Kitesurf's original inspiration. Because it runs here, it reaches what Kitesurf cannot: a dev server on localhost, a private address, a service on the LAN.

Homebrew has no formula, so .chezmoiexternal.toml pins the v0.2.0 release archive and its SHA256 for the machine's architecture, unpacks it into ~/.local/share/obscura, and dot_local/bin/symlink_obscura.tmpl links the binary into ~/.local/bin. Bump the version and the checksum together β€” a retag upstream then cannot change what lands here. The archive carries two binaries: obscura and the obscura-worker that serve and scrape spawn beside it. Only obscura is linked, because it resolves its own real path and finds the worker there.

obscura fetch https://example.com --eval "document.title"   # fetch and evaluate
obscura fetch https://example.com -s page.png               # render and screenshot
obscura scrape url1 url2 url3 --concurrency 25 --format json
obscura serve --port 9222                                   # CDP endpoint for Playwright/Puppeteer
obscura mcp                                                 # MCP server over stdio

Security β€” read before using it against a real site. The MCP entry passes --allow-private-network, which turns off Obscura's default block on loopback, RFC1918 and link-local addresses. That block is an SSRF guard. The flag is set on purpose, because reaching localhost is the whole reason this server exists, but the cost is real: a page Obscura loads can redirect it to an address on this network. Drop the flag in .chezmoidata/mcp-server.yml to restore the guard, and Obscura then reaches the public internet only.

The release binaries are unsigned third-party builds. They are pinned by SHA256 here, so an upstream retag cannot swap them, but the pin only proves the bytes have not changed since they were checked β€” it is not a review of what they do.

The checksums above pin the plain render build. Its --stealth flag therefore only gives a consistent browser fingerprint; the TLS impersonation and tracker blocking need the separate -stealth release archive, which this does not install.

The routing rule between the three tools lives in dot_claude/CLAUDE.md.tmpl, dot_codex/AGENTS.md and AGENTS.md.

Git Workflow Enhancements

P4Merge - Visual Merge Tool

P4Merge (Perforce Visual Merge Tool) is configured as the default merge and diff tool for handling merge conflicts visually.

Usage:

# Resolve merge conflicts visually
git mergetool

# Compare files visually
git difftool <file>

# Switch back to nvim for quick merges (optional)
git config merge.tool nvimdiff

Features:

  • 3-way merge view (BASE, LOCAL, REMOTE)
  • Visual conflict highlighting
  • Side-by-side diff comparison
  • Better for complex conflicts than terminal-based tools

Git Aliases

Over 40 useful git aliases are configured in .gitconfig:

Status & Info:

  • git s - Short status
  • git st - Full status

Branches:

  • git br - List branches
  • git bra - List all branches (including remotes)

Log:

  • git l - Oneline log with graph
  • git lg - Pretty log with colors
  • git last - Show last commit with stats

Common Operations:

  • git co - Checkout
  • git cm - Commit with message
  • git ps - Push
  • git p - Pull
  • git d - Diff
  • git ds - Diff staged

Utilities:

  • git unstage - Unstage files
  • git undo - Undo last commit (soft reset)
  • git clean-branches - Delete merged branches

Run git config --get-regexp alias to see all configured aliases.

Troubleshooting

Pre-commit hooks not running

just install-hooks
# or
pre-commit install

Packages not installing

chezmoi apply -v
# or
just apply

Cursor extensions failing

Some extensions may not be compatible with your Cursor version. Check the output and install manually if needed.

Shell changes not taking effect

source ~/.zshrc
# or restart your terminal

Git diff not using delta

git config --get core.pager
# Should show "delta"
# If not, run: chezmoi apply -v

Docker Compose Examples

Pre-configured Docker Compose files for common data engineering and ML infrastructure are available in ~/.config/docker-compose-examples/.

Available Services

Service File Ports Usage
PostgreSQL postgres.yml 5432 docker-compose -f ~/.config/docker-compose-examples/postgres.yml up -d
Kafka + UI kafka.yml 9092, 8080 docker-compose -f ~/.config/docker-compose-examples/kafka.yml up -d
Spark Cluster spark.yml 8080, 7077 docker-compose -f ~/.config/docker-compose-examples/spark.yml up -d
ClickHouse clickhouse.yml 8123, 9000 docker-compose -f ~/.config/docker-compose-examples/clickhouse.yml up -d
MLflow Server mlflow.yml 5000 docker-compose -f ~/.config/docker-compose-examples/mlflow.yml up -d

Quick Start

# Navigate to examples directory
cd ~/.config/docker-compose-examples

# Start PostgreSQL
docker-compose -f postgres.yml up -d

# View logs
docker-compose -f postgres.yml logs -f

# Stop service
docker-compose -f postgres.yml down

# Stop and remove volumes (clean slate)
docker-compose -f postgres.yml down -v

See ~/.config/docker-compose-examples/README.md for detailed usage instructions, connection examples, and troubleshooting tips.

About

~/. πŸ“‚

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages