MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getTmuxInstallInstructions

Function getTmuxInstallInstructions

src/utils/swarm/backends/registry.ts:259–285  ·  view source on GitHub ↗

* Returns platform-specific tmux installation instructions.

()

Source from the content-addressed store, hash-verified

257 * Returns platform-specific tmux installation instructions.
258 */
259function getTmuxInstallInstructions(): string {
260 const platform = getPlatform()
261
262 switch (platform) {
263 case 'macos':
264 return `To use agent swarms, install tmux:
265 brew install tmux
266Then start a tmux session with: tmux new-session -s claude`
267
268 case 'linux':
269 case 'wsl':
270 return `To use agent swarms, install tmux:
271 sudo apt install tmux # Ubuntu/Debian
272 sudo dnf install tmux # Fedora/RHEL
273Then start a tmux session with: tmux new-session -s claude`
274
275 case 'windows':
276 return `To use agent swarms, you need tmux which requires WSL (Windows Subsystem for Linux).
277Install WSL first, then inside WSL run:
278 sudo apt install tmux
279Then start a tmux session with: tmux new-session -s claude`
280
281 default:
282 return `To use agent swarms, install tmux using your system's package manager.
283Then start a tmux session with: tmux new-session -s claude`
284 }
285}
286
287/**
288 * Gets a backend by explicit type selection.

Callers 1

detectAndGetBackendFunction · 0.70

Calls 1

getPlatformFunction · 0.85

Tested by

no test coverage detected