v8.0.1 · Interface

client

Host-capability callbacks invoked by the agent on the client side: permission prompts, file system access, and terminal control. All methods are called by the agent and implemented by the client. Maps to the JSON-RPC methods listed under "Client" in the protocol overview: Per-turn `session-update`s flow on the streaming body of a [`agent.prompt-turn`]. Out-of-turn session events (slash-command advertisements, mode/model state changes from the agent, session info updates) still need a channel and arrive here via [`notify-session`].