DashboardopencodeOpenCode configuration, commands, skill…

OpenCode configuration, commands, skills, plugins, and model conventions

Category: pattern
Confidence: 1.00
ID: 01a0a293-37a0-70ba-9723-744f6257e218
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 2
Source session: 0OJYWmHUobcuQ4y8f
Created: 2026-09-08 01:17:22
Updated: 2026-09-15 00:59:12

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 2 2h ago
craft 1 8d ago

Content

Treat https://opencode.ai/config.json as authoritative and preserve $schema plus unrelated fields. OpenCode discovers project config upward to the worktree root; plugins auto-load only from immediate entries under discovered .opencode/plugins/ or global config plugins, not a root-level sibling plugins/. Prefer conventional separate agent, command, skill, and plugin files. Commands use the Markdown body as their template, with $ARGUMENTS or positional variables. Skills require a matching lowercase-hyphenated folder/name and a description. Use provider-prefixed model references. Strict shapes matter: skills, references, agent, and command are keyed objects; plugin is an array; MCP commands are string arrays and require type. SessionPrompt.prompt() tools overwrite session permissions, so configure tools through the agent. For opencode-pty, blanket bash permission avoids the askdeny spawn trap; restart after configuration changes.

Move to: