opencode-hive 1.3.5 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,83 @@
1
+ # Available Research Tools
2
+
3
+ Reference for Forager and Scout Bees on available MCP tools.
4
+
5
+ ## Code Search
6
+
7
+ | Tool | Purpose | When to Use |
8
+ |------|---------|-------------|
9
+ | `grep_app_searchGitHub` | GitHub code search | Find real-world examples, patterns in OSS |
10
+ | `ast_grep_search` | AST pattern matching | Find code structures, refactoring targets |
11
+ | `ast_grep_replace` | AST refactoring | Safe code transformations (use dryRun=true first) |
12
+
13
+ ### grep_app Examples
14
+ ```
15
+ grep_app_searchGitHub({ query: "useEffect cleanup", language: ["TypeScript"] })
16
+ grep_app_searchGitHub({ query: "(?s)try {.*await", useRegexp: true })
17
+ ```
18
+
19
+ ### ast_grep Examples
20
+ ```
21
+ ast_grep_search({ pattern: "console.log($MSG)", lang: "typescript" })
22
+ ast_grep_replace({ pattern: "console.log($MSG)", rewrite: "logger.info($MSG)", lang: "typescript", dryRun: true })
23
+ ```
24
+
25
+ ## Documentation
26
+
27
+ | Tool | Purpose | When to Use |
28
+ |------|---------|-------------|
29
+ | `context7_resolve-library-id` | Find library ID | Before querying docs |
30
+ | `context7_query-docs` | Query library docs | API usage, best practices |
31
+
32
+ ### context7 Flow
33
+ 1. `context7_resolve-library-id({ query: "how to use X", libraryName: "react" })`
34
+ 2. Get libraryId from result (e.g., `/facebook/react`)
35
+ 3. `context7_query-docs({ libraryId: "/facebook/react", query: "useEffect cleanup" })`
36
+
37
+ ## Web Search
38
+
39
+ | Tool | Purpose | When to Use |
40
+ |------|---------|-------------|
41
+ | `websearch_web_search_exa` | Exa AI search | Current info, recent developments |
42
+
43
+ ### websearch Examples
44
+ ```
45
+ websearch_web_search_exa({ query: "Next.js 15 new features 2026", numResults: 5 })
46
+ ```
47
+
48
+ ## Delegation
49
+
50
+ | Tool | Purpose | When to Use |
51
+ |------|---------|-------------|
52
+ | `hive_background_task` | Spawn async subagent | Parallel exploration via Scout fan-out |
53
+
54
+ ### Parallel Exploration (Preferred)
55
+
56
+ In task mode, use task() for research fan-out; in hive mode, use hive_background_task.
57
+
58
+ For exploratory research, load `hive_skill("parallel-exploration")` for the full playbook.
59
+
60
+ Quick pattern:
61
+ ```
62
+ hive_background_task({
63
+ agent: "scout-researcher",
64
+ prompt: "Find all API routes in src/ and summarize patterns",
65
+ description: "Explore API patterns",
66
+ sync: false
67
+ })
68
+ ```
69
+
70
+ Use `hive_background_output({ task_id })` to retrieve results when notified.
71
+
72
+ ---
73
+
74
+ ## Tool Selection Guide
75
+
76
+ | Need | Best Tool |
77
+ |------|-----------|
78
+ | Find code in THIS repo | `grep`, `glob`, `ast_grep_search` |
79
+ | Find code in OTHER repos | `grep_app_searchGitHub` |
80
+ | Understand a library | `context7_query-docs` |
81
+ | Current events/info | `websearch_web_search_exa` |
82
+ | Structural refactoring | `ast_grep_replace` |
83
+ | Multi-domain exploration | `hive_skill("parallel-exploration")` + `hive_background_task` |
@@ -0,0 +1,27 @@
1
+ {
2
+ "mcpServers": {
3
+ "grep_app": {
4
+ "command": "npx",
5
+ "args": ["-y", "grep-mcp"],
6
+ "description": "GitHub code search via grep.app"
7
+ },
8
+ "ast_grep": {
9
+ "command": "npx",
10
+ "args": ["-y", "@notprolands/ast-grep-mcp"],
11
+ "description": "AST-aware code search and refactoring"
12
+ },
13
+ "context7": {
14
+ "command": "npx",
15
+ "args": ["-y", "@upstash/context7-mcp"],
16
+ "description": "Library documentation lookup"
17
+ },
18
+ "websearch_exa": {
19
+ "command": "npx",
20
+ "args": ["-y", "exa-mcp-server"],
21
+ "env": {
22
+ "EXA_API_KEY": "${EXA_API_KEY}"
23
+ },
24
+ "description": "Exa AI web search (requires API key)"
25
+ }
26
+ }
27
+ }