OpenCode — Commands
- File format
- Markdown
- Discovery path
-
.opencode/commands - Global install path
-
~/.config/opencode/commands - Syllago install method
- Symlink, Direct copy
- Symlink support
- Yes
- Native frontmatter fields
-
description,agent,model,subtask
Features
How each feature converts to syllago's canonical format. See format conversion for what these statuses mean.
Fields
Native frontmatter or config fields this provider exposes. The first column is the provider's own field name; the canonical key column links to syllago's cross-provider equivalent.
| Provider field | Conversion | Canonical key | Summary |
|---|---|---|---|
agent | Translated Conversion type: Translated Actively mapped to the target provider’s equivalent field during conversion. Learn more → | — | Frontmatter agent field routes the command to a specific named agent. |
model | Translated Conversion type: Translated Actively mapped to the target provider’s equivalent field during conversion. Learn more → | — | Frontmatter model field overrides the default model for this command invocation. |
subtask | Conversion type: No canonical equivalent — appended as prose in a conversion notes block so nothing is silently lost. Learn more → | — | Frontmatter subtask field runs the command as an isolated subtask rather than in the current session. |
Other features
Behaviors, conventions, and capabilities that aren't tied to a single named field — things like path-based activation, discovery rules, and lifecycle behavior.
| Feature | Conversion | Summary |
|---|---|---|
argument_substitution | Translated Conversion type: Translated Actively mapped to the target provider’s equivalent field during conversion. Learn more → | Named arguments via $VAR tokens substituted from user input at invocation (pattern observed in custom_commands.go — e.g. $ISSUE_NUMBER). |
Sources
| Source |
|---|
| https://opencode.ai/docs/commands/ |