opencode-raven 2.1.7 → 2.2.0
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.
- package/CHANGELOG.md +25 -0
- package/README.md +66 -42
- package/Raven.md +17 -35
- package/RavenMcp.md +42 -0
- package/index.ts +701 -268
- package/mcp-guidance.md +33 -31
- package/package.json +4 -2
package/mcp-guidance.md
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
|
-
## Raven
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Raven
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
`raven_seek(query="
|
|
28
|
-
|
|
29
|
-
`raven_seek(query="
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
## Raven search/MCP routing guidance
|
|
2
|
+
|
|
3
|
+
Raven performs search and information retrieval only. The calling agent must retain code review, auditing, correctness judgments, implementation, debugging decisions, planning, and final recommendations.
|
|
4
|
+
|
|
5
|
+
Non-Raven agents use `raven_seek` for narrowly scoped evidence retrieval when a routed local search, filesystem discovery, URL fetch, web/docs/GitHub search, globally configured MCP, or search-like shell command is blocked. Include the original tool intent and relevant arguments. Do not delegate an entire review or general task.
|
|
6
|
+
|
|
7
|
+
Non-Raven agents use `raven_mcp` for information available through Raven's configured on-demand MCP servers. Include the target server or capability when obvious. Only the `raven-mcp` agent calls `raven_mcp_bridge`; it must use the bridge directly instead of either public delegation tool.
|
|
8
|
+
|
|
9
|
+
When a request follows up on an earlier Raven result, pass the session ID returned by the matching tool. Omit `sessionId` for unrelated work and never pass a `raven_seek` session to `raven_mcp` or vice versa.
|
|
10
|
+
|
|
11
|
+
Appropriate `raven_seek` requests:
|
|
12
|
+
|
|
13
|
+
- Find definitions, references, files, or concrete code locations.
|
|
14
|
+
- Fetch and extract facts from a specific URL.
|
|
15
|
+
- Search current web, documentation, or public GitHub sources.
|
|
16
|
+
- Inspect bounded command output or local system facts.
|
|
17
|
+
|
|
18
|
+
Inappropriate delegation:
|
|
19
|
+
|
|
20
|
+
- Review or audit this codebase.
|
|
21
|
+
- Decide whether an implementation is correct or secure.
|
|
22
|
+
- Plan or implement a feature.
|
|
23
|
+
- Diagnose a bug beyond retrieving requested evidence.
|
|
24
|
+
|
|
25
|
+
Examples:
|
|
26
|
+
|
|
27
|
+
`raven_seek(query="Find every caller of validateToken and return file/line locations")`
|
|
28
|
+
|
|
29
|
+
`raven_seek(query="Fetch/read https://example.com and extract the documented install flags")`
|
|
30
|
+
|
|
31
|
+
`raven_mcp(query="Use Context7 to retrieve the current API documentation for Effect Schema decoding")`
|
|
32
|
+
|
|
33
|
+
Simple piped output filters like `command | grep ...`, `command | rg ...`, `command | findstr ...`, or `command | head ...` are allowed when they only filter bounded output from the immediately preceding command.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-raven",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Context-saving search and on-demand MCP routing for OpenCode through
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"description": "Context-saving search and on-demand MCP routing for OpenCode through focused Raven agents.",
|
|
5
5
|
"main": "./index.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./index.ts"
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"index.ts",
|
|
12
12
|
"Raven.md",
|
|
13
|
+
"RavenMcp.md",
|
|
13
14
|
"Raven.png",
|
|
14
15
|
"example.gif",
|
|
15
16
|
"mcp-guidance.md",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
"LICENSE"
|
|
19
20
|
],
|
|
20
21
|
"scripts": {
|
|
22
|
+
"test": "bun test",
|
|
21
23
|
"typecheck": "tsc --noEmit"
|
|
22
24
|
},
|
|
23
25
|
"keywords": [
|