session_start
Start or resume an agent work session and bind it to this connection. Get a project briefing and automatically scope later memory and note calls to that project.
Instructions
Begin or resume an agent work session and bind it to this connection. Returns the project briefing. Later memory/recall/notes calls inherit this session's project scope, so you rarely pass project again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute working directory; auto-mapped to a project from the repo root on a repo's 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 | Optional stable session name; reusing a name resumes that session | |
| 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 | |
| source | No | what began this session (default explicit) | |
| 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 |