oh-my-claudecode-opencode 0.1.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.
Files changed (48) hide show
  1. package/README.md +361 -0
  2. package/assets/AGENTS.md +357 -0
  3. package/assets/omco.example.json +34 -0
  4. package/assets/omco.schema.json +375 -0
  5. package/dist/agents/index.d.ts +139 -0
  6. package/dist/config/index.d.ts +179 -0
  7. package/dist/config/model-resolver.d.ts +46 -0
  8. package/dist/hooks/agent-usage-reminder.d.ts +12 -0
  9. package/dist/hooks/autopilot.d.ts +32 -0
  10. package/dist/hooks/context-recovery.d.ts +15 -0
  11. package/dist/hooks/continuation-messages.d.ts +24 -0
  12. package/dist/hooks/edit-error-recovery.d.ts +33 -0
  13. package/dist/hooks/index.d.ts +23 -0
  14. package/dist/hooks/keyword-detector.d.ts +23 -0
  15. package/dist/hooks/notepad.d.ts +109 -0
  16. package/dist/hooks/omc-orchestrator.d.ts +14 -0
  17. package/dist/hooks/persistent-mode.d.ts +60 -0
  18. package/dist/hooks/ralph-loop.d.ts +37 -0
  19. package/dist/hooks/ralph-verifier.d.ts +22 -0
  20. package/dist/hooks/remember-tag-processor.d.ts +47 -0
  21. package/dist/hooks/session-recovery.d.ts +10 -0
  22. package/dist/hooks/skill-injector.d.ts +16 -0
  23. package/dist/hooks/system-prompt-injector.d.ts +24 -0
  24. package/dist/hooks/todo-continuation-enforcer.d.ts +21 -0
  25. package/dist/hooks/tui-status.d.ts +72 -0
  26. package/dist/hooks/ultraqa-loop.d.ts +38 -0
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.js +31047 -0
  29. package/dist/plugin-handlers/config-handler.d.ts +35 -0
  30. package/dist/plugin-handlers/index.d.ts +1 -0
  31. package/dist/prd/index.d.ts +2 -0
  32. package/dist/prd/prd-manager.d.ts +34 -0
  33. package/dist/prd/progress-tracker.d.ts +22 -0
  34. package/dist/prompts/ultrawork.d.ts +3 -0
  35. package/dist/shared/logger.d.ts +3 -0
  36. package/dist/shared/session-state.d.ts +5 -0
  37. package/dist/state/autopilot-state.d.ts +30 -0
  38. package/dist/state/index.d.ts +5 -0
  39. package/dist/state/ralph-state.d.ts +18 -0
  40. package/dist/state/ultraqa-state.d.ts +34 -0
  41. package/dist/state/ultrawork-state.d.ts +13 -0
  42. package/dist/state/verification-state.d.ts +15 -0
  43. package/dist/tools/background-manager.d.ts +22 -0
  44. package/dist/tools/background-tools.d.ts +3 -0
  45. package/dist/tools/builtin.d.ts +1 -0
  46. package/dist/tools/call-omo-agent.d.ts +3 -0
  47. package/dist/tools/index.d.ts +4 -0
  48. package/package.json +63 -0
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema": "./omo-omcs.schema.json",
3
+
4
+ "model_mapping": {
5
+ "tierDefaults": {
6
+ "haiku": "github-copilot/claude-haiku-4.5",
7
+ "sonnet": "github-copilot/claude-sonnet-4.5",
8
+ "opus": "github-copilot/claude-opus-4.5"
9
+ },
10
+ "debugLogging": false
11
+ },
12
+
13
+ "agents": {
14
+ "architect": {
15
+ "tier": "opus"
16
+ },
17
+ "executor": {
18
+ "model": "github-copilot/claude-sonnet-4.5",
19
+ "temperature": 0.3
20
+ },
21
+ "explore": {
22
+ "tier": "haiku"
23
+ }
24
+ },
25
+
26
+ "background_task": {
27
+ "defaultConcurrency": 5
28
+ },
29
+
30
+ "ralph_loop": {
31
+ "enabled": true,
32
+ "default_max_iterations": 100
33
+ }
34
+ }
@@ -0,0 +1,375 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "title": "omo-omcs Configuration",
4
+ "description": "Configuration schema for Oh My OpenCode Sisyphus plugin",
5
+ "type": "object",
6
+ "properties": {
7
+ "$schema": {
8
+ "type": "string",
9
+ "description": "JSON Schema reference URL"
10
+ },
11
+ "model_mapping": {
12
+ "type": "object",
13
+ "description": "Model tier mapping configuration for custom providers",
14
+ "properties": {
15
+ "tierDefaults": {
16
+ "type": "object",
17
+ "description": "Map tier names (haiku/sonnet/opus) to concrete provider/model strings",
18
+ "properties": {
19
+ "haiku": {
20
+ "type": "string",
21
+ "pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+$",
22
+ "description": "Model for haiku tier (fast/cheap). Format: provider/model-name",
23
+ "examples": ["google/gemini-2-flash", "openai/gpt-4o-mini"]
24
+ },
25
+ "sonnet": {
26
+ "type": "string",
27
+ "pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+$",
28
+ "description": "Model for sonnet tier (balanced). Format: provider/model-name",
29
+ "examples": ["google/gemini-2-pro", "openai/gpt-4o"]
30
+ },
31
+ "opus": {
32
+ "type": "string",
33
+ "pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+$",
34
+ "description": "Model for opus tier (most capable). Format: provider/model-name",
35
+ "examples": ["google/gemini-2-ultra", "openai/gpt-5"]
36
+ }
37
+ },
38
+ "additionalProperties": false
39
+ },
40
+ "debugLogging": {
41
+ "type": "boolean",
42
+ "default": false,
43
+ "description": "Enable debug logging for model resolution"
44
+ }
45
+ },
46
+ "additionalProperties": false
47
+ },
48
+ "agents": {
49
+ "type": "object",
50
+ "description": "Per-agent configuration overrides",
51
+ "additionalProperties": {
52
+ "type": "object",
53
+ "properties": {
54
+ "model": {
55
+ "type": "string",
56
+ "description": "Concrete provider/model string (e.g., openai/gpt-4o). Takes precedence over tier.",
57
+ "pattern": "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_.-]+$"
58
+ },
59
+ "tier": {
60
+ "type": "string",
61
+ "enum": ["haiku", "sonnet", "opus"],
62
+ "description": "Override the agent's default tier"
63
+ },
64
+ "temperature": {
65
+ "type": "number",
66
+ "minimum": 0,
67
+ "maximum": 2,
68
+ "description": "Override temperature for this agent"
69
+ },
70
+ "top_p": {
71
+ "type": "number",
72
+ "minimum": 0,
73
+ "maximum": 1,
74
+ "description": "Override top_p for this agent"
75
+ },
76
+ "disable": {
77
+ "type": "boolean",
78
+ "description": "Disable this agent"
79
+ },
80
+ "prompt_append": {
81
+ "type": "string",
82
+ "description": "Append additional instructions to agent's system prompt"
83
+ }
84
+ },
85
+ "additionalProperties": false
86
+ }
87
+ },
88
+ "disabled_hooks": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string",
92
+ "enum": [
93
+ "todo-continuation-enforcer",
94
+ "keyword-detector",
95
+ "ralph-loop",
96
+ "session-recovery",
97
+ "agent-usage-reminder",
98
+ "context-window-monitor",
99
+ "comment-checker",
100
+ "tool-output-truncator",
101
+ "system-prompt-injector",
102
+ "persistent-mode",
103
+ "remember-tag-processor",
104
+ "autopilot",
105
+ "ultraqa-loop",
106
+ "context-recovery",
107
+ "edit-error-recovery",
108
+ "omc-orchestrator"
109
+ ]
110
+ },
111
+ "description": "List of hooks to disable",
112
+ "default": []
113
+ },
114
+ "disabled_agents": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ },
119
+ "description": "List of agents to disable",
120
+ "default": []
121
+ },
122
+ "disabled_skills": {
123
+ "type": "array",
124
+ "items": {
125
+ "type": "string"
126
+ },
127
+ "description": "List of skills to disable",
128
+ "default": []
129
+ },
130
+ "disabled_mcps": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "string"
134
+ },
135
+ "description": "List of MCP servers to disable",
136
+ "default": []
137
+ },
138
+ "background_task": {
139
+ "type": "object",
140
+ "description": "Background task configuration",
141
+ "properties": {
142
+ "defaultConcurrency": {
143
+ "type": "integer",
144
+ "minimum": 1,
145
+ "maximum": 20,
146
+ "default": 5,
147
+ "description": "Default maximum number of concurrent background tasks"
148
+ },
149
+ "providerConcurrency": {
150
+ "type": "object",
151
+ "description": "Per-provider concurrency limits",
152
+ "additionalProperties": {
153
+ "type": "integer",
154
+ "minimum": 1,
155
+ "maximum": 20
156
+ }
157
+ },
158
+ "modelConcurrency": {
159
+ "type": "object",
160
+ "description": "Per-model concurrency limits",
161
+ "additionalProperties": {
162
+ "type": "integer",
163
+ "minimum": 1,
164
+ "maximum": 20
165
+ }
166
+ }
167
+ },
168
+ "additionalProperties": false
169
+ },
170
+ "ralph_loop": {
171
+ "type": "object",
172
+ "description": "Ralph Loop configuration",
173
+ "properties": {
174
+ "enabled": {
175
+ "type": "boolean",
176
+ "default": true,
177
+ "description": "Enable Ralph Loop feature"
178
+ },
179
+ "default_max_iterations": {
180
+ "type": "integer",
181
+ "minimum": 1,
182
+ "maximum": 1000,
183
+ "default": 100,
184
+ "description": "Maximum iterations before forcing stop"
185
+ }
186
+ },
187
+ "additionalProperties": false
188
+ },
189
+ "autopilot": {
190
+ "type": "object",
191
+ "description": "Autopilot mode configuration",
192
+ "properties": {
193
+ "enabled": {
194
+ "type": "boolean",
195
+ "default": true,
196
+ "description": "Enable Autopilot feature"
197
+ },
198
+ "maxPhaseRetries": {
199
+ "type": "integer",
200
+ "minimum": 1,
201
+ "maximum": 10,
202
+ "default": 3,
203
+ "description": "Maximum retries per autopilot phase"
204
+ },
205
+ "delegationEnforcement": {
206
+ "type": "string",
207
+ "enum": ["strict", "warn", "off"],
208
+ "default": "warn",
209
+ "description": "Enforcement level for delegation rules"
210
+ }
211
+ },
212
+ "additionalProperties": false
213
+ },
214
+ "ultraqa": {
215
+ "type": "object",
216
+ "description": "UltraQA configuration",
217
+ "properties": {
218
+ "enabled": {
219
+ "type": "boolean",
220
+ "default": true,
221
+ "description": "Enable UltraQA feature"
222
+ },
223
+ "maxIterations": {
224
+ "type": "integer",
225
+ "minimum": 1,
226
+ "maximum": 100,
227
+ "default": 10,
228
+ "description": "Maximum QA iterations"
229
+ },
230
+ "buildCommand": {
231
+ "type": "string",
232
+ "description": "Custom build command"
233
+ },
234
+ "testCommand": {
235
+ "type": "string",
236
+ "description": "Custom test command"
237
+ },
238
+ "lintCommand": {
239
+ "type": "string",
240
+ "description": "Custom lint command"
241
+ }
242
+ },
243
+ "additionalProperties": false
244
+ },
245
+ "scientist": {
246
+ "type": "object",
247
+ "description": "Scientist agent configuration",
248
+ "properties": {
249
+ "enabled": {
250
+ "type": "boolean",
251
+ "default": true,
252
+ "description": "Enable Scientist agent feature"
253
+ },
254
+ "replFallback": {
255
+ "type": "string",
256
+ "enum": ["bash", "disabled"],
257
+ "default": "bash",
258
+ "description": "Fallback mode when REPL is unavailable"
259
+ }
260
+ },
261
+ "additionalProperties": false
262
+ },
263
+ "orchestrator": {
264
+ "type": "object",
265
+ "description": "Orchestrator configuration",
266
+ "properties": {
267
+ "delegationEnforcement": {
268
+ "type": "string",
269
+ "enum": ["strict", "warn", "off"],
270
+ "default": "warn",
271
+ "description": "Enforcement level for delegation rules"
272
+ },
273
+ "auditLogEnabled": {
274
+ "type": "boolean",
275
+ "default": true,
276
+ "description": "Enable delegation audit logging"
277
+ }
278
+ },
279
+ "additionalProperties": false
280
+ },
281
+ "context_recovery": {
282
+ "type": "object",
283
+ "description": "Context recovery configuration",
284
+ "properties": {
285
+ "enabled": {
286
+ "type": "boolean",
287
+ "default": true,
288
+ "description": "Enable context recovery feature"
289
+ }
290
+ },
291
+ "additionalProperties": false
292
+ },
293
+ "edit_error_recovery": {
294
+ "type": "object",
295
+ "description": "Edit error recovery configuration",
296
+ "properties": {
297
+ "enabled": {
298
+ "type": "boolean",
299
+ "default": true,
300
+ "description": "Enable edit error recovery feature"
301
+ },
302
+ "maxRetries": {
303
+ "type": "integer",
304
+ "minimum": 1,
305
+ "maximum": 10,
306
+ "default": 3,
307
+ "description": "Maximum retry attempts for failed edits"
308
+ },
309
+ "showToasts": {
310
+ "type": "boolean",
311
+ "default": true,
312
+ "description": "Show toast notifications for edit errors"
313
+ }
314
+ },
315
+ "additionalProperties": false
316
+ },
317
+ "tui_status": {
318
+ "type": "object",
319
+ "description": "TUI status notifications configuration",
320
+ "properties": {
321
+ "enabled": {
322
+ "type": "boolean",
323
+ "default": true,
324
+ "description": "Enable TUI status notifications"
325
+ },
326
+ "showAgentNotifications": {
327
+ "type": "boolean",
328
+ "default": true,
329
+ "description": "Show agent activity notifications"
330
+ },
331
+ "showModeChanges": {
332
+ "type": "boolean",
333
+ "default": true,
334
+ "description": "Show mode change notifications"
335
+ },
336
+ "toastDuration": {
337
+ "type": "integer",
338
+ "minimum": 500,
339
+ "maximum": 30000,
340
+ "default": 3000,
341
+ "description": "Toast notification duration in milliseconds"
342
+ },
343
+ "trackMetrics": {
344
+ "type": "boolean",
345
+ "default": true,
346
+ "description": "Track agent execution metrics"
347
+ }
348
+ },
349
+ "additionalProperties": false
350
+ },
351
+ "sisyphus_agent": {
352
+ "type": "object",
353
+ "description": "Sisyphus agent configuration",
354
+ "properties": {
355
+ "disabled": {
356
+ "type": "boolean",
357
+ "default": false,
358
+ "description": "Disable Sisyphus agent"
359
+ },
360
+ "planner_enabled": {
361
+ "type": "boolean",
362
+ "default": true,
363
+ "description": "Enable planner functionality"
364
+ },
365
+ "replace_plan": {
366
+ "type": "boolean",
367
+ "default": false,
368
+ "description": "Replace existing plan files"
369
+ }
370
+ },
371
+ "additionalProperties": false
372
+ }
373
+ },
374
+ "additionalProperties": false
375
+ }
@@ -0,0 +1,139 @@
1
+ /**
2
+ * Agent definitions for omco (oh-my-claudecode v3.0.11)
3
+ *
4
+ * These define the specialized subagents available for delegation.
5
+ * Each agent has specific capabilities and use cases.
6
+ *
7
+ * Naming Convention v3.0.11:
8
+ * - architect (was: oracle) - Architecture & debugging advisor
9
+ * - researcher (was: librarian) - Documentation & research
10
+ * - explore - Fast codebase search
11
+ * - designer (was: frontend-engineer) - UI/UX design
12
+ * - writer (was: document-writer) - Technical documentation
13
+ * - executor (was: sisyphus-junior) - Task execution
14
+ * - qa-tester - Interactive CLI testing
15
+ * - planner - Strategic planning (Opus)
16
+ * - analyst (was: metis) - Pre-planning analysis (Opus)
17
+ * - critic (was: momus) - Plan review (Opus)
18
+ * - vision - Visual/media analysis (Sonnet)
19
+ * - scientist - Data analysis and research execution (New in v3.3.6)
20
+ */
21
+ export interface AgentDefinition {
22
+ name: string;
23
+ description: string;
24
+ systemPrompt: string;
25
+ model?: "haiku" | "sonnet" | "opus";
26
+ readOnly?: boolean;
27
+ tools?: string[];
28
+ }
29
+ /**
30
+ * Architect (Opus) - Strategic Architecture & Debugging Advisor
31
+ */
32
+ export declare const architectAgent: AgentDefinition;
33
+ /**
34
+ * Architect-Low (Haiku) - Fast architectural checks
35
+ */
36
+ export declare const architectLowAgent: AgentDefinition;
37
+ /**
38
+ * Architect-Medium (Sonnet) - Balanced architectural analysis
39
+ */
40
+ export declare const architectMediumAgent: AgentDefinition;
41
+ /**
42
+ * Executor (Sonnet) - Focused Task Executor
43
+ */
44
+ export declare const executorAgent: AgentDefinition;
45
+ /**
46
+ * Executor-Low (Haiku) - Fast simple task execution
47
+ */
48
+ export declare const executorLowAgent: AgentDefinition;
49
+ /**
50
+ * Executor-High (Opus) - Complex task execution with deep reasoning
51
+ */
52
+ export declare const executorHighAgent: AgentDefinition;
53
+ /**
54
+ * Explore (Haiku) - Fast Codebase Search Specialist
55
+ */
56
+ export declare const exploreAgent: AgentDefinition;
57
+ /**
58
+ * Explore-Medium (Sonnet) - Deeper codebase analysis
59
+ */
60
+ export declare const exploreMediumAgent: AgentDefinition;
61
+ /**
62
+ * Researcher (Sonnet) - External Documentation & Reference Researcher
63
+ */
64
+ export declare const researcherAgent: AgentDefinition;
65
+ /**
66
+ * Researcher-Low (Haiku) - Fast documentation lookup
67
+ */
68
+ export declare const researcherLowAgent: AgentDefinition;
69
+ /**
70
+ * Designer (Sonnet) - UI/UX Designer-Developer
71
+ */
72
+ export declare const designerAgent: AgentDefinition;
73
+ /**
74
+ * Designer-Low (Haiku) - Fast simple UI changes
75
+ */
76
+ export declare const designerLowAgent: AgentDefinition;
77
+ /**
78
+ * Designer-High (Opus) - Complex UI architecture
79
+ */
80
+ export declare const designerHighAgent: AgentDefinition;
81
+ /**
82
+ * Writer (Haiku) - Technical Documentation Writer
83
+ */
84
+ export declare const writerAgent: AgentDefinition;
85
+ /**
86
+ * QA Tester (Sonnet) - Interactive CLI Testing Specialist
87
+ */
88
+ export declare const qaTesterAgent: AgentDefinition;
89
+ /**
90
+ * QA Tester High (Opus) - Comprehensive Production QA Specialist
91
+ */
92
+ export declare const qaTesterHighAgent: AgentDefinition;
93
+ /**
94
+ * Planner (Opus) - Strategic Planning Specialist
95
+ */
96
+ export declare const plannerAgent: AgentDefinition;
97
+ /**
98
+ * Analyst (Opus) - Pre-Planning Analysis Specialist
99
+ */
100
+ export declare const analystAgent: AgentDefinition;
101
+ /**
102
+ * Critic (Opus) - Plan Review Specialist
103
+ */
104
+ export declare const criticAgent: AgentDefinition;
105
+ /**
106
+ * Vision (Sonnet) - Visual/Media Analysis Specialist
107
+ */
108
+ export declare const visionAgent: AgentDefinition;
109
+ /**
110
+ * Scientist (Sonnet) - Data analysis and research execution
111
+ */
112
+ export declare const scientistAgent: AgentDefinition;
113
+ /**
114
+ * Scientist-Low (Haiku) - Quick data inspection
115
+ */
116
+ export declare const scientistLowAgent: AgentDefinition;
117
+ /**
118
+ * Scientist-High (Opus) - Complex research and ML analysis
119
+ */
120
+ export declare const scientistHighAgent: AgentDefinition;
121
+ /**
122
+ * Coordinator (Opus) - Master Orchestrator for complex multi-step tasks
123
+ */
124
+ export declare const coordinatorAgent: AgentDefinition;
125
+ export declare const agents: Record<string, AgentDefinition>;
126
+ export declare function getAgent(name: string): AgentDefinition | undefined;
127
+ export declare function listAgents(): AgentDefinition[];
128
+ /**
129
+ * Get all agent names including aliases
130
+ */
131
+ export declare function listAgentNames(): string[];
132
+ /**
133
+ * Check if a name is an alias (backward compatibility name)
134
+ */
135
+ export declare function isAlias(name: string): boolean;
136
+ /**
137
+ * Get the canonical (new) name for an agent
138
+ */
139
+ export declare function getCanonicalName(name: string): string;