prompt.ts · part 1
Full reference55 text occurrences from packages/opencode/src/session/prompt.ts, part 1. Every entry preserves the shipped literal and its saved verdict or selection reason.
File contents and all parts · All files
Shipped text
Use this tool to return your final response in the requested structured format.
Source: packages/opencode/src/session/prompt.ts, characters 3138–3519, SHA-256 89e752e4baf6edcb.
Jev judged model-facing (confidence 0.94; role tool). This is a classifier judgment, not proof of delivery.
Readable text: Use this tool to return your final response in the requested structured format. IMPORTANT: - You MUST call this tool exactly once at the end of your response - The input must be valid JSON matching the required schema - Complete all necess…
Use this tool to return your final response in the requested structured format.
IMPORTANT:
- You MUST call this tool exactly once at the end of your response
- The input must be valid JSON matching the required schema
- Complete all necessary research and tool calls BEFORE calling this tool
- This tool provides your final answer - no further actions are taken after calling it
IMPORTANT: The user has requested structured output. You MUST use the Structured
Source: packages/opencode/src/session/prompt.ts, characters 3561–3811, SHA-256 84685d64878f3439.
Jev judged model-facing (confidence 0.97; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: IMPORTANT: The user has requested structured output. You MUST use the StructuredOutput tool to provide your final response. Do NOT respond with plain text - you MUST call the StructuredOutput tool with your answer formatted according to the…
IMPORTANT: The user has requested structured output. You MUST use the StructuredOutput tool to provide your final response. Do NOT respond with plain text - you MUST call the StructuredOutput tool with your answer formatted according to the schema.
${value} B
Source: packages/opencode/src/session/prompt.ts, characters 4129–4141, SHA-256 a188b5c229442d4d.
Jev judged not model-facing (confidence 0.18; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${value} B
${value} B
${Math.ceil(value / 1024)} KB
Source: packages/opencode/src/session/prompt.ts, characters 4176–4207, SHA-256 a2298ea1125bbe6e.
Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${Math.ceil(value / 1024)} KB
${Math.ceil(value / 1024)} KB
${Math.ceil(value / (1024 1024))} MB
Source: packages/opencode/src/session/prompt.ts, characters 4217–4257, SHA-256 0f98a860670dc9a7.
Jev judged not model-facing (confidence 0.03; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: ${Math.ceil(value / (1024 * 1024))} MB
${Math.ceil(value / (1024 * 1024))} MB
Generate a title for this conversation:
Source: packages/opencode/src/session/prompt.ts, characters 10153–10196, SHA-256 8c1d669ef01c057d.
Jev judged model-facing (confidence 0.84; role user_template). This is a classifier judgment, not proof of delivery.
Readable text: Generate a title for this conversation:
Generate a title for this conversation:
failed to generate title
Source: packages/opencode/src/session/prompt.ts, characters 10811–10837, SHA-256 17be81bf6f8f001d.
Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: failed to generate title
failed to generate title
Available agents: ${available.join(", ")}
Source: packages/opencode/src/session/prompt.ts, characters 13137–13181, SHA-256 b6065d07ba76bfa0.
Jev judged not model-facing (confidence 0.22; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available agents: ${available.join(", ")}
Available agents: ${available.join(", ")}
Agent not found: "${task.agent}".${hint}
Source: packages/opencode/src/session/prompt.ts, characters 13243–13285, SHA-256 166e15d91b09cd13.
Jev judged not model-facing (confidence 0.05; role human). This is a classifier judgment, not proof of delivery.
Readable text: Agent not found: "${task.agent}".${hint}
Agent not found: "${task.agent}".${hint}
subtask execution failed
Source: packages/opencode/src/session/prompt.ts, characters 14629–14655, SHA-256 5c15924ecf9e2fee.
Jev judged not model-facing (confidence 0.07; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: subtask execution failed
subtask execution failed
Tool execution failed: ${error.message}
Source: packages/opencode/src/session/prompt.ts, characters 16703–16744, SHA-256 f1a65c980ce12bd9.
Jev judged not model-facing (confidence 0.1; role human). This is a classifier judgment, not proof of delivery.
Readable text: Tool execution failed: ${error.message}
Tool execution failed: ${error.message}
Tool execution failed
Source: packages/opencode/src/session/prompt.ts, characters 16747–16770, SHA-256 88653a37cf83516d.
Jev judged not model-facing (confidence 0.05; role human). This is a classifier judgment, not proof of delivery.
Readable text: Tool execution failed
Tool execution failed
Summarize the task tool output above and continue with your task.
Source: packages/opencode/src/session/prompt.ts, characters 17594–17661, SHA-256 cdf5f73d72687f11.
Jev judged model-facing (confidence 0.83; role instructions). This is a classifier judgment, not proof of delivery.
Readable text: Summarize the task tool output above and continue with your task.
Summarize the task tool output above and continue with your task.
Available agents: ${available.join(", ")} · character 18549
Source: packages/opencode/src/session/prompt.ts, characters 18549–18593, SHA-256 b6065d07ba76bfa0.
Jev judged not model-facing (confidence 0.13; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available agents: ${available.join(", ")}
Available agents: ${available.join(", ")}
Agent not found: "${input.agent}".${hint}
Source: packages/opencode/src/session/prompt.ts, characters 18661–18704, SHA-256 75d0af8ed002e650.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: Agent not found: "${input.agent}".${hint}
Agent not found: "${input.agent}".${hint}
The following tool was executed by the user
Source: packages/opencode/src/session/prompt.ts, characters 19568–19613, SHA-256 0a768b606a0d4e00.
Jev judged not model-facing (confidence 0.71; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: The following tool was executed by the user
The following tool was executed by the user
User aborted the command
Source: packages/opencode/src/session/prompt.ts, characters 21333–21359, SHA-256 ca7be9efbc3c2671.
Jev judged not model-facing (confidence 0.11; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: User aborted the command
User aborted the command
Did you mean: ${err.suggestions.join(", ")}?
Source: packages/opencode/src/session/prompt.ts, characters 23971–24018, SHA-256 94bac9e6a9eebbf3.
Jev judged not model-facing (confidence 0.07; role human). This is a classifier judgment, not proof of delivery.
Readable text: Did you mean: ${err.suggestions.join(", ")}?
Did you mean: ${err.suggestions.join(", ")}?
Model not found: ${err.providerID}/${err.modelID}.${hint}
Source: packages/opencode/src/session/prompt.ts, characters 24161–24220, SHA-256 c714d94550e43581.
Jev judged not model-facing (confidence 0.04; role human). This is a classifier judgment, not proof of delivery.
Readable text: Model not found: ${err.providerID}/${err.modelID}.${hint}
Model not found: ${err.providerID}/${err.modelID}.${hint}
Available agents: ${available.join(", ")} · character 25585
Source: packages/opencode/src/session/prompt.ts, characters 25585–25629, SHA-256 b6065d07ba76bfa0.
Jev judged not model-facing (confidence 0.26; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available agents: ${available.join(", ")}
Available agents: ${available.join(", ")}
Agent not found: "${agentName}".${hint}
Source: packages/opencode/src/session/prompt.ts, characters 25691–25732, SHA-256 cb6dfc4122e0ba42.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: Agent not found: "${agentName}".${hint}
Agent not found: "${agentName}".${hint}
mcp resource
Source: packages/opencode/src/session/prompt.ts, characters 28260–28274, SHA-256 25cf4c164d19a36a.
Jev judged not model-facing (confidence 0.16; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: mcp resource
mcp resource
Reading MCP resource: ${part.filename} (${uri})
Source: packages/opencode/src/session/prompt.ts, characters 28549–28598, SHA-256 14952e3f3eb755de.
Jev judged not model-facing (confidence 0.1; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Reading MCP resource: ${part.filename} (${uri})
Reading MCP resource: ${part.filename} (${uri})
Resource not found: ${clientName}/${uri}
Source: packages/opencode/src/session/prompt.ts, characters 28840–28882, SHA-256 d5e841520c6bbd50.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Resource not found: ${clientName}/${uri}
Resource not found: ${clientName}/${uri}
Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBy
Source: packages/opencode/src/session/prompt.ts, characters 30055–30184, SHA-256 7c4345e6899694e1.
Jev judged not model-facing (confidence 0.11; role human). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBytes(size)}) is not a supported attachment type]
[Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBytes(size)}) is not a supported attachment type]
Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBy · character 30547
Source: packages/opencode/src/session/prompt.ts, characters 30547–30704, SHA-256 65244fe3e00d4e76.
Jev judged not model-facing (confidence 0.23; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBytes(size)}) exceeds ${formatMcpResourceBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
[Binary MCP resource omitted: ${filename ?? uri} (${mime}, ${formatMcpResourceBytes(size)}) exceeds ${formatMcpResourceBytes(MAX_MCP_RESOURCE_BLOB_BYTES)}]
Binary MCP resource attached: ${filename ?? uri} (${mime})
Source: packages/opencode/src/session/prompt.ts, characters 30995–31057, SHA-256 4dfbb09aea520c05.
Jev judged not model-facing (confidence 0.39; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: [Binary MCP resource attached: ${filename ?? uri} (${mime})]
[Binary MCP resource attached: ${filename ?? uri} (${mime})]
failed to read MCP resource
Source: packages/opencode/src/session/prompt.ts, characters 31514–31543, SHA-256 2bf120082924660c.
Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: failed to read MCP resource
failed to read MCP resource
Failed to read MCP resource ${part.filename}: ${message}
Source: packages/opencode/src/session/prompt.ts, characters 31851–31909, SHA-256 ad9f94cf103e7622.
Jev judged not model-facing (confidence 0.07; role human). This is a classifier judgment, not proof of delivery.
Readable text: Failed to read MCP resource ${part.filename}: ${message}
Failed to read MCP resource ${part.filename}: ${message}
Called the Read tool with the following input: ${JSON.stringify({ filePath: part
Source: packages/opencode/src/session/prompt.ts, characters 32358–32453, SHA-256 a551b1cad4a940a6.
Jev judged not model-facing (confidence 0.47; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Called the Read tool with the following input: ${JSON.stringify({ filePath: part.filename })}
Called the Read tool with the following input: ${JSON.stringify({ filePath: part.filename })}
Called the Read tool with the following input: ${JSON.stringify(args)}
Source: packages/opencode/src/session/prompt.ts, characters 35468–35540, SHA-256 8180de61bb9c3859.
Jev judged not model-facing (confidence 0.39; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Called the Read tool with the following input: ${JSON.stringify(args)}
Called the Read tool with the following input: ${JSON.stringify(args)}
failed to read file
Source: packages/opencode/src/session/prompt.ts, characters 36840–36861, SHA-256 d5a0a0e2634f0b35.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: failed to read file
failed to read file
Read tool failed to read ${filepath} with the following error: ${message}
Source: packages/opencode/src/session/prompt.ts, characters 37397–37472, SHA-256 3a074f08cbd7fb02.
Jev judged not model-facing (confidence 0.2; role human). This is a classifier judgment, not proof of delivery.
Readable text: Read tool failed to read ${filepath} with the following error: ${message}
Read tool failed to read ${filepath} with the following error: ${message}
failed to read directory
Source: packages/opencode/src/session/prompt.ts, characters 37879–37905, SHA-256 ac1319166adf260b.
Jev judged not model-facing (confidence 0.04; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: failed to read directory
failed to read directory
Read tool failed to read ${filepath} with the following error: ${message} · character 38468
Source: packages/opencode/src/session/prompt.ts, characters 38468–38543, SHA-256 3a074f08cbd7fb02.
Jev judged not model-facing (confidence 0.12; role human). This is a classifier judgment, not proof of delivery.
Readable text: Read tool failed to read ${filepath} with the following error: ${message}
Read tool failed to read ${filepath} with the following error: ${message}
Called the Read tool with the following input: ${JSON.stringify(args)} · character 38836
Source: packages/opencode/src/session/prompt.ts, characters 38836–38908, SHA-256 8180de61bb9c3859.
Jev judged not model-facing (confidence 0.38; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Called the Read tool with the following input: ${JSON.stringify(args)}
Called the Read tool with the following input: ${JSON.stringify(args)}
Called the Read tool with the following input: {"filePath":"${filepath}"}
Source: packages/opencode/src/session/prompt.ts, characters 39512–39587, SHA-256 c404c8f85f4963d0.
Jev judged not model-facing (confidence 0.47; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Called the Read tool with the following input: {"filePath":"${filepath}"}
Called the Read tool with the following input: {"filePath":"${filepath}"}
. Invoked by user; guaranteed to exist.
Source: packages/opencode/src/session/prompt.ts, characters 40297–40339, SHA-256 954141d34d2c4250.
Jev judged not model-facing (confidence 0.46; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: . Invoked by user; guaranteed to exist.
. Invoked by user; guaranteed to exist.
Use the above message and context to generate a prompt and call the task tool wi
Source: packages/opencode/src/session/prompt.ts, characters 40622–40718, SHA-256 a904daacc648ddcf.
Jev judged not model-facing (confidence 0.87; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Use the above message and context to generate a prompt and call the task tool with subagent:
Use the above message and context to generate a prompt and call the task tool with subagent:
invalid user message before save
Source: packages/opencode/src/session/prompt.ts, characters 41919–41953, SHA-256 3df1d5f9b3d53a3a.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: invalid user message before save
invalid user message before save
invalid user part before save
Source: packages/opencode/src/session/prompt.ts, characters 42359–42390, SHA-256 aaf2bfdf62efde03.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: invalid user part before save
invalid user part before save
No user message found in stream. This should never happen.
Source: packages/opencode/src/session/prompt.ts, characters 44885–44945, SHA-256 864fecbe6c99b301.
Jev judged not model-facing (confidence 0.05; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: No user message found in stream. This should never happen.
No user message found in stream. This should never happen.
loop exit with orphaned interrupted tool
Source: packages/opencode/src/session/prompt.ts, characters 46015–46057, SHA-256 8acc55a611f0458b.
Jev judged not model-facing (confidence 0.08; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: loop exit with orphaned interrupted tool
loop exit with orphaned interrupted tool
exiting loop
Source: packages/opencode/src/session/prompt.ts, characters 46286–46300, SHA-256 6a17deb2ef11ade6.
Jev judged not model-facing (confidence 0.06; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: exiting loop
exiting loop
Available agents: ${available.join(", ")} · character 47846
Source: packages/opencode/src/session/prompt.ts, characters 47846–47890, SHA-256 b6065d07ba76bfa0.
Jev judged not model-facing (confidence 0.19; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available agents: ${available.join(", ")}
Available agents: ${available.join(", ")}
Agent not found: "${lastUser.agent}".${hint}
Source: packages/opencode/src/session/prompt.ts, characters 47956–48002, SHA-256 e3a027621f650e0d.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: Agent not found: "${lastUser.agent}".${hint}
Agent not found: "${lastUser.agent}".${hint}
The response was blocked by the provider's content filter
Source: packages/opencode/src/session/prompt.ts, characters 53483–53542, SHA-256 e7b914e86bd5f5f3.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: The response was blocked by the provider's content filter
The response was blocked by the provider's content filter
Model did not produce structured output
Source: packages/opencode/src/session/prompt.ts, characters 53950–53991, SHA-256 050914939232c7c7.
Jev judged not model-facing (confidence 0.1; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Model did not produce structured output
Model did not produce structured output
Available commands: ${available.join(", ")}
Source: packages/opencode/src/session/prompt.ts, characters 56001–56047, SHA-256 d2d5566856ae211f.
Jev judged not model-facing (confidence 0.18; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available commands: ${available.join(", ")}
Available commands: ${available.join(", ")}
Command not found: "${input.command}".${hint}
Source: packages/opencode/src/session/prompt.ts, characters 56109–56156, SHA-256 a963a4dd8b2653ab.
Jev judged not model-facing (confidence 0.08; role human). This is a classifier judgment, not proof of delivery.
Readable text: Command not found: "${input.command}".${hint}
Command not found: "${input.command}".${hint}
Available agents: ${available.join(", ")} · character 58642
Source: packages/opencode/src/session/prompt.ts, characters 58642–58686, SHA-256 b6065d07ba76bfa0.
Jev judged not model-facing (confidence 0.15; role human). This is a classifier judgment, not proof of delivery.
Readable text: Available agents: ${available.join(", ")}
Available agents: ${available.join(", ")}
Agent not found: "${agentName}".${hint} · character 58748
Source: packages/opencode/src/session/prompt.ts, characters 58748–58789, SHA-256 cb6dfc4122e0ba42.
Jev judged not model-facing (confidence 0.06; role human). This is a classifier judgment, not proof of delivery.
Readable text: Agent not found: "${agentName}".${hint}
Agent not found: "${agentName}".${hint}
@deprecated tools and permissions have been merged, you can set permissions on t
Source: packages/opencode/src/session/prompt.ts, characters 61330–61433, SHA-256 0ee74d51d3485f2b.
Jev judged not model-facing (confidence 0.39; role parameter). This is a classifier judgment, not proof of delivery.
Readable text: @deprecated tools and permissions have been merged, you can set permissions on the session itself now
@deprecated tools and permissions have been merged, you can set permissions on the session itself now
Structured output captured successfully.
Source: packages/opencode/src/session/prompt.ts, characters 63768–63810, SHA-256 da145d560297d562.
Jev judged not model-facing (confidence 0.12; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Structured output captured successfully.
Structured output captured successfully.
Structured Output
Source: packages/opencode/src/session/prompt.ts, characters 63827–63846, SHA-256 693a526ea2e074a4.
Jev judged not model-facing (confidence 0.27; role code_data). This is a classifier judgment, not proof of delivery.
Readable text: Structured Output
Structured Output