Resume Existing Session In Visible TUI
companion_tui_resumeResume an existing Claude Code session in a tmux terminal and bind it to the current project companion. Reconnects a prior conversation for continued collaborative development.
Instructions
Launch the visible tmux-hosted Claude Code CLI with --resume <sessionId> or --continue, then bind it to this project companion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project working directory. Defaults to the MCP server cwd. | |
| mode | No | SDK backend: read-only denies mutating tools; workspace-write may edit files. TUI backend receives this as visible companion context and still relies on Claude Code CLI/user supervision. | |
| model | No | Optional Claude model override. Omit to use Claude Code defaults. | |
| title | No | Human-readable companion title. | |
| effort | No | Optional Claude effort override. Defaults to high. | |
| backend | No | Companion backend. sdk is the default managed Claude Agent SDK path; tui opens a native Claude Code CLI in tmux. | |
| maxTurns | No | Optional max agent turns for a single send. | |
| sessionId | No | Existing Claude Code session id to bind/resume, equivalent to `claude --resume <session-id>`. | |
| claudePath | No | Optional local Claude Code executable path. Defaults to the local `claude` on PATH. | |
| replaceTui | No | For the TUI backend: close the existing tmux pane before launching the requested resumed conversation. | |
| allowedTools | No | Optional auto-allowed Claude Code tools. | |
| maxBudgetUsd | No | Optional SDK USD stop-loss cap for a single Claude turn. Omit for normal Claude Max/subscription workflows unless you explicitly want a hard per-turn cap. | |
| maxRuntimeMs | No | Stop-loss wall clock timeout for a single run. | |
| continueLatest | No | For the TUI backend only: launch Claude Code with `--continue` for the most recent conversation in this cwd. | |
| stallTimeoutMs | No | Stop-loss timeout when no Claude SDK progress events arrive. | |
| disallowedTools | No | Optional tools removed from use. | |
| tmuxSessionName | No | Optional tmux session name for the tui backend. Defaults to a stable project-derived name. | |
| permissionPolicy | No | SDK backend policy: balanced allows local project work and blocks detected out-of-cwd paths; trusted allows all non-disallowed tools; strict allows only allowedTools; bypass uses Claude Code bypassPermissions. TUI bypass starts Claude Code with --dangerously-skip-permissions, but existing TUI panes must be recreated for launch flags to change. |