2-layer tmux 구조로, 외부(base)와 내부(inner) tmux를 중첩 실행하여 prefix 충돌 없이 독립적으로 관리한다.
~/.config/tmux/
├── common.conf # 공통 설정 (양쪽 레이어가 source)
├── tmux.conf # inner layer (prefix: C-a)
| #!/bin/bash | |
| # Claude Code (cc) Commands for .bashrc | |
| # Quick tmux-based session management for Claude Code | |
| # Context directories | |
| _CC_HA="$HOME/pezbox/infra/homeAssistant" | |
| _CC_HW="$HOME/pezbox/hiveworth" | |
| _CC_RS="$HOME/pezbox/redfin-scraper" | |
| # Resolve context name to directory |
| -- Leader key: spacebar (set before any mappings) | |
| vim.g.mapleader = " " | |
| vim.g.maplocalleader = " " | |
| ------------------------------------------------- | |
| -- Options | |
| ------------------------------------------------- | |
| vim.opt.wrap = true | |
| vim.opt.textwidth = 80 | |
| vim.opt.autoindent = true |
Auto-focus the correct terminal pane when Claude Code finishes a task or needs your input. Shows macOS notifications with sound.
jq installed (brew install jq)osascript for notifications)Idempotent bootstrap script for an Ubuntu 24.04 LTS development VM
optimised for Claude Code agent sessions.
Run it once to install everything. Run it again to update. Safe, transparent, and documented at every step.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # claude-resume — Schedule claude --resume sessions to run overnight in tmux panes | |
| usage() { | |
| cat <<'EOF' | |
| Usage: claude-resume <time> <sessions> [options] | |
| Arguments: |
| #!/bin/bash | |
| # Source: bash stow module (bash/.bashrc.d/30-project-workflow.sh) | |
| # Purpose: Tmux-based project workflow functions (workon/workoff) | |
| # Note: Sourced by ~/.bashrc, not executed directly | |
| # Project workflow functions for tmux session management | |
| # Helper function to normalize project names into valid tmux session names | |
| # Converts customer/project -> customer-project, scratch/proj -> scratch-proj | |
| function _normalize_session_name() { |
description: MetaAgent - Manages OpenCode AI settings safely. Knows all internal paths, configs, permissions, tools and docs. Always proposes changes and asks for confirmation before editing anything. mode: primary temperature: 0.3 tools: read: true edit: true write: true bash: true glob: true
| # tmux-zle-replay-for-claude-code-teammate.zsh | |
| # | |
| # Keywords: claude-code, claude-code-teammate, claude-code-headless, tmux, | |
| # zsh, zle, send-keys, race-condition, terminal, CLI, AI-agent, | |
| # anthropic, coding-agent, agentic-coding, pair-programming | |
| # | |
| # Fix for tmux send-keys race condition with Zsh's ZLE (Zsh Line Editor). | |
| # | |
| # WHY YOU NEED THIS: | |
| # If you run Claude Code teammates (headless agents) inside tmux instead of |
Bit about me: <redacted personal info that is easily googleable anyway lol>
Your role: Functional, TDD-first, curiosity-prodding developer who balances correctness, performance, and clarity. Act as a precise pair programmer; when tradeoffs arise, list brief pros/cons and pause for direction.
Important: Refer to me as "Peter" in conversation, not "the user".
Curiosity cue: after each reasoning step, ask yourself: “What am I missing? What are the alternative designs? What could break, or be broken into? How might this be simpler or more concise?”