{
    "name": "zed_claude_session",
    "source": "zed",
    "messages": [
        {
            "direction": "client_to_agent",
            "payload": {
                "jsonrpc": "2.0",
                "id": 0,
                "method": "initialize",
                "params": {
                    "protocolVersion": 1,
                    "clientCapabilities": {
                        "fs": {
                            "readTextFile": true,
                            "writeTextFile": true
                        },
                        "terminal": true,
                        "_meta": {
                            "terminal_output": true,
                            "terminal-auth": true
                        }
                    },
                    "clientInfo": {
                        "name": "zed",
                        "title": "Zed",
                        "version": "0.225.12"
                    }
                }
            }
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "id": 0,
                "method": "initialize",
                "params": {
                    "protocolVersion": 1,
                    "agentCapabilities": {
                        "promptCapabilities": {
                            "image": true,
                            "embeddedContext": true
                        },
                        "mcpCapabilities": {
                            "http": true,
                            "sse": true
                        },
                        "loadSession": true,
                        "sessionCapabilities": {
                            "fork": {},
                            "list": {},
                            "resume": {}
                        }
                    },
                    "agentInfo": {
                        "name": "@zed-industries/claude-agent-acp",
                        "title": "Claude Agent",
                        "version": "0.19.2"
                    },
                    "authMethods": [
                        {
                            "description": "Run `claude /login` in the terminal",
                            "name": "Log in with Claude",
                            "id": "claude-login"
                        }
                    ]
                }
            },
            "delay_ms": 120
        },
        {
            "direction": "client_to_agent",
            "payload": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "session/load",
                "params": {
                    "mcpServers": [],
                    "cwd": "/dev/projects/dirigent",
                    "sessionId": "cb878ad6-d72b-43c9-93e0-8228f309a786"
                }
            },
            "delay_ms": 50
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "method": "session/update",
                "params": {
                    "sessionId": "cb878ad6-d72b-43c9-93e0-8228f309a786",
                    "update": {
                        "sessionUpdate": "user_message_chunk",
                        "content": {
                            "type": "text",
                            "text": "hi"
                        }
                    }
                }
            },
            "delay_ms": 200
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "method": "session/update",
                "params": {
                    "sessionId": "cb878ad6-d72b-43c9-93e0-8228f309a786",
                    "update": {
                        "sessionUpdate": "agent_message_chunk",
                        "content": {
                            "type": "text",
                            "text": "Hi! I'm here to help you with the Dirigent project. What would you like to work on today?"
                        }
                    }
                }
            },
            "delay_ms": 800
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "id": 1,
                "method": "session/load",
                "params": {
                    "modes": {
                        "currentModeId": "default",
                        "availableModes": [
                            {
                                "id": "default",
                                "name": "Default",
                                "description": "Standard behavior, prompts for dangerous operations"
                            },
                            {
                                "id": "plan",
                                "name": "Plan Mode",
                                "description": "Planning mode, no actual tool execution"
                            }
                        ]
                    },
                    "models": {
                        "availableModels": [
                            {
                                "modelId": "default",
                                "name": "Default (recommended)",
                                "description": "Opus 4.6"
                            },
                            {
                                "modelId": "sonnet",
                                "name": "Sonnet",
                                "description": "Sonnet 4.6"
                            }
                        ],
                        "currentModelId": "default"
                    }
                }
            },
            "delay_ms": 300
        },
        {
            "direction": "client_to_agent",
            "payload": {
                "jsonrpc": "2.0",
                "id": 2,
                "method": "session/list",
                "params": {}
            },
            "delay_ms": 100
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "method": "session/update",
                "params": {
                    "sessionId": "cb878ad6-d72b-43c9-93e0-8228f309a786",
                    "update": {
                        "sessionUpdate": "available_commands_update",
                        "availableCommands": [
                            {
                                "name": "compact",
                                "description": "Clear conversation history but keep a summary in context.",
                                "input": {
                                    "hint": "<optional custom summarization instructions>"
                                }
                            },
                            {
                                "name": "context",
                                "description": "Show current context usage",
                                "input": null
                            }
                        ]
                    }
                }
            },
            "delay_ms": 150
        },
        {
            "direction": "agent_to_client",
            "payload": {
                "jsonrpc": "2.0",
                "id": 2,
                "method": "session/list",
                "params": {
                    "sessions": [
                        {
                            "sessionId": "cb878ad6-d72b-43c9-93e0-8228f309a786",
                            "cwd": "/dev/projects/dirigent",
                            "title": "hi",
                            "updatedAt": "2026-03-03T14:03:24.740Z"
                        },
                        {
                            "sessionId": "838b10b2-2f58-4dad-8652-9df81c880a96",
                            "cwd": "/dev/projects/dirigent",
                            "title": "Session list investigation",
                            "updatedAt": "2026-03-03T13:56:15.751Z"
                        }
                    ]
                }
            },
            "delay_ms": 250
        }
    ]
}
