MCPcopy Create free account
hub / github.com/codeaashu/claude-code / runTmuxInUserSession

Function runTmuxInUserSession

src/utils/swarm/backends/TmuxBackend.ts:77–81  ·  view source on GitHub ↗

* Runs a tmux command in the user's original tmux session (no socket override). * Use this for operations that interact with the user's tmux panes (split-pane with leader).

(
  args: string[],
)

Source from the content-addressed store, hash-verified

75 * Use this for operations that interact with the user's tmux panes (split-pane with leader).
76 */
77function runTmuxInUserSession(
78 args: string[],
79): Promise<{ stdout: string; stderr: string; code: number }> {
80 return execFileNoThrow(TMUX_COMMAND, args)
81}
82
83/**
84 * Runs a tmux command in the external swarm socket.

Callers 2

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected