| 1 | {"type": "transcript_start", "provider": "opencode", "protocol": "opencode2-http.sse", "version": "2.0.18", "scenario": "opencode2_command", "metadata": {"source": "oc2-8 live recording command_t3.ndjson (2.0.18, openrouter/deepseek/deepseek-v4-flash)", "capturedAt": "2026-09-29", "description": "A real OpenCode 2.0.18 session recorded at the HTTP and SSE boundary: `/hello WORLD` names a workspace command (.opencode/command/hello.md), so T3 reads the directory's commands and runs it with session.command; OpenCode expands the template into the user message. T3's per-turn instructions entry (answered 204, as 2.0.18 does) is written before the thread's first turn. Before the command, T3 reads the session's newest history item (none on a new session, as 2.0.18 answers) so a reconnect can backfill a command, whose answer carries no item id."}} |
| 2 | {"type": "expect_outbound", "label": "event.subscribe", "frame": {"type": "event.subscribe"}} |
| 3 | {"type": "expect_outbound", "label": "model.list", "frame": {"type": "model.list", "input": {"location[directory]": "<any>"}}} |
| 4 | {"type": "emit_inbound", "label": "model.list.response", "frame": {"type": "sdk.response", "operation": "model.list", "data": {"location": {"directory": "<work>"}, "data": [{"id": "deepseek/deepseek-v4-flash", "modelID": "deepseek/deepseek-v4-flash", "providerID": "openrouter", "family": "deepseek-flash", "name": "DeepSeek V4 Flash", "compatibility": {"reasoningField": "reasoning_content"}, "package": "@opencode/ai/providers/openrouter", "settings": {"baseURL": "https://openrouter.ai/api/v1"}, "headers": {"HTTP-Referer": "https://opencode.ai/", "X-Title": "opencode"}, "capabilities": {"tools": true, "input": ["text"], "output": ["text"]}, "variants": [{"id": "none", "settings": {"reasoning": {"enabled": false}}}, {"id": "high", "settings": {"reasoning": {"effort": "high"}}}, {"id": "xhigh", "settings": {"reasoning": {"effort": "xhigh"}}}], "time": {"released": 1776988800000}, "cost": [{"input": 0.14, "output": 0.28, "cache": {"read": 0.028, "write": 0}}], "status": "active", "enabled": true, "limit": {"context": 1048576, "output": 131072}}]}}} |
| 5 | {"type": "emit_inbound", "label": "server.connected", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83284001dfaN03YCqzlu9F", "type": "server.connected", "data": {}}}} |
| 6 | {"type": "expect_outbound", "label": "session.create", "frame": {"type": "session.create", "input": "<any>"}} |
| 7 | {"type": "emit_inbound", "label": "session.create.response", "frame": {"type": "sdk.response", "operation": "session.create", "data": {"data": {"id": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "projectID": "global", "model": {"id": "deepseek/deepseek-v4-flash", "providerID": "openrouter", "variant": "default"}, "cost": 0, "tokens": {"input": 0, "output": 0, "reasoning": 0, "cache": {"read": 0, "write": 0}}, "time": {"created": 1790747096015, "updated": 1790747096015}, "title": "oc2-8 command_t3", "permissions": [{"action": "*", "resource": "*", "effect": "allow"}], "location": {"directory": "<work>"}}}}} |
| 8 | {"type": "emit_inbound", "label": "session.created", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d833cf001vCmbwtG6y6Wg1U", "created": 1790747096015, "type": "session.created", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "slug": "shiny-squid", "version": "2.0.18", "projectID": "global", "location": {"directory": "<work>"}, "subpath": "", "title": "oc2-8 command_t3", "permissions": [{"action": "*", "resource": "*", "effect": "allow"}], "model": {"id": "deepseek/deepseek-v4-flash", "providerID": "openrouter"}}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 0, "version": 1}}}} |
| 9 | {"type": "expect_outbound", "label": "session.instructions.entry.put", "frame": {"type": "session.instructions.entry.put", "input": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "key": "t3-code", "value": "<any>"}}} |
| 10 | {"type": "emit_inbound", "label": "session.instructions.entry.put.response", "frame": {"type": "sdk.response", "operation": "session.instructions.entry.put", "data": null}} |
| 11 | {"type": "expect_outbound", "label": "command.list", "frame": {"type": "command.list", "input": {"location[directory]": "<any>"}}} |
| 12 | {"type": "emit_inbound", "label": "command.list.response", "frame": {"type": "sdk.response", "operation": "command.list", "data": {"location": {"directory": "<work>"}, "data": [{"name": "init", "description": "guided AGENTS.md setup"}, {"name": "review", "description": "review changes [commit|branch|pr], defaults to uncommitted"}, {"name": "hello", "description": "Say hello to the workspace"}, {"name": "hello2", "description": "plural dir command"}]}}} |
| 13 | {"type": "emit_inbound", "label": "project.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d833e100154h183ZQ8TFIz9", "created": 1790747096033, "type": "project.updated", "data": {"id": "global", "canonical": "<work>", "vcs": "git", "time": {"created": 1790744321645, "updated": 1790744321645, "active": 1790747096032}, "sandboxes": []}}}} |
| 14 | {"type": "expect_outbound", "label": "message.list", "frame": {"type": "message.list", "input": "<any>"}} |
| 15 | {"type": "emit_inbound", "label": "message.list.response", "frame": {"type": "sdk.response", "operation": "message.list", "data": {"data": [], "cursor": {"previous": null, "next": null}}}} |
| 16 | {"type": "expect_outbound", "label": "session.command", "frame": {"type": "session.command", "input": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "name": "hello", "text": "WORLD"}}} |
| 17 | {"type": "emit_inbound", "label": "session.command.response", "frame": {"type": "sdk.response", "operation": "session.command", "data": null}} |
| 18 | {"type": "emit_inbound", "label": "session.inbox.enqueued", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d833f7001CR8gqnGibZ5mIH", "created": 1790747096055, "type": "session.inbox.enqueued", "location": {"directory": "<work>"}, "data": {"inboxID": "msg_0f0d833f4001DhEyXmiqfz0kcF", "sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "item": {"type": "user", "payload": {"text": "Reply with exactly: HELLO WORLD"}, "delivery": "steer"}}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 1, "version": 1}}}} |
| 19 | {"type": "emit_inbound", "label": "session.execution.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d834000013DTH87ptN5evlM", "created": 1790747096064, "type": "session.execution.started", "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC"}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 2, "version": 1}}}} |
| 20 | {"type": "emit_inbound", "label": "session.instructions.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d8341c001S6iTOkDN2My4re", "created": 1790747096092, "metadata": {"instructions": {"initial": true}}, "type": "session.instructions.updated", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "delta": {"core/environment": "01f209da7564499aba1aa03a38a42dc4ed37f8e23457c5e19a54eba288092d1f", "core/date": "13b802fdef38a72e2e5d4cf7c6f9d270d07fb1787c3e4ff3ee1a8048fdbc46fa", "core/codemode": "616a7ad8b8e40e8a71eab238dfbbe9eaf0f4a9e6fdad853226d075bfe602e1e6", "core/skill-guidance": "b2aff856e4c0afa54b6d56ecdc438d66a6333b36a3b62677bb1a96da62079118"}}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 3, "version": 2}}}} |
| 21 | {"type": "emit_inbound", "label": "session.inbox.delivered", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83424001lpKlpS3FrbehRh", "created": 1790747096100, "type": "session.inbox.delivered", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "inboxID": "msg_0f0d833f4001DhEyXmiqfz0kcF"}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 4, "version": 1}}}} |
| 22 | {"type": "emit_inbound", "label": "session.step.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83b96001FPnNzwZ6AV16k8", "created": 1790747098007, "type": "session.step.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "agent": "build", "model": {"id": "deepseek/deepseek-v4-flash", "providerID": "openrouter", "variant": "default"}, "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "snapshot": "5ecf8511987b833d27b391b832f802775c5ca199", "started": 1790747096184}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 5, "version": 1}}}} |
| 23 | {"type": "emit_inbound", "label": "session.reasoning.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83b9e001UAO1OI95dfcaaz", "created": 1790747098014, "type": "session.reasoning.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "state": {"reasoningField": "reasoning_content"}}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 6, "version": 1}}}} |
| 24 | {"type": "emit_inbound", "label": "session.reasoning.delta", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c09001XfcBot8eB8zZFK", "created": 1790747098121, "type": "session.reasoning.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "delta": "The user wants me to reply with exactly \"HE"}}}} |
| 25 | {"type": "emit_inbound", "label": "session.reasoning.delta.2", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c6e001MNUwA0XRpI080b", "created": 1790747098222, "type": "session.reasoning.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "delta": "LLO WORLD\"."}}}} |
| 26 | {"type": "emit_inbound", "label": "session.text.started", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c730012DgvZk2fr1DfnJ", "created": 1790747098227, "type": "session.text.started", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 7, "version": 1}}}} |
| 27 | {"type": "emit_inbound", "label": "session.reasoning.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c7e001YQNpM7Y1wngo5F", "created": 1790747098238, "type": "session.reasoning.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "text": "The user wants me to reply with exactly \"HELLO WORLD\".", "state": {"reasoningField": "reasoning_content", "reasoningDetails": [{"type": "reasoning.text", "text": "The user wants me to reply with exactly \"HELLO WORLD\".", "format": "unknown", "index": 0}]}}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 8, "version": 1}}}} |
| 28 | {"type": "emit_inbound", "label": "session.text.delta", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c87001yf9JFvPsdJjlay", "created": 1790747098247, "type": "session.text.delta", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "delta": "HELLO WORLD"}}}} |
| 29 | {"type": "emit_inbound", "label": "session.text.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c8b001TqVb5lHbF5gOdc", "created": 1790747098251, "type": "session.text.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "ordinal": 0, "text": "HELLO WORLD"}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 9, "version": 1}}}} |
| 30 | {"type": "emit_inbound", "label": "session.step.streamed", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83c93001wMqGtozL9NskWl", "created": 1790747098259, "type": "session.step.streamed", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I"}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 10, "version": 1}}}} |
| 31 | {"type": "emit_inbound", "label": "session.step.ended", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83caa0019E9jLvh4HSJlas", "created": 1790747098282, "type": "session.step.ended", "location": {"directory": "<work>"}, "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "assistantMessageID": "msg_0f0d83436001gPzL6SiRXo8F4I", "finish": "stop", "rawFinish": "stop", "cost": 0.00132454, "tokens": {"input": 9421, "output": 6, "reasoning": 14, "cache": {"read": 0, "write": 0}}, "snapshot": "5ecf8511987b833d27b391b832f802775c5ca199", "files": []}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 11, "version": 1}}}} |
| 32 | {"type": "emit_inbound", "label": "session.usage.updated", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83cb3001e6crfGqfQQcG2f", "created": 1790747098291, "type": "session.usage.updated", "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "cost": 0.00132454, "tokens": {"input": 9421, "output": 6, "reasoning": 14, "cache": {"read": 0, "write": 0}}}}}} |
| 33 | {"type": "emit_inbound", "label": "session.execution.succeeded", "frame": {"type": "sdk.event", "event": {"id": "evt_0f0d83cb6001LaODbeTVaiuSZN", "created": 1790747098294, "type": "session.execution.succeeded", "data": {"sessionID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC"}, "durable": {"aggregateID": "ses_f0f27cc49ffe6wl0jdiu4kO4FC", "seq": 12, "version": 1}}}} |
| 34 | {"type": "runtime_exit", "status": "success"} |