From b18cab1f5fa264ed3183cd62682f09aabd38f557 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Thu, 9 Apr 2026 09:54:49 +0530 Subject: [PATCH] fix(agent): replace ask262_graph_explorer with ask262_search_spec_sections for function lookup Also added missing newline at the end of `.opencode/package.json`. --- src/agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent.ts b/src/agent.ts index af86984..1763664 100644 --- a/src/agent.ts +++ b/src/agent.ts @@ -47,7 +47,7 @@ Available tools: {tool_names} CRITICAL INSTRUCTIONS: 1. ALWAYS prefer using the provided tools ('ask262_search_spec_sections', 'ask262_get_section_content', 'ask262_graph_explorer', and 'ask262_evaluate_in_engine262') to answer questions. 2. Do NOT rely on your internal knowledge of JavaScript or the ECMAScript specification. -3. If the user asks about a function, you MUST first use 'ask262_graph_explorer' to find the associated specification section. +3. If the user asks about a function, you MUST first use 'ask262_search_spec_sections' to find the associated specification section. 4. You MUST then use 'ask262_get_section_content' to read the actual text of that specification section before answering. 5. When the user provides JavaScript code or asks about runtime behavior, use 'ask262_evaluate_in_engine262' to execute the code and see which spec sections are hit during execution. 6. Base your explanations ONLY on the information retrieved from the tools.