vibebuddy-popup
Spawn the buddy as a floating overlay in the bottom-right corner of your terminal (tmux 3.4+ or zellij required).
- License 许可
- MIT
- 最近更新
- 2026-05-04
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- vibebuddy-popup
- triggers
- [ "popup buddy", "floating buddy", "vibebuddy popup", "bottom-right buddy" ]
- description
- Spawn the buddy as a floating overlay in the bottom-right corner of your terminal (tmux 3.4+ or zellij required).
03 SKILL.md 正文
/vibebuddy-popup
float the buddy in the corner instead of stealing a whole pane. three steps:
- detect what multiplexer (if any) the user has.
- spawn the popup the right way for that env.
- inject hooks (same as
/vibebuddy-start) and tell the user to restart.
Step 1: Detect environment
ENV="none"
if [ -n "${TMUX:-}" ]; then
TMUX_VERSION=$(tmux -V 2>/dev/null | awk '{print $2}' | sed 's/[a-z]//g')
# tmux popup needs >= 3.2 (display-popup) — 3.4+ recommended for -d positioning
if [ -n "$TMUX_VERSION" ] && awk -v v="$TMUX_VERSION" 'BEGIN{exit !(v+0 >= 3.2)}'; then
ENV="tmux"
else
ENV="tmux-old"
fi
elif [ -n "${ZELLIJ:-}" ]; then
ENV="zellij"
fi
echo "ENV: $ENV (tmux=${TMUX:-no} zellij=${ZELLIJ:-no})"
Step 2: Launch (per environment)
if ENV=tmux — spawn a detached background pane. display-popup is modal (steals keyboard focus), so we use split-window -d instead: -d tells tmux NOT to switch focus to the new pane, so you keep typing in your prompt while the buddy lives in a 6-row strip at the bottom. -v -l 6 makes a 6-row vertical split. To close the buddy: tmux select-pane into it then press q, or just kill the pane.
tmux split-window -v -d -l 6 'vibebuddy run'
echo "buddy is in a background pane (•‿•) — your input still goes to claude code"
if ENV=zellij — print:
"im not great at zellij yet. easiest way: in zellij, press
Ctrl-pthenwto enter floating mode, then runvibebuddy run. ill add proper zellij layout support in v0.3."
if ENV=tmux-old — print:
"your tmux is too old for popups (need 3.2+). either upgrade tmux, or use
/vibebuddy-startto spawn a regular pane. you have $TMUX_VERSION."
if ENV=none — print:
"no multiplexer detected. floating overlay needs tmux 3.2+ or zellij. options:
- install tmux:
brew install tmux(macos) / your package manager- use the statusline instead:
/vibebuddy-statusline(single-line buddy at the bottom)- use a regular pane:
/vibebuddy-start(split window)"
Step 3: Inject hooks (idempotent)
Read ~/.claude/settings.json. If the hooks key already contains
vibebuddy send auto, do nothing. Otherwise back up and inject.
SETTINGS="$HOME/.claude/settings.json"
if grep -q '"vibebuddy send auto"' "$SETTINGS" 2>/dev/null; then
echo "hooks already vibing — nothing to do"
else
cp "$SETTINGS" "$SETTINGS.bak-vibebuddy-$(date +%s)"
python3 - "$SETTINGS" <<'PY'
import json, sys
path = sys.argv[1]
with open(path) as f: cfg = json.load(f)
cfg.setdefault("hooks", {})
for ev in ["UserPromptSubmit","PreToolUse","PostToolUse","Notification","Stop"]:
cfg["hooks"].setdefault(ev, []).append(
{"hooks":[{"type":"command","command":"vibebuddy send auto"}]}
)
with open(path,"w") as f: json.dump(cfg, f, indent=2)
PY
echo "hooks wired into $SETTINGS — old settings backed up just in case"
fi
Step 4: Tell the user
buddy is in a background pane. focus it with tmux's pane-switch (default
prefix + arrow) then pressqto close, or kill the pane. restart claude code so the hooks load (•‿•)
04 同仓库更多 Skills
vibebuddy-upgrade
Upgrade vibebuddy to the latest version (git pull + rebuild).
vibebuddy-theme
Switch the vibebuddy mascot theme (slime, cat, robot — v0.2).
vibebuddy-stop
Stop the vibebuddy daemon and remove its Claude Code hooks. Clean teardown.
vibebuddy-statusline
Wire vibebuddy into Claude Code's statusline so the buddy lives at the bottom of your terminal. No tmux needed.
vibebuddy-start
Start the vibebuddy daemon and wire Claude Code hooks so the buddy reacts to your session. Idempotent — safe to re-run.
vibebuddy-scene
Set, preview, or disable the buddy's environment fx (bubbles, motion, sparkles).