From 474b75ea973aa56889b9e54e609616d60011345d Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Sun, 15 Feb 2026 15:44:04 -0600 Subject: [PATCH] fix(installer): convert general-purpose subagent to OpenCode's "general" OpenCode uses "general" as its built-in general-purpose subagent type, while Claude Code uses "general-purpose". This caused "Unknown agent type: general-purpose is not a valid agent type" errors in OpenCode when running workflows that spawn subagents (plan-phase, new-project, debug, etc.). Fixes #411 Co-Authored-By: Claude Opus 4.6 --- bin/install.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/install.js b/bin/install.js index 47ac41d85..97f163d67 100755 --- a/bin/install.js +++ b/bin/install.js @@ -469,6 +469,8 @@ function convertClaudeToOpencodeFrontmatter(content) { convertedContent = convertedContent.replace(/\/gsd:/g, '/gsd-'); // Replace ~/.claude with ~/.config/opencode (OpenCode's correct config location) convertedContent = convertedContent.replace(/~\/\.claude\b/g, '~/.config/opencode'); + // Replace general-purpose subagent type with OpenCode's equivalent "general" + convertedContent = convertedContent.replace(/subagent_type="general-purpose"/g, 'subagent_type="general"'); // Check if content has frontmatter if (!convertedContent.startsWith('---')) {