session_start
Bind an agent connection to a work session and return its project briefing. Use it for hookless clients, switching projects, or resuming a named session.
Instructions
Bind this connection to a work session and return its project briefing. Claude Code and Codex agents running the Seamless hooks are bound to their own session automatically (the 'Seam session' line in the briefing) and do not need this. Call it to bind a client without hooks, to move this connection to another project, or to resume a named session. Later calls inherit the session's project, so they need no project argument.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory. The git repository it is in decides the project, and a repository maps itself to a project on its first session -- no setup step (`seamlessd map-repo` only overrides the derived slug) | |
| host | No | Machine this agent runs on (hostname). Defaults to the X-Seamless-Host header, then to the daemon's own host; pass it only when dialling a daemon on another machine | |
| name | No | Resume the session with this name: a sess/* name from an earlier call, or the cc/... or cx/... on your briefing's 'Seam session' line. A new name starts a separate session under that name; omit it to use your own session, or a fresh one | |
| model | No | Model id powering this agent, exactly as the provider names it (e.g. claude-fable-5, gpt-5.5). Stamped onto memories/notes this session writes; hooks keep it current for Claude Code/Codex sessions, so pass it mainly from other clients | |
| project | No | Project slug to bind. Defaults to the project of the git repository cwd is in, then to your own session's project. If cwd is in a repository too, the two must agree. project=global binds the global scope; an unknown slug creates that project. | |
| repo_root | No | Absolute git repository root enclosing cwd, resolved on YOUR machine. Required when host is not the daemon's: the daemon cannot read your filesystem to find it | |
| repo_origin | No | The repository's origin remote URL, which is how the same repo checked out on two machines is recognized as one project | |
| main_worktree_root | No | Absolute root of the repository's MAIN checkout when repo_root is a linked worktree; defaults to repo_root |