Create a persistent OpenCode agent session
create_sessionStart 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.
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: researcher). See list_agents. | |
| model | No | Override the model as "provider/model" (default: the agent or user default). | |
| title | No | Human-readable session title. | |
| allow_bash | No | Grant (true) or revoke (false) shell commands for this session. | |
| allow_edits | No | Grant (true) or revoke (false) file edits for this session. |