Skip to content

FAQ & Tips

Common questions and tips for using agents-in-a-box effectively.


Tmux

How do I delete word-by-word inside tmux?

Outside tmux, Option+Delete deletes word-by-word, but inside tmux it only deletes character-by-character. This is because tmux doesn’t pass through the Option key modifier by default.

Quick Solution: Use Ctrl+W

Ctrl+W deletes the word before the cursor - this works universally in tmux without any configuration.

To Get Option+Delete Working:

1. Terminal Emulator Settings

iTerm2:

  • Preferences → Profiles → Keys → Key Mappings
  • Find or add ⌥←Delete (Option+Backspace)
  • Set Action: “Send Escape Sequence”
  • Set Esc+: ^H (or \x17 for Ctrl+W equivalent)

Kitty (~/.config/kitty/kitty.conf):

map alt+backspace send_text all \x17

Ghostty (~/.config/ghostty/config):

keybind = alt+backspace=text:\x17

2. Shell Bindings (zsh)

Add to ~/.zshrc:

Terminal window
# Word deletion bindings
bindkey '^[[3;3~' kill-word # Alt+Delete (forward)
bindkey '\e^?' backward-kill-word # Alt+Backspace (backward)
bindkey '\e\b' backward-kill-word # Alternative binding

Then source ~/.zshrc or restart your shell.

3. Ensure tmux passes modifiers

Add to ~/.tmux.conf:

Terminal window
# Extended keys for modifier support
set -s extended-keys on
set -as terminal-features ',*:extkeys'

Then reload: tmux source-file ~/.tmux.conf


How do I copy/paste in tmux?

See the Clipboard Setup section in ainb-tui/CLAUDE.md for full details.

Quick reference:

ActionHow
Copy (mouse)Drag to select, release → clipboard
Copy (keyboard)prefix + [, select with v, press y
Pasteprefix + P (Shift+P) or Cmd+V

Note: Make sure you’ve installed the recommended tmux config:

Terminal window
cp config/tmux.conf ~/.tmux.conf
tmux source-file ~/.tmux.conf

Why doesn’t say or audio work in tmux?

macOS restricts access to user-session services (audio, notifications, keychain) from within tmux by default.

Solution: Install reattach-to-user-namespace:

Terminal window
brew install reattach-to-user-namespace

The recommended tmux config (config/tmux.conf) automatically uses it if installed.


How do I reduce screen flickering in tmux?

Claude Code generates high-frequency screen updates (4,000+ scroll events/sec) which can cause flickering.

Solution: Use the recommended tmux config:

Terminal window
cp config/tmux.conf ~/.tmux.conf
tmux source-file ~/.tmux.conf

Key anti-flicker settings included:

  • escape-time 0 - Eliminates escape sequence delay
  • status-interval 30 - Reduces status bar refresh
  • automatic-rename off - Reduces CPU overhead

Sessions

What are the different session types?

IconTypeDescription
BossClaude Code running in containerFull isolated environment
TmuxClaude Code in tmux sessionLightweight, uses host environment
ShellPlain shell sessionNo Claude, just terminal
OtherExternal tmux sessionsSessions not created by ainb

How do I clean up orphaned sessions?

Press x from the session list to clean up:

  • Orphaned Docker containers (ainb-*)
  • Orphaned tmux sessions (ainb-ws-*, ainb-shell-*)

Keyboard Shortcuts

Session List

KeyAction
nNew session
EnterAttach to session
d / DDelete session / with confirmation
rRestart session
xCleanup orphaned sessions
$Open shell in workspace
oOpen in editor
F2Rename “Other” tmux session
gGit view
lLogs view
cConfig
?Help
qQuit

Troubleshooting

Session won’t start

  1. Check Docker is running: docker ps
  2. Check tmux is installed: tmux -V
  3. Run dependency check: agents-box → follow onboarding wizard

Can’t paste into tmux

See How do I copy/paste in tmux? above.

Terminal looks garbled

Try:

  1. Ctrl+L to refresh screen
  2. reset command in terminal
  3. Restart tmux session

Have a question not covered here? Open an issue on GitHub.