Expand description
OpenCode integration
Generates and installs OpenCode configuration files for decision graph integration. OpenCode uses TypeScript/JavaScript plugins and tools for hooks and automation.
Directory structure:
.opencode/plugins/- TypeScript plugins (hooks).opencode/commands/- Custom slash commands (markdown).opencode/skills/<name>/SKILL.md- Skills with OpenCode frontmatter.opencode/agents/- Custom agent definitions (markdown).opencode/tools/- Custom tools (TypeScript)opencode.json- Configuration fileAGENTS.md- Project instructions (equivalent to CLAUDE.md)
Constants§
- AGENT_
DECIDUOUS - OpenCode agent definition for .opencode/agents/deciduous.md
- COMMAND_
BUILD_ TEST - OpenCode command template: /build-test
- COMMAND_
DECISION - OpenCode command template: /decision
- COMMAND_
DECISION_ GRAPH - OpenCode command template: /decision-graph
- COMMAND_
DOCUMENT - OpenCode command template: /document
- COMMAND_
RECOVER - OpenCode command template: /recover
- COMMAND_
SERVE_ UI - OpenCode command template: /serve-ui
- COMMAND_
SYNC - OpenCode command template: /sync
- COMMAND_
SYNC_ GRAPH - OpenCode command template: /sync-graph
- COMMAND_
WORK - OpenCode command template: /work
- PLUGIN_
POST_ COMMIT_ REMINDER - OpenCode plugin for post-commit reminders
- PLUGIN_
REQUIRE_ ACTION_ NODE - OpenCode plugin for requiring action nodes before edits
- PLUGIN_
VERSION_ CHECK - OpenCode plugin for version checking (always-on, rate-limited)
- SKILL_
ARCHAEOLOGY - OpenCode skill template: /archaeology
- SKILL_
ARCHAEOLOGY_ OPENCODE - OpenCode skill: /archaeology (SKILL.md format for .opencode/skills/archaeology/SKILL.md)
- SKILL_
NARRATIVES - OpenCode skill template: /narratives
- SKILL_
NARRATIVES_ OPENCODE - OpenCode skill: /narratives (SKILL.md format for .opencode/skills/narratives/SKILL.md)
- SKILL_
PULSE - OpenCode skill template: /pulse
- SKILL_
PULSE_ OPENCODE - OpenCode skill: /pulse (SKILL.md format for .opencode/skills/pulse/SKILL.md)
- TOOL_
DECIDUOUS - OpenCode custom tool for .opencode/tools/deciduous.ts
Functions§
- install_
opencode - Install OpenCode configuration and plugins
- opencode_
status - Show OpenCode integration status
- uninstall_
opencode - Uninstall OpenCode integration
- update_
opencode - Update OpenCode integration files to latest version (overwrites existing)