Create a persistent OpenCode agent session
create_sessionSet up a persistent delegation session in a workspace before running tasks, keeping the agent's context available across follow-up messages.
Instructions
Create a persistent delegation session in a workspace without running a task yet. Follow up with send_message to keep the agent's context between calls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Workspace directory for the session. | |
| agent | No | Agent to use (default: deepseek-researcher). See list_agents. | |
| model | No | Override the model, e.g. "deepseek/deepseek-v4-pro". | |
| title | No | Human-readable session title. |