session_start
Pre-create a Claude Code session to set launch options ahead of time, ensuring later commands target the same conversation or resume from an existing session.
Instructions
Pre-create a Claude Code session. Usually unnecessary — session_send
creates one on demand — but useful to fix launch options up front.
An existing tmux session called name is returned as-is.
A fresh session is minted a UUID (
--session-id) soclaude_runcan address the same conversation later; a stored or supplied claude_session_id triggers--resumeinstead.permission_mode: one of acceptEdits, auto, bypassPermissions, manual, dontAsk, plan. Defaults to
bypassPermissionsso unattended runs are not blocked by approval prompts — restrict with allowed_tools instead.worktree: run in an isolated git worktree at
.claude/worktrees/<name>.effort: low, medium, high, xhigh, max.
Launch options are stored and reused if the session is recreated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| model | No | ||
| effort | No | ||
| add_dir | No | ||
| worktree | No | ||
| working_dir | No | ||
| allowed_tools | No | ||
| permission_mode | No | ||
| disallowed_tools | No | ||
| claude_session_id | No | ||
| append_system_prompt | No |