@joshthomas/opencode-web-search
Advanced tools
+1
-1
| { | ||
| "name": "@joshthomas/opencode-web-search", | ||
| "version": "0.1.1", | ||
| "version": "0.1.2", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Web search plugin for OpenCode with Exa AI support", |
+65
-20
@@ -92,7 +92,16 @@ import type { Plugin } from "@opencode-ai/plugin"; | ||
| config.command["web-search"] = { | ||
| template: `Search the web for the following query. If the user input is empty, ask what they want to search for. | ||
| description: "Search the web for information", | ||
| template: `<user_input> | ||
| $ARGUMENTS | ||
| </user_input> | ||
| <user_input> | ||
| $ARGUMENTS | ||
| </user_input>`, | ||
| If the user input above is empty or contains only whitespace, respond with: | ||
| "A search query is required. Please try again with: | ||
| /web-search <your query> | ||
| Example: /web-search best practices for Django REST framework pagination" | ||
| Otherwise, search the web for the query. Provide a concise summary with source links.`, | ||
| agent: "web-search", | ||
@@ -102,7 +111,16 @@ }; | ||
| config.command["code-search"] = { | ||
| template: `Find code examples and implementations for the following query. If the user input is empty, ask what they want to search for. | ||
| description: "Find code examples and implementations", | ||
| template: `<user_input> | ||
| $ARGUMENTS | ||
| </user_input> | ||
| <user_input> | ||
| $ARGUMENTS | ||
| </user_input>`, | ||
| If the user input above is empty or contains only whitespace, respond with: | ||
| "A search query is required. Please try again with: | ||
| /code-search <what to find> | ||
| Example: /code-search React useEffect cleanup function examples" | ||
| Otherwise, find code examples and implementations. Show actual code snippets with source links.`, | ||
| agent: "code-search", | ||
@@ -112,7 +130,16 @@ }; | ||
| config.command["deep-research"] = { | ||
| template: `Use the deep researcher tools (deep_researcher_start, then deep_researcher_check) to thoroughly research the following query. If the user input is empty, ask what they want to research. | ||
| description: "Comprehensive research across multiple sources", | ||
| template: `<user_input> | ||
| $ARGUMENTS | ||
| </user_input> | ||
| <user_input> | ||
| $ARGUMENTS | ||
| </user_input>`, | ||
| If the user input above is empty or contains only whitespace, respond with: | ||
| "A research query is required. Please try again with: | ||
| /deep-research <your question> | ||
| Example: /deep-research comparison of PostgreSQL vs MongoDB for time-series data" | ||
| Otherwise, use the deep researcher tools (deep_researcher_start, then deep_researcher_check) to thoroughly research the query. Synthesize findings from multiple sources.`, | ||
| agent: "web-search", | ||
@@ -190,7 +217,16 @@ }; | ||
| config.command["web-search"] = { | ||
| template: `Search the web for the following query. If the user input is empty, ask what they want to search for. | ||
| description: "Search the web for information", | ||
| template: `<user_input> | ||
| $ARGUMENTS | ||
| </user_input> | ||
| <user_input> | ||
| $ARGUMENTS | ||
| </user_input>`, | ||
| If the user input above is empty or contains only whitespace, respond with: | ||
| "A search query is required. Please try again with: | ||
| /web-search <your query> | ||
| Example: /web-search Next.js server components best practices" | ||
| Otherwise, search the web for the query. Provide a concise summary with source links.`, | ||
| agent: "web-search", | ||
@@ -200,7 +236,16 @@ }; | ||
| config.command["code-search"] = { | ||
| template: `Find code examples and implementations for the following query. If the user input is empty, ask what they want to search for. | ||
| description: "Find code examples and implementations", | ||
| template: `<user_input> | ||
| $ARGUMENTS | ||
| </user_input> | ||
| <user_input> | ||
| $ARGUMENTS | ||
| </user_input>`, | ||
| If the user input above is empty or contains only whitespace, respond with: | ||
| "A search query is required. Please try again with: | ||
| /code-search <what to find> | ||
| Example: /code-search Python asyncio gather vs wait usage" | ||
| Otherwise, find code examples and implementations. Show actual code snippets with source links.`, | ||
| agent: "code-search", | ||
@@ -207,0 +252,0 @@ }; |
11135
13.81%190
15.15%