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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user