feat: add tmux integration with visual subagent panes

- plugins/tmux-panes.ts: opencode plugin that hooks into session.created/
  session.deleted events to spawn a tmux pane per subagent running
  'opencode attach', giving live visual TUI for each background agent
- opencode.jsonc: load the local plugin alongside @tarquinen/opencode-dcp
- skills/tmux-session/SKILL.md: teach agents to manage persistent tmux
  sessions (dev servers, watchers, worktree windows) with oc- naming
- c.fish / cc.fish: auto-start a tmux session when invoked outside tmux
  so the visual panes plugin can always activate
This commit is contained in:
alex
2026-03-11 12:12:24 +00:00
parent 796d36a138
commit 4b4a32eff6
5 changed files with 185 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
function cc --wraps='opencode --continue' --description 'alias cc opencode --continue'
opencode --continue $argv
function cc --wraps='opencode --continue' --description 'opencode --continue (auto-starts tmux for visual subagent panes)'
if not set -q TMUX
tmux new-session opencode --continue $argv
else
opencode --continue $argv
end
end