返回 CodeWhale
PLUGIN_AUTHORING.md
根目录 / docs / PLUGIN_AUTHORING.md
1 # Write your first Codewhale plugin
2
3 > 阅读简体中文版:[zh_hans/PLUGIN_AUTHORING.md](zh_hans/PLUGIN_AUTHORING.md)
4
5 Start with a skill: a Markdown instruction file inside a small plugin bundle.
6 The [hello-codewhale example](examples/plugins/hello-codewhale/plugin.json)
7 contains two files, declares no server or hook, and asks for no tool use.
8 This walkthrough takes it from source files to a reviewed, enabled skill.
9
10 For a custom AI provider with host-owned OAuth, see [Plugin providers](PLUGIN_PROVIDERS.md)
11 and the [provider example](examples/plugins/oauth-provider/plugin.json).
12
13 ## 1. Create the bundle
14
15 Use the checked-in example, or create this directory outside an installed
16 plugins directory:
17
18 ```text
19 hello-codewhale/
20 ├── plugin.json
21 └── skills/
22 └── hello/
23 └── SKILL.md
24 ```
25
26 `plugin.json`:
27
28 ```json
29 {
30 "$schema": "https://agent-plugins.org/schemas/plugin.json",
31 "name": "hello-codewhale",
32 "version": "0.1.0",
33 "description": "A minimal, explicitly invoked greeting skill."
34 }
35 ```
36
37 `skills/hello/SKILL.md`:
38
39 ```markdown
40 ---
41 name: hello
42 description: Greet the user when they explicitly try the hello-codewhale example.
43 invocation: explicit-only
44 ---
45
46 Respond with one short greeting in the user's language. Include the exact text
47 `hello-codewhale:hello` so they can identify the example they invoked.
48
49 Use only the conversation. Do not call tools, run commands, read or write files,
50 or contact external services.
51 ```
52
53 Codewhale finds `skills/` automatically. `explicit-only` keeps this example out
54 of the model's automatic skill catalogue; you load it by name. See
55 [Skills](SKILLS.md#invocation-and-alias-metadata) for invocation metadata and
56 [Plugin bundles](PLUGIN_BUNDLES.md#manifest) for the authoritative manifest
57 contract. Keep new native bundles in `plugin.json`; no second manifest is
58 needed.
59
60 ## 2. Install, inspect, and trust
61
62 Start Codewhale in the repository root. Enter these commands **inside the
63 Codewhale session**, one at a time:
64
65 ```text
66 /plugin install ./docs/examples/plugins/hello-codewhale
67 /plugin validate hello-codewhale
68 /plugin show hello-codewhale
69 ```
70
71 For your own bundle, replace the install path with its directory. Installation
72 copies it to `~/.codewhale/plugins/hello-codewhale/`, disabled and untrusted.
73 Review the installed source, skill inventory, and permissions. This example
74 should declare only Skills, with no MCP server, hook, or requested network host.
75
76 The install review prints a command containing two full hashes:
77
78 ```text
79 /plugin trust hello-codewhale <full-content-sha256>.<full-capability-sha256>
80 ```
81
82 Run the exact command printed by your review; the angle-bracket text above is
83 a placeholder. If you need a fresh review, use `/plugin trust hello-codewhale`
84 without a token. Trust records the reviewed content and capability hashes and
85 creates a runtime snapshot. It does not enable the plugin.
86
87 ```text
88 /plugin enable hello-codewhale
89 /skills hello-codewhale:
90 /skills inspect
91 ```
92
93 The skill is named `hello-codewhale:hello`: the bundle name qualifies the skill
94 name. `/skills inspect` identifies its reviewed plugin snapshot.
95
96 ## 3. Invoke it and turn it off
97
98 ```text
99 /skill hello-codewhale:hello
100 ```
101
102 Codewhale confirms activation. Then send `Say hello.` as a normal message.
103 The reply should be a short greeting containing `hello-codewhale:hello`.
104 The example contributes instructions only; the reply still uses your selected
105 model and its normal provider connection. The local install, review, and
106 activation steps do not need a model call.
107
108 ```text
109 /plugin disable hello-codewhale
110 ```
111
112 Disabling removes the plugin's contributions while preserving its trust
113 receipt. A subsequent `/skill hello-codewhale:hello` must not activate it.
114 Enable it again when needed, provided its reviewed hashes still match.
115
116 ## 4. Iterate and review changes
117
118 The installed bundle is a copy. Editing the example's original source does
119 not update that copy. To try a changed local source, disable and uninstall the
120 installed example, then install the source directory again:
121
122 ```text
123 /plugin disable hello-codewhale
124 /plugin uninstall hello-codewhale
125 /plugin install ./docs/examples/plugins/hello-codewhale
126 /plugin validate hello-codewhale
127 ```
128
129 Uninstall removes the installed copy; it leaves the original example source
130 alone. Review the new token, trust it, and enable it again. For bundles
131 installed from a remote source, use `/plugin update <name>`; see
132 [Installing plugins](PLUGINS.md#update-and-uninstall).
133
134 When files in a discovered bundle change directly, `/plugin reload` refreshes
135 the registry. Changed content invalidates the old receipt, even if you leave
136 the version unchanged. Reload does not grant trust. Use `/plugin revoke <name>`
137 to remove trust explicitly.
138
139 ## Add only the components you need
140
141 All components use the same bundle review and existing Codewhale runtime:
142
143 | Component | Authoring surface |
144 | --- | --- |
145 | Skills | `skills/<name>/SKILL.md`; [instruction and invocation contract](SKILLS.md). |
146 | MCP | A sibling `mcp.json`; [bundle transport and credential rules](PLUGIN_BUNDLES.md#validation-both-formats). |
147 | Commands | Markdown command files; [command metadata](architecture/command-dispatch.md#user-commands). |
148 | Agent profiles | Fleet TOML profiles; [Fleet authoring](FLEET.md#authoring-agent-profiles-fleet-setup). |
149 | Hooks | `HooksConfig` TOML files; [events and process behavior](HOOKS.md). |
150 | Native mods (experimental) | Reviewed ESM entries contributing tools, commands, pre-execute listeners, prompt sections and owner-local JSON state; [plugin contract](EXTENSIONS.md). |
151
152 Declare Commands, Agents, and Hooks paths under
153 `extensions["net.codewhale"]` in `plugin.json`, as specified in
154 [Plugin bundles](PLUGIN_BUNDLES.md#active-and-inactive-component-surfaces).
155 Do not place MCP server fields or arbitrary runtime entrypoints at the manifest
156 root. LSP can be inventoried but has no executable adapter. A `native`
157 plugin is inventory-only by default; with the experimental
158 `[features] extension_host` flag on, it names one `.mjs`, `.js` or `.mts` ES module
159 file that the TypeScript plugin host runs, and `/plugin validate` rejects
160 any other entry. Its tools always use `Required` approval, never a plugin's
161 read-only hint. Full Access, Bypass, or an exact session grant for the
162 reviewed build can satisfy that gate without a prompt
163 ([design](design/TS_EXTENSION_HOST.md#as-built-phase-1-2026-09-25)).
164 For a tested typed example, lifecycle rules and per-plugin diagnostics, read
165 [Writing a plugin tool](EXTENSIONS.md). `.mts` supports Node's erasable
166 types without a separate compiler; syntax needing transformation is not supported.
167
168 A plugin whose tools act on the person's own machine needs more than an
169 approval posture: what it may ever attempt, what the person has granted, and
170 how often to interrupt are three different questions. The Computer Use bundle
171 is the worked example, and
172 [its permission model](https://github.com/codewhale-hq/codewhale-cu-plugin/blob/main/docs/PERMISSIONS_MODEL.md)
173 proposes the separation the engine should adopt.
174
175 ## Write a scoped native mod
176
177 The [mod-extension example](examples/plugins/mod-extension/README.md) is a
178 runnable ESM bundle with no package installation or compiler step. It registers
179 `mod_counter`, `/mod-count`, one prompt section, and a pre-execute listener
180 limited to its own tool. The tool returns a structured JSON counter value;
181 `ctx.storage` keeps that value in the owner directory Rust assigned. Its
182 idempotent disposers remove registrations and wait for queued work. Disable
183 withdraws the prompt section and listener while retaining the stored counter.
184
185 Enable the experimental `extension_host` feature explicitly, install the
186 example directory, validate and inspect its Native capability, then personally
187 review and trust its exact content/capability hashes before enabling it. With
188 the feature off, native code remains inventory-only. Source changes require
189 another review; `/plugin reload` is explicit, not a hot-reload watcher.
190
191 The available author services are `tools`, `commands`, `prompt`, `storage`, `skills`,
192 `logger`, and Cordis lifecycle facilities. `ctx.on('tools/pre-execute', ...)`
193 may abstain, deny, ask, revise object input or annotate context. Rust folds those
194 proposals and repeats planning and admission checks for revised input. `allow`
195 does not approve anything; `next()` abstains. Errors, malformed answers,
196 timeouts and withdrawn owners fail closed. This is a pre-execute proposal
197 contract, with no around-execution middleware or post-result rewriting.
198
199 `ctx.prompt.registerSection({id, text})` proposes bounded, attributed
200 instructions delivered through the existing Engine runtime-message path.
201 `ctx.storage.get/set/delete` handles bounded owner-local JSON, including state
202 across generations. Neither API replaces the system prompt, session store or
203 credentials. Tool and command invocations expose optional frozen `sessionId`,
204 `agentId` and `originTurnId` labels supplied for that call, not runtime handles.
205 The public author SDK is not published; the example uses the documented shims.
206
207 `ctx.skills.registerRoot({path: 'profiles/review-skills'})` contributes child
208 `SKILL.md` packages from the reviewed bundle to the existing Rust skill
209 catalog. Its disposer retires the root; disable, revoke and host exit do the
210 same. Rust checks the Native receipt, file hashes and current registration
211 when discovering or loading a skill, including queued user selections. A
212 process or host restart invalidates a saved Native selection. Bundle-relative
213 paths, parser rules and count/byte limits are documented in
214 [the skill-root contract](EXTENSIONS.md#skill-roots). This API adds instructions;
215 tool permissions remain with the shared engine.
216
217 The DSH importer described below can prepare a reviewed Native composition
218 from a closed package, as well as convert portable declarative components.
219 Custom Ratatui/GPUI widgets, DSH browser UI slots and DSH's agent runtime
220 are not provided.
221 Compatible Claude bundles still use the existing declarative component adapters;
222 this Native API does not load Claude's agent loop or automatically adapt Pi's
223 extension API. Port executable mod behavior against the documented host contract.
224 A plugin tool can use `exec.core.call` only during its direct model
225 invocation under the shared turn gate. Commands and activation have no core
226 handle. Nested shell and network calls force a user prompt; a mode that cannot
227 open one refuses them. See [the exact core-call contract](EXTENSIONS.md#asking-the-core-to-run-a-tool)
228 for refused tools, cancellation and call limits.
229
230 Plugin trust is **not an OS sandbox**. A local MCP server or hook can launch a
231 process; review its code and authority before enabling it. Skills do not grant
232 permissions: repository instructions, permission rules, sandbox policy, and
233 tool approval still apply. Keep credentials out of bundles and command
234 arguments. Use the reviewed environment references documented in the
235 [bundle validation contract](PLUGIN_BUNDLES.md#validation-both-formats) for MCP;
236 read the separate [hook environment contract](HOOKS.md#the-hook-process-environment)
237 before adding a hook.
238
239 ## Convert an existing plugin
240
241 [`scripts/dsh-plugin-acceptance/convert-plugin.py`](../scripts/dsh-plugin-acceptance/convert-plugin.py) converts explicitly
242 selected remote MCP declarations, packaged local Node MCP servers, and portable
243 Skills into a native bundle.
244 It requires Python 3.10+ and PyYAML 6+; install those separately if absent.
245 The converter installs no dependencies, scans no ambient configuration or
246 credentials, makes no network requests, and executes no source code.
247
248 ### OpenCode
249
250 Save this plain JSON as `opencode-mcp.json`:
251
252 ```json
253 {
254 "mcp": {
255 "docs": {
256 "type": "remote",
257 "url": "https://example.invalid/mcp",
258 "oauth": false,
259 "enabled": false
260 }
261 }
262 }
263 ```
264
265 From the Codewhale repository root, run this in your shell:
266
267 ```sh
268 python3 scripts/dsh-plugin-acceptance/convert-plugin.py --format opencode-v1 \
269 --config ./opencode-mcp.json --name migrated-tools --output ./migrated-opencode
270 ```
271
272 Choose `--format opencode-v2` for the `mcp.servers.<name>` layout, whose server
273 flag is `disabled` instead of `enabled`. Select the format from the data;
274 filenames and upstream branch names do not determine its version. Both formats
275 require explicit `oauth: false` for remote servers. Remote MCP output uses **Streamable HTTP only**;
276 OpenCode's fallback to legacy SSE is not reproduced. For an SSE-only endpoint,
277 author native `mcp.json` with `type: "sse"` and use the same review flow.
278
279 When MCP servers are selected, configurations containing `tools`,
280 `permission`/`permissions`, `agent`/`agents`, legacy `mode`, or `default_agent`
281 are refused. These settings can restrict tool access beyond server enablement.
282 Manually preserve those restrictions in Codewhale before supplying an MCP-only
283 input; simply deleting the settings can widen access.
284
285 JSONC comments and trailing commas are not
286 accepted: provide a plain JSON copy containing the declarations you intend
287 to port.
288
289 ### DeepSeek Harness (DSH)
290
291 Save this static Cordis entry list as `dsh-mcp.yml`:
292
293 ```yaml
294 - name: '@deepseek-ai/dsh-mcp-client'
295 disabled: true
296 config:
297 serverName: docs
298 transport: streamable-http
299 url: https://example.invalid/mcp
300 ```
301
302 ```sh
303 python3 scripts/dsh-plugin-acceptance/convert-plugin.py --format dsh \
304 --config ./dsh-mcp.yml --name migrated-dsh --output ./migrated-dsh
305 ```
306
307 The DSH input may also be JSON, but must be the plain entry list, not a full
308 profile or patch composition. Each row must name `@deepseek-ai/dsh-mcp-client`.
309
310 A real DeepSeek Harness bundle package — an npm package whose `package.json`
311 declares `dsh.bundle.patch` — is imported natively by Codewhale, not by this
312 script (`--bundle` is retired):
313
314 ```text
315 /plugin import dsh ./node_modules/@demo/tools-dsh
316 /plugin import dsh approve <package-dir> <content-hash>
317 ```
318
319 The first command converts the package into scratch and shows what converts,
320 what is skipped, the network hosts and local processes the bundle will request,
321 and its content hash; nothing is installed. `approve` installs exactly that
322 converted bundle through the ordinary reviewed installer: it lands disabled and
323 untrusted, and a package edited after review installs nothing. Installing the
324 package directory as a plain `/plugin install <dir>` routes to the same importer.
325 `/plugin update <name>` re-converts the recorded package; changed output
326 replaces the bundle and invalidates its trust receipt. The Runtime API exposes
327 the same review as `POST /v1/apps/plugins/import/dsh/preview`, whose
328 `install_source` and `content_hash` go to `POST /v1/apps/plugins/install`.
329 Those two are the only import surfaces today: the TUI slash command
330 (`/plugin import dsh <dir>` and `approve`) and the Runtime API. There is no
331 `codewhale plugin` CLI subcommand for DSH import. This bundle import is also
332 not the external-launcher integration `codewhale integrations dsh`, which runs
333 the user's installed `dsh` (see [INTEGRATIONS_DSH.md](INTEGRATIONS_DSH.md)).
334
335 `dsh.bundle.patch` may name one patch file or an ordered list of files. The
336 importer reads only contained, non-linked package files (at most 64 files and
337 1 MiB of patch data combined), then applies `insert` and keyed overrides over
338 one empty profile. As in upstream `applyEntryPatches`, an override replaces a
339 whole field: `config` is **not** deep-merged. This is not a complete profile
340 resolver: other bundles, user overlays and deployment configuration are absent.
341 Plain YAML scalars follow the YAML 1.2 core schema, as DSH's own parser does.
342
343 Packages containing supported local modules, contained ESM package exports or
344 the supported DSH service bridges can produce a Native composition. The importer
345 seals the contained source files and module hashes, then generates the Native
346 entry or entries. A Native graph with an unresolved or unsupported row is
347 refused as a whole. It does not silently install the parts that happened to
348 resolve. Reviewed agent-preset packages can produce separate Native entries;
349 the selected default or child preset scopes their contributions.
350
351 Import and review never execute plugin code. A generated Native composition
352 remains inactive until `extension_host` is explicitly enabled and the installed
353 bundle is reviewed, trusted and enabled. The host verifies its source closure
354 before loading it, and Rust retains tool approval and session authority. The
355 supported services, runtime limits and teardown behavior are documented in
356 [EXTENSIONS.md](EXTENSIONS.md). DSH UI code and the upstream agent loop are
357 outside this contract.
358
359 For portable declarative conversion, disabled groups propagate their state to
360 descendants. Disabled MCP declarations
361 stay disabled. Disabled skills are omitted with an explicit receipt because the
362 native skill format has no disabled state. A conditional/non-boolean `disabled`
363 value on a group or portable row refuses the import rather than assuming it is
364 enabled. Unsupported entry policy/dependency fields, including `inject`,
365 `intercept` and `isolate`, also refuse the import on those rows or their groups.
366 Preserve their activation and authority rules in a manual port.
367
368 Unrepresentable portable components are reported in the bundle's `CONVERSION.md` and
369 structured `CONVERSION.json`, with source package/version, manifest and
370 ordered-layer SHA-256 hashes, converter version, per-row outcomes and required
371 manual ports. Unapplied patch operations also appear in the structured
372 manual-port list, with their source layer and one-based operation index.
373
374 In portable conversion, the only lowered `!!js` expressions are
375 `process.execPath` (becomes `node`) and
376 simple quoted/template literals without escapes or interpolation. Environment
377 expressions—including fallbacks—are never resolved against this machine.
378 Packaged Node MCP converts only when its relative entry resolves inside the
379 package (and its declared relative working directory); a server outside the
380 package is skipped, and host paths are never copied. Rows of
381 `@deepseek-ai/dsh-skill-filesystem` contribute their literal `customSkillDirs`
382 children only when those directories live inside the package. Default user and
383 project skill roots, watchers and foreign service dependencies are not imported.
384 DSH modules run through the experimental TypeScript plugin host
385 (`[features] extension_host`, off by default), using either an explicitly
386 authored Native entry or a generated reviewed composition. Tools, commands,
387 prompt sections, skills, hooks and owner-local storage use Codewhale's existing
388 consumers and approval rules. This is a supported compatibility subset; a
389 successful import is not evidence that every upstream DSH service is available.
390 See [EXTENSIONS.md](EXTENSIONS.md) and
391 [design/TS_EXTENSION_HOST.md](design/TS_EXTENSION_HOST.md).
392
393 ### Local Node MCP servers
394
395 For an already packaged Node MCP server, select its original process working
396 directory explicitly. The converter copies that directory into `mcp/<server>`
397 and sets the native server's working directory to the reviewed copy. Relative
398 entrypoint imports and read-only resources keep the same layout.
399
400 ```json
401 {
402 "mcp": {
403 "localdocs": {
404 "type": "local",
405 "command": ["node", "server.mjs"],
406 "environment": {"API_TOKEN": "{env:LOCALDOCS_TOKEN}"},
407 "enabled": false
408 }
409 }
410 }
411 ```
412
413 ```sh
414 python3 scripts/dsh-plugin-acceptance/convert-plugin.py --format opencode-v1 \
415 --config ./local-mcp.json --stdio-root localdocs=./packaged-localdocs \
416 --name local-tools --output ./migrated-local
417 ```
418
419 Repeat `--stdio-root SERVER=DIRECTORY` for every local server in the selected
420 configuration. OpenCode v2 uses `mcp.servers` and `disabled`. Static DSH entries
421 use `transport: stdio`, `command: node`, and `args: [server.mjs]`; DSH `env`
422 must be absent or empty because its literals/expressions are not OpenCode
423 environment references. Optional DSH/v2 `cwd` must be absent, empty, or `.`;
424 the selected root explicitly supplies the original working directory.
425
426 Use `node` plus one relative `.mjs`, `.js`, or `.cjs` entry. Package module
427 type and sibling imports are preserved by the native launch adapter. Compile
428 TypeScript to JavaScript before packaging; the converter does not run a compiler.
429 Package dependencies and read-only resources first, inside the selected root.
430 No package manager, install script, module loader or server runs during
431 conversion. Links/reparse points, hard-linked files, hidden files/directories
432 (including `.gitignore`, `.env*`, `.npmrc` and `node_modules/.bin`), common
433 credential filenames, and private-key containers are refused. Prepare a clean
434 package directory; ignore rules are not used to silently omit files. Inspect
435 every selected file for embedded credentials before conversion. The existing
436 4,096-file / 64 MiB aggregate bundle limit applies.
437
438 The converter rejects shell launchers, Node flags, extra arguments, non-Node
439 interpreters, literal environment values, and loader-changing environment
440 names. Stateful servers that write into their working directory, depend on the
441 live workspace, or import files outside the package need a manual native port.
442 Copying files does not statically verify JavaScript import closure or sandbox
443 arbitrary code. Local MCP processes run with host-user authority; their network
444 and filesystem access are not restricted by the remote endpoint host list.
445 The same native install, capability review, hash-bound trust, and enable steps
446 are required before Codewhale launches the server. This adds a packaged Node
447 MCP subset; it does not execute DSH/Cordis plugin modules.
448
449 ### Review the result
450
451 Both examples preserve disabled servers and use a placeholder endpoint. Replace
452 the endpoint and change the source's enablement flag before reconverting when
453 you are ready to connect. The output directory must be new, with an existing
454 parent. Existing output is refused; rejected input leaves no output bundle.
455
456 Add `--skill ./my-skill` for an explicitly selected directory containing
457 `SKILL.md`, or `--skill ./my-skill.md` for a single file; repeat the option for
458 more skills. `--config` is optional for a skills-only conversion. Skills require
459 `name` and `description` frontmatter. `disable-model-invocation: true` becomes
460 native `invocation: explicit-only`. Informational `license`, `compatibility`,
461 and `metadata` fields are retained in `SOURCE_SKILL_METADATA.json` companion
462 data. Companion files from selected skill directories are copied as data;
463 review them and the instructions before loading the skill.
464
465 Only exact OpenCode header references such as `{env:MCP_TOKEN}` become native
466 `env_headers`; the converter never reads the variable's value. Literal headers,
467 DSH header expressions, and URL file/environment substitution are refused.
468 Configured timeouts must be whole seconds expressed in milliseconds, from
469 `1000` through `3600000`. Omitted timeouts use Codewhale's defaults.
470
471 Executable foreign plugins and hooks, other stdio launchers, automatic OAuth,
472 configuration JavaScript,
473 YAML aliases/tags, `__jsExpr`, and unsupported skill runtime fields (including
474 `user-invocable: false`) require a manual port. Conversion does not reproduce
475 another client's runtime or bypass Codewhale's credential and sandbox rules.
476
477 Read the generated `CONVERSION.md`, `CONVERSION.json` for bundles, `plugin.json`, `mcp.json` when present, and
478 all selected skill and MCP source files. Then use `/plugin install ./migrated-opencode` (or the
479 DSH output path), `/plugin validate <name>`, and the same hash-bound trust and
480 enable flow above. Conversion alone proves neither connectivity nor runtime
481 compatibility; the output is not installed, trusted, or enabled.
482
483 Source audit, 2026-09-08: OpenCode's [v1 MCP documentation](https://github.com/anomalyco/opencode/blob/d6855b6b47a8433462ac6aeeba882ccf734cb7f1/packages/web/src/content/docs/mcp-servers.mdx)
484 and [v2 MCP schema](https://github.com/anomalyco/opencode/blob/d6855b6b47a8433462ac6aeeba882ccf734cb7f1/packages/core/src/config/mcp.ts)
485 at `d6855b6b47`, and DSH's [MCP client reference](https://github.com/deepseek-ai/deepseek-harness/blob/c389f96bf3a9b6807cb71ed6bdad5849be0df6d8/packages/mcp/mcp-client/README.md)
486 at `c389f96bf3`. Bundle patch semantics were rechecked against DSH
487 [`00102833df`](https://github.com/deepseek-ai/deepseek-harness/tree/00102833dfaee1da9f48a3a8eae9d34005a75218)
488 (`0.1.7-alpha.2`); `scripts/fixtures/dsh-web-app` retains its real five-file package
489 as pinned test data, not as an importable native plugin. The Rust tests in
490 `crates/tui/src/plugins_dsh_tests.rs` load that package through the native
491 importer and assert that no row is promoted to a converted component; they run in
492 the workspace `Test` job. The CI `Plugin conversion` job runs only
493 `scripts/dsh-plugin-acceptance/test_convert_plugin.py` (the OpenCode and static DSH MCP-entry converter)
494 with Python/PyYAML and synthetic Node fixtures, and the script's `--bundle` path
495 refuses and points to `/plugin import dsh`. Upstream supports more than this
496 deliberately bounded converter.
497
498 ## Community context
499
500 This guide responds to [giancarlocp's request for plugin authoring guidance
501 and OpenCode conversion in discussion #5827](https://github.com/codewhale-hq/Codewhale/discussions/5827).
502 The Chinese companion follows the documentation work requested by
503 [SparkofSpike in issue #5482](https://github.com/codewhale-hq/Codewhale/issues/5482).
504
504 lines MARKDOWN