Skip to main content

Module opencode

Module opencode 

Source
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 file
  • AGENTS.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)