{ "messages": [ { "role": "system", "content": "You are a helpful AI assistant with access to tools. Use tools when they help answer the user's question. Be concise and accurate." }, { "role": "user", "content": "What are the control plane tools for managing sessions?" }, { "role": "assistant", "content": "\nControl plane — session lifecycle management across the opencode mesh. Create, fork, abort, revert sessions on any host.\n\n\nThe control plane tools manage opencode sessions across the mesh. They operate on any configured host (fuji, sin, junkpile). 11 tools:\n\n**Session lifecycle:**\n- **control_create** — create a new session on a target host. Optionally set title or parent session.\n- **control_fork** — fork an existing session, optionally at a specific message. Creates a new session with conversation history up to that point.\n- **control_remove** — permanently delete a session and all its data. Irreversible.\n\n**Session control:**\n- **control_abort** — interrupt a running turn in another session. Use when a session is stuck.\n- **control_revert** — undo a specific message's effects in a session.\n- **control_unrevert** — restore all previously reverted messages.\n- **control_update** — change session properties (currently: title).\n\n**Session operations:**\n- **control_shell** — run a shell command through another session's agent, executed in its context.\n- **control_slash** — execute a slash command in another session (e.g. /compact, /rename).\n- **control_summarize** — compact a session to reduce context window usage. Requires specifying a model for summarization.\n\nThese tools enable cross-host session orchestration — create a session on sin, fork it, send it commands, read its output, abort if stuck. The `host` parameter targets the desired machine." } ] }