summaryrefslogtreecommitdiff
path: root/docs/README.opencode.md
diff options
context:
space:
mode:
authorGoldJohnKing <GoldJohnKing@live.cn>2026-09-14 17:47:03 +0800
committerGoldJohnKing <GoldJohnKing@live.cn>2026-09-14 17:47:03 +0800
commit4996eb00bdcfad114c09610cc8b5737eb1a9f0e6 (patch)
tree1bf7b77db132b2bb7bddefa28a0dd2bc4c873290 /docs/README.opencode.md
parentebeb765e04aaf8582dd47b59ac9f3b568e3f3698 (diff)
fix(opencode): align V2 tool mapping with the 2.0.3 catalog; harden plugin internals
- V2 bootstrap mapping now teaches write/edit/websearch (verified against a live v2.0.3 /api/plugin tool catalog) instead of routing all file mutation through patch - frontmatter parser tolerates CRLF and YAML block scalars/continuation lines - child-session cache is bounded (512 entries, oldest-quarter eviction) - INSTALL.md and docs/README.opencode.md tool tables synced to the 2.0.3 catalog; unit-test needle list extended to cover the new tools
Diffstat (limited to 'docs/README.opencode.md')
-rw-r--r--docs/README.opencode.md9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/README.opencode.md b/docs/README.opencode.md
index fd1a292..9f99d31 100644
--- a/docs/README.opencode.md
+++ b/docs/README.opencode.md
@@ -126,14 +126,17 @@ Skills speak in actions rather than naming any one runtime's tools. The bootstra
- `Subagent (general-purpose):` template → OpenCode's `subagent` tool with `agent: "general"` (or `"explore"`); pass `sessionID` to continue a previous subagent
- "Invoke a skill" → OpenCode's native `skill` tool
- "Read a file" → `read`
-- "Create a file" / "edit a file" / "delete a file" → `patch` with `patchText` (same patch format as V1's `apply_patch`)
+- "Create / overwrite a file" → `write`
+- "Edit a file" → `edit` for targeted changes, or `patch` with `patchText` (same patch format as V1's `apply_patch`) when a skill speaks in patch format
+- "Delete a file" → `patch` (via `patchText`) or a `shell` `rm`
- "Run a shell command" → `shell` (`command`, `workdir`, `timeout`, `background`)
- "Search file contents" / "find files by name" → `grep`, `glob`
- "Fetch a URL" → `webfetch`
+- "Search the web" → `websearch`
-In short, V2 renamed `task` → `subagent` (the agent name moved from `subagent_type` to `agent`, and continuation happens by re-invoking with `sessionID`), `apply_patch` → `patch`, and `bash` → `shell`, and it dropped the todo tool entirely; `read`, `grep`, `glob`, `webfetch`, and `skill` keep their V1 names.
+In short, V2 renamed `task` → `subagent` (the agent name moved from `subagent_type` to `agent`, and continuation happens by re-invoking with `sessionID`), `apply_patch` → `patch`, and `bash` → `shell`, and it dropped the todo tool entirely; `read`, `write`, `edit`, `grep`, `glob`, `webfetch`, `websearch`, and `skill` keep their V1 names (`write`/`edit`/`websearch` replace V1's `apply_patch`-only path, `apply_patch`-only mutation habits, and V1's lack of a search tool respectively).
-(V1 list verified against the installed OpenCode 1.18.x CLI's tool inventory; V2 list verified against the V2 source at `dbd9b18`.)
+(V1 list verified against the installed OpenCode 1.18.x CLI's tool inventory; V2 list verified against the 2.0.3 tool catalog served by a live v2.0.3 service via `/api/plugin`.)
## Troubleshooting