spawn_pi_session
Spawn a new pi coding agent session in a specified workspace directory for secure code execution with customizable risk-based auto-approval policy.
Instructions
Spawn a new pi coding agent session in the specified workspace directory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | The absolute directory path where the pi agent will execute. | |
| model | No | LLM model name override (e.g. ollama/qwen2.5-coder:7b or anthropic/claude-3-5-sonnet). | |
| sessionId | Yes | A unique identifier for the session. | |
| riskPolicy | No | Risk-based auto-approval policy. Controls which tool calls are auto-approved based on risk level. If not specified, defaults to auto-approve LOW risk and notify on MEDIUM risk. | |
| systemPrompt | No | Custom system instructions to append/override. |