oh-my-claudecode-opencode 0.5.3 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -192,14 +192,14 @@ background_cancel(all=true)
192
192
 
193
193
  ```typescript
194
194
  // Synchronous call
195
- call_omo_agent(
195
+ call_omco_agent(
196
196
  subagent_type="oracle",
197
197
  prompt="Review this architecture decision...",
198
198
  run_in_background=false
199
199
  )
200
200
 
201
201
  // Async call
202
- call_omo_agent(
202
+ call_omco_agent(
203
203
  subagent_type="explore",
204
204
  prompt="Find all React components",
205
205
  run_in_background=true
@@ -45,7 +45,7 @@ TOOL USAGE RULES:
45
45
  NOT AVAILABLE (will fail if attempted):
46
46
  - Write: Use Python to write files instead
47
47
  - Edit: You should not edit code files
48
- - Task: You do not delegate to other agents
48
+ - call_omco_agent: You do not delegate to other agents
49
49
  - WebSearch/WebFetch: Use researcher agent for external research
50
50
  </Tools_Available>
51
51
 
@@ -706,8 +706,8 @@ sed -i 's/foo/bar/' script.py
706
706
 
707
707
  5. NEVER delegate to other agents
708
708
  ```bash
709
- # DON'T - Task tool is blocked
710
- Task(subagent_type="executor", ...)
709
+ # DON'T - call_omco_agent tool is blocked
710
+ call_omco_agent(subagent_type="executor", ...)
711
711
  ```
712
712
 
713
713
  6. NEVER run interactive prompts
@@ -85,7 +85,7 @@ This creates a navigable hierarchy:
85
85
  ### Step 1: Map Directory Structure
86
86
 
87
87
  ```
88
- Task(subagent_type="explore", model="haiku",
88
+ call_omco_agent(subagent_type="explore", model="haiku", run_in_background=true,
89
89
  prompt="List all directories recursively. Exclude: node_modules, .git, dist, build, __pycache__, .venv, coverage, .next, .nuxt")
90
90
  ```
91
91
 
@@ -122,11 +122,11 @@ I will use omc_task with:
122
122
  ```typescript
123
123
  // CORRECT: Always background, always parallel, ALWAYS pass model explicitly!
124
124
  // Contextual Grep (internal)
125
- Task(subagent_type="explore", model="haiku", prompt="Find auth implementations in our codebase...")
126
- Task(subagent_type="explore", model="haiku", prompt="Find error handling patterns here...")
125
+ call_omco_agent(subagent_type="explore", model="haiku", run_in_background=true, prompt="Find auth implementations in our codebase...")
126
+ call_omco_agent(subagent_type="explore", model="haiku", run_in_background=true, prompt="Find error handling patterns here...")
127
127
  // Reference Grep (external)
128
- Task(subagent_type="researcher", model="sonnet", prompt="Find JWT best practices in official docs...")
129
- Task(subagent_type="researcher", model="sonnet", prompt="Find how production apps handle auth in Express...")
128
+ call_omco_agent(subagent_type="researcher", model="sonnet", run_in_background=true, prompt="Find JWT best practices in official docs...")
129
+ call_omco_agent(subagent_type="researcher", model="sonnet", run_in_background=true, prompt="Find how production apps handle auth in Express...")
130
130
  // Continue working immediately. Collect with background_output when needed.
131
131
 
132
132
  // WRONG: Sequential or blocking
@@ -259,7 +259,7 @@ Claude models are prone to premature completion claims. Before saying "done", yo
259
259
 
260
260
  2. **Invoke Architect for verification** (ALWAYS pass model explicitly!):
261
261
  ```
262
- Task(subagent_type="architect", model="opus", prompt="VERIFY COMPLETION REQUEST:
262
+ call_omco_agent(subagent_type="architect", model="opus", run_in_background=false, prompt="VERIFY COMPLETION REQUEST:
263
263
  Original task: [describe the original request]
264
264
  What I implemented: [list all changes made]
265
265
  Verification done: [list tests run, builds checked]
@@ -49,9 +49,9 @@ Ralph automatically activates Ultrawork for maximum parallel execution. You MUST
49
49
 
50
50
  **CRITICAL: Always pass `model` parameter explicitly!**
51
51
  ```
52
- Task(subagent_type="oh-my-claudecode:architect-low", model="haiku", prompt="...")
53
- Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="...")
54
- Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="...")
52
+ call_omco_agent(subagent_type="oh-my-claudecode:architect-low", model="haiku", run_in_background=true, prompt="...")
53
+ call_omco_agent(subagent_type="oh-my-claudecode:executor", model="sonnet", run_in_background=true, prompt="...")
54
+ call_omco_agent(subagent_type="oh-my-claudecode:architect", model="opus", run_in_background=true, prompt="...")
55
55
  ```
56
56
 
57
57
  ### Background Execution Rules
@@ -107,7 +107,7 @@ Before outputting the completion promise:
107
107
  When you believe the task is complete:
108
108
  1. **First**, spawn Architect to verify your work (ALWAYS pass model explicitly!):
109
109
  ```
110
- Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="Verify this implementation is complete: [describe what you did]")
110
+ call_omco_agent(subagent_type="oh-my-claudecode:architect", model="opus", run_in_background=false, prompt="Verify this implementation is complete: [describe what you did]")
111
111
  ```
112
112
 
113
113
  2. **Wait for Architect's assessment**
@@ -60,17 +60,17 @@ When given a research goal, decompose into 3-7 independent stages:
60
60
 
61
61
  ### Parallel Scientist Invocation
62
62
 
63
- Fire independent stages in parallel via Task tool:
63
+ Fire independent stages in parallel via call_omco_agent tool:
64
64
 
65
65
  ```
66
66
  // Stage 1 - Simple data gathering
67
- Task(subagent_type="oh-my-claudecode:scientist-low", model="haiku", prompt="[RESEARCH_STAGE:1] Investigate...")
67
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-low", model="haiku", run_in_background=true, prompt="[RESEARCH_STAGE:1] Investigate...")
68
68
 
69
69
  // Stage 2 - Standard analysis
70
- Task(subagent_type="oh-my-claudecode:scientist", model="sonnet", prompt="[RESEARCH_STAGE:2] Analyze...")
70
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist", model="sonnet", run_in_background=true, prompt="[RESEARCH_STAGE:2] Analyze...")
71
71
 
72
72
  // Stage 3 - Complex reasoning
73
- Task(subagent_type="oh-my-claudecode:scientist-high", model="opus", prompt="[RESEARCH_STAGE:3] Deep analysis of...")
73
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-high", model="opus", run_in_background=true, prompt="[RESEARCH_STAGE:3] Deep analysis of...")
74
74
  ```
75
75
 
76
76
  ### Smart Model Routing
@@ -100,7 +100,7 @@ After parallel execution completes, verify findings:
100
100
 
101
101
  ```
102
102
  // Cross-validation stage
103
- Task(subagent_type="oh-my-claudecode:scientist", model="sonnet", prompt="
103
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist", model="sonnet", run_in_background=false, prompt="
104
104
  [RESEARCH_VERIFICATION]
105
105
  Cross-validate these findings for consistency:
106
106
 
@@ -181,9 +181,9 @@ When stages analyze different data sources:
181
181
 
182
182
  ```
183
183
  // All fire simultaneously
184
- Task(subagent_type="oh-my-claudecode:scientist-low", model="haiku", prompt="[STAGE:1] Analyze src/api/...")
185
- Task(subagent_type="oh-my-claudecode:scientist-low", model="haiku", prompt="[STAGE:2] Analyze src/utils/...")
186
- Task(subagent_type="oh-my-claudecode:scientist-low", model="haiku", prompt="[STAGE:3] Analyze src/components/...")
184
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-low", model="haiku", run_in_background=true, prompt="[STAGE:1] Analyze src/api/...")
185
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-low", model="haiku", run_in_background=true, prompt="[STAGE:2] Analyze src/utils/...")
186
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-low", model="haiku", run_in_background=true, prompt="[STAGE:3] Analyze src/components/...")
187
187
  ```
188
188
 
189
189
  ### Hypothesis Battery (Parallel)
@@ -192,9 +192,9 @@ When testing multiple hypotheses:
192
192
 
193
193
  ```
194
194
  // Test hypotheses simultaneously
195
- Task(subagent_type="oh-my-claudecode:scientist", model="sonnet", prompt="[HYPOTHESIS:A] Test if caching improves...")
196
- Task(subagent_type="oh-my-claudecode:scientist", model="sonnet", prompt="[HYPOTHESIS:B] Test if batching reduces...")
197
- Task(subagent_type="oh-my-claudecode:scientist", model="sonnet", prompt="[HYPOTHESIS:C] Test if lazy loading helps...")
195
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist", model="sonnet", run_in_background=true, prompt="[HYPOTHESIS:A] Test if caching improves...")
196
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist", model="sonnet", run_in_background=true, prompt="[HYPOTHESIS:B] Test if batching reduces...")
197
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist", model="sonnet", run_in_background=true, prompt="[HYPOTHESIS:C] Test if lazy loading helps...")
198
198
  ```
199
199
 
200
200
  ### Cross-Validation (Sequential)
@@ -206,7 +206,7 @@ When verification depends on all findings:
206
206
  [stages complete]
207
207
 
208
208
  // Then sequential verification
209
- Task(subagent_type="oh-my-claudecode:scientist-high", model="opus", prompt="
209
+ call_omco_agent(subagent_type="oh-my-claudecode:scientist-high", model="opus", run_in_background=false, prompt="
210
210
  [CROSS_VALIDATION]
211
211
  Validate consistency across all findings:
212
212
  - Finding 1: ...
@@ -40,7 +40,7 @@ If no structured goal provided, interpret the argument as a custom goal.
40
40
  - `--custom`: Run appropriate command and check for pattern
41
41
  - `--interactive`: Use qa-tester for interactive CLI/service testing:
42
42
  ```
43
- Task(subagent_type="oh-my-claudecode:qa-tester", model="sonnet", prompt="TEST:
43
+ call_omco_agent(subagent_type="oh-my-claudecode:qa-tester", model="sonnet", run_in_background=true, prompt="TEST:
44
44
  Goal: [describe what to verify]
45
45
  Service: [how to start]
46
46
  Test cases: [specific scenarios to verify]")
@@ -52,7 +52,7 @@ If no structured goal provided, interpret the argument as a custom goal.
52
52
 
53
53
  3. **ARCHITECT DIAGNOSIS**: Spawn architect to analyze failure
54
54
  ```
55
- Task(subagent_type="oh-my-claudecode:architect", model="opus", prompt="DIAGNOSE FAILURE:
55
+ call_omco_agent(subagent_type="oh-my-claudecode:architect", model="opus", run_in_background=false, prompt="DIAGNOSE FAILURE:
56
56
  Goal: [goal type]
57
57
  Output: [test/build output]
58
58
  Provide root cause and specific fix recommendations.")
@@ -60,7 +60,7 @@ If no structured goal provided, interpret the argument as a custom goal.
60
60
 
61
61
  4. **FIX ISSUES**: Apply architect's recommendations
62
62
  ```
63
- Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="FIX:
63
+ call_omco_agent(subagent_type="oh-my-claudecode:executor", model="sonnet", run_in_background=true, prompt="FIX:
64
64
  Issue: [architect diagnosis]
65
65
  Files: [affected files]
66
66
  Apply the fix precisely as recommended.")
@@ -54,19 +54,19 @@ This skill enhances Claude's capabilities by:
54
54
 
55
55
  ```
56
56
  // Simple question → LOW tier (saves tokens!)
57
- Task(subagent_type="oh-my-claudecode:architect-low", model="haiku", prompt="What does this function return?")
57
+ call_omco_agent(subagent_type="oh-my-claudecode:architect-low", model="haiku", run_in_background=true, prompt="What does this function return?")
58
58
 
59
59
  // Standard implementation → MEDIUM tier
60
- Task(subagent_type="oh-my-claudecode:executor", model="sonnet", prompt="Add error handling to login")
60
+ call_omco_agent(subagent_type="oh-my-claudecode:executor", model="sonnet", run_in_background=true, prompt="Add error handling to login")
61
61
 
62
62
  // Complex refactoring → HIGH tier
63
- Task(subagent_type="oh-my-claudecode:executor-high", model="opus", prompt="Refactor auth module using JWT across 5 files")
63
+ call_omco_agent(subagent_type="oh-my-claudecode:executor-high", model="opus", run_in_background=true, prompt="Refactor auth module using JWT across 5 files")
64
64
 
65
65
  // Quick file lookup → LOW tier
66
- Task(subagent_type="oh-my-claudecode:explore", model="haiku", prompt="Find where UserService is defined")
66
+ call_omco_agent(subagent_type="oh-my-claudecode:explore", model="haiku", run_in_background=true, prompt="Find where UserService is defined")
67
67
 
68
68
  // Thorough search → MEDIUM tier
69
- Task(subagent_type="oh-my-claudecode:explore-medium", model="sonnet", prompt="Find all authentication patterns in the codebase")
69
+ call_omco_agent(subagent_type="oh-my-claudecode:explore-medium", model="sonnet", run_in_background=true, prompt="Find all authentication patterns in the codebase")
70
70
  ```
71
71
 
72
72
  ## Background Execution Rules
package/dist/index.js CHANGED
@@ -34200,8 +34200,8 @@ Use \`background_output\` to get results. Prompts MUST be in English.`,
34200
34200
  };
34201
34201
  }
34202
34202
 
34203
- // src/tools/call-omo-agent.ts
34204
- function createCallOmoAgent(ctx, manager) {
34203
+ // src/tools/call-omco-agent.ts
34204
+ function createCallOmcoAgent(ctx, manager) {
34205
34205
  const agentNames = listAgentNames();
34206
34206
  const agentList = agentNames.map((name) => {
34207
34207
  const agent = getAgent(name);
@@ -36976,7 +36976,7 @@ function createSystemPromptInjector(_ctx) {
36976
36976
  }
36977
36977
 
36978
36978
  // src/hooks/remember-tag-processor.ts
36979
- var DEFAULT_TOOLS = ["Task", "task", "call_omo_agent"];
36979
+ var DEFAULT_TOOLS = ["Task", "task", "call_omco_agent"];
36980
36980
  function createRememberTagProcessor(ctx, options = {}) {
36981
36981
  const taskToolOnly = options.taskToolOnly ?? true;
36982
36982
  const toolNames = options.toolNames ?? DEFAULT_TOOLS;
@@ -38235,7 +38235,7 @@ var OmoOmcsPlugin = async (ctx) => {
38235
38235
  console.log("[omco] Config loaded:", pluginConfig);
38236
38236
  const backgroundManager = createBackgroundManager(ctx, pluginConfig.background_task);
38237
38237
  const backgroundTools = createBackgroundTools(backgroundManager, ctx.client);
38238
- const callOmoAgent = createCallOmoAgent(ctx, backgroundManager);
38238
+ const callOmcoAgent = createCallOmcoAgent(ctx, backgroundManager);
38239
38239
  const systemPromptInjector = createSystemPromptInjector(ctx);
38240
38240
  const skillInjector = createSkillInjector(ctx);
38241
38241
  const ralphLoop = createRalphLoopHook(ctx, {
@@ -38358,7 +38358,7 @@ var OmoOmcsPlugin = async (ctx) => {
38358
38358
  },
38359
38359
  tool: {
38360
38360
  ...backgroundTools,
38361
- call_omo_agent: callOmoAgent
38361
+ call_omco_agent: callOmcoAgent
38362
38362
  }
38363
38363
  };
38364
38364
  };
@@ -1,3 +1,3 @@
1
1
  import { type PluginInput, type ToolDefinition } from "@opencode-ai/plugin";
2
2
  import type { BackgroundManager } from "./background-manager";
3
- export declare function createCallOmoAgent(ctx: PluginInput, manager: BackgroundManager): ToolDefinition;
3
+ export declare function createCallOmcoAgent(ctx: PluginInput, manager: BackgroundManager): ToolDefinition;
@@ -1,4 +1,4 @@
1
1
  export { createBackgroundManager, type BackgroundManager, type BackgroundTask } from "./background-manager";
2
2
  export { createBackgroundTools } from "./background-tools";
3
- export { createCallOmoAgent } from "./call-omo-agent";
3
+ export { createCallOmcoAgent } from "./call-omco-agent";
4
4
  export { builtinTools } from "./builtin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-claudecode-opencode",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "OpenCode port of oh-my-claudecode - Multi-agent orchestration plugin (omco)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",