Majordomo of AI assistants living in tmux sessions.
Automatically detects Claude Code, Gemini, and Codex running in tmux panes and allows you to send context directly from vim to the right AI assistant.
cargo install tmux-botdomoAdd to your .tmux.conf:
set-hook -g server-start "run-shell 'tbdmd start'"Note that session-closed hook is currently broken in tmux 3.5a and doesn't get triggered as expected. Therefore, tbdmd automatically shuts down when it detects the tmux session no longer exists.
vim.keymap.set('v', '<leader>tb', function()
vim.cmd('normal! "zy')
local context = vim.fn.getreg('z')
vim.fn.system('tbdm send ' .. vim.fn.shellescape(context))
end)This essentially mimics yanking.
- Select code in vim/Neovim.
- Press your configured keybinding.
- Selected conetext is sent to the detected AI assistant in your tmux session, based on the working directories.
tbdm status # Check daemon status
tbdm send # Send context to AI assistant (typically called from vim)