Skip to content

Commit eed38e3

Browse files
authored
refactor: remove oh-my-opencode integration and fix SKILL-SCAN-RESULTS agent (#413)
Remove oh-my-opencode (OmO) support - not being used, can reference the git clone at ~/Git/oh-my-opencode for future inspiration. - Add SKILL-SCAN-RESULTS.md to SKIP_FILES in agent generator - Remove OmO Sisyphus/Planner-Sisyphus agents from generator - Remove setup_oh_my_opencode() function body (keep stub) - Remove OmO plugin removal from opencode.json migration - Remove OmO section from README.md - Remove 'Oh-My-OpenCode Integration' sections from 8 agent files - Delete .agents/tools/opencode/oh-my-opencode.md - Add deprecated path for cleanup on update - Remove OmO compatibility code from aidevops-plugin.md
1 parent da34fd4 commit eed38e3

14 files changed

Lines changed: 13 additions & 828 deletions

File tree

.agents/build-plus.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -381,35 +381,4 @@ Communicate clearly and concisely in a casual, friendly yet professional tone:
381381
- If content has not changed since your last read, do NOT re-read it.
382382
- Use internal memory and previous context to avoid redundant reads.
383383

384-
## Oh-My-OpenCode Integration
385384

386-
When oh-my-opencode is installed, leverage these specialized agents for enhanced development:
387-
388-
| OmO Agent | When to Use | Example |
389-
|-----------|-------------|---------|
390-
| `@oracle` | Code review, debugging strategy, architecture validation | "Ask @oracle to review this implementation" |
391-
| `@librarian` | Find library patterns, GitHub examples, best practices | "Ask @librarian for Express.js middleware patterns" |
392-
| `@frontend-ui-ux-engineer` | UI component development, design implementation | "Ask @frontend-ui-ux-engineer to build a dashboard component" |
393-
| `@explore` | Fast codebase search, file pattern discovery | "Ask @explore to find all API endpoints" |
394-
395-
**Background Agent Workflow** (parallel execution):
396-
397-
```text
398-
# Run multiple tasks simultaneously
399-
> Have @frontend-ui-ux-engineer build the UI while I implement the backend API
400-
401-
# Or use 'ultrawork' for automatic orchestration
402-
> ultrawork implement user authentication with frontend and backend
403-
```
404-
405-
**Debugging Enhancement**:
406-
407-
```text
408-
1. Encounter bug → Build+ investigates
409-
2. @oracle analyzes → suggests root cause
410-
3. @librarian finds → similar issues/solutions
411-
4. Build+ implements → fix with confidence
412-
```
413-
414-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
415-
See `tools/opencode/oh-my-opencode.md` for installation.

.agents/content.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,4 @@ Integrate with WordPress workflow:
9191
- Technical documentation
9292
- Marketing copy
9393

94-
## Oh-My-OpenCode Integration
95-
96-
When oh-my-opencode is installed, leverage these specialized agents for enhanced content creation:
97-
98-
| OmO Agent | When to Use | Example |
99-
|-----------|-------------|---------|
100-
| `@document-writer` | Technical writing, documentation, long-form content | "Ask @document-writer to create a comprehensive guide on [topic]" |
101-
| `@librarian` | Research best practices, find reference materials | "Ask @librarian for content structure examples" |
102-
| `@multimodal-looker` | Analyze visual content, infographics, competitor layouts | "Ask @multimodal-looker to describe this infographic for alt text" |
103-
104-
**Enhanced Content Workflow**:
105-
106-
```text
107-
1. Research → @librarian finds examples and best practices
108-
2. Outline → Content agent structures the piece
109-
3. Draft → @document-writer creates polished prose
110-
4. Humanise → /humanise removes AI patterns, adds voice
111-
5. Optimize → SEO agent adds keywords, meta
112-
6. Visual → @multimodal-looker analyzes/describes images
113-
7. Publish → WordPress agent deploys
114-
```
115-
116-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
117-
See `tools/opencode/oh-my-opencode.md` for installation.
94+

.agents/plan-plus.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -331,25 +331,4 @@ Focus on:
331331
- **AI-DevOps**: Infrastructure and deployment planning
332332
- **Research**: Deep investigation and documentation
333333

334-
## Oh-My-OpenCode Integration
335334

336-
When oh-my-opencode is installed, leverage these specialized agents for enhanced planning:
337-
338-
| OmO Agent | When to Use | Example |
339-
|-----------|-------------|---------|
340-
| `@oracle` | Architecture decisions, design review, debugging strategy | "Ask @oracle to review this proposed architecture" |
341-
| `@librarian` | Find implementation examples, library patterns, GitHub code | "Ask @librarian how rate limiting is typically implemented" |
342-
| `@explore` | Fast codebase search when osgrep is slow | "Ask @explore to find all authentication handlers" |
343-
344-
**Workflow Enhancement**:
345-
346-
```text
347-
1. User request → Plan+ analyzes
348-
2. @librarian finds examples → informs approach
349-
3. @oracle reviews design → validates architecture
350-
4. Plan+ synthesizes → final plan
351-
5. Tab to Build+ → execution
352-
```
353-
354-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
355-
See `tools/opencode/oh-my-opencode.md` for installation.

.agents/research.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -82,33 +82,4 @@ Structure findings as:
8282

8383
Research informs implementation but doesn't perform it.
8484

85-
## Oh-My-OpenCode Integration
8685

87-
When oh-my-opencode is installed, leverage these specialized agents for enhanced research:
88-
89-
| OmO Agent | When to Use | Example |
90-
|-----------|-------------|---------|
91-
| `@librarian` | Deep documentation research, GitHub code examples, implementation patterns | "Ask @librarian how authentication is implemented in popular Express apps" |
92-
| `@oracle` | Strategic analysis, architecture evaluation, trade-off assessment | "Ask @oracle to evaluate these two database options" |
93-
| `@multimodal-looker` | Analyze diagrams, screenshots, PDFs, visual documentation | "Ask @multimodal-looker to extract information from this architecture diagram" |
94-
| `@explore` | Fast codebase search across multiple repositories | "Ask @explore to find rate limiting implementations" |
95-
96-
**Enhanced Research Workflow**:
97-
98-
```text
99-
1. Question → Research agent scopes the inquiry
100-
2. Documentation → @librarian finds official docs and examples
101-
3. Codebase → @explore searches for implementations
102-
4. Analysis → @oracle evaluates options and trade-offs
103-
5. Visual → @multimodal-looker analyzes diagrams/screenshots
104-
6. Synthesis → Research agent compiles findings
105-
```
106-
107-
**Parallel Research** (with background agents):
108-
109-
```text
110-
> Have @librarian research authentication patterns while @explore finds existing implementations in our codebase
111-
```
112-
113-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
114-
See `tools/opencode/oh-my-opencode.md` for installation.

.agents/scripts/generate-opencode-agents.sh

Lines changed: 3 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -233,13 +233,13 @@ AGENT_MODEL_TIERS = {
233233
# "Build+": "sonnet",
234234
# "Research": "flash",
235235
# "Content": "sonnet",
236-
# "Sisyphus": "opus",
237-
# "Planner-Sisyphus": "sonnet",
236+
238237
}
239238
240239
# Files to skip (not primary agents)
241240
# Includes SKIP_PRIMARY_AGENTS (demoted agents that are now subagents)
242-
SKIP_FILES = {"AGENTS.md", "README.md"} | SKIP_PRIMARY_AGENTS
241+
# SKILL-SCAN-RESULTS.md is a generated report, not an agent
242+
SKIP_FILES = {"AGENTS.md", "README.md", "SKILL-SCAN-RESULTS.md"} | SKIP_PRIMARY_AGENTS
243243
244244
def parse_frontmatter(filepath):
245245
"""Parse YAML frontmatter from markdown file."""
@@ -384,54 +384,6 @@ def sort_key(name):
384384
385385
sorted_agents = dict(sorted(primary_agents.items(), key=lambda x: sort_key(x[0])))
386386
387-
# =============================================================================
388-
# OH-MY-OPENCODE AGENTS - Added after WordPress (end of alphabetical list)
389-
# These are OmO's agents, disabled from replacing build/plan via omo_agent.disabled
390-
# We re-add them here with controlled ordering
391-
# =============================================================================
392-
393-
# Check if oh-my-opencode is installed
394-
omo_config_path = os.path.expanduser("~/.config/opencode/oh-my-opencode.json")
395-
if os.path.exists(omo_config_path):
396-
try:
397-
with open(omo_config_path, 'r') as f:
398-
omo_config = json.load(f)
399-
400-
# Only add if omo_agent is disabled (we're taking control of ordering)
401-
if omo_config.get('omo_agent', {}).get('disabled', False):
402-
# Add Sisyphus after all other agents
403-
# Include custom prompt for consistent identity (same as other primary agents)
404-
prompt_file = os.path.expanduser(DEFAULT_PROMPT)
405-
prompt_config = {"{file:" + DEFAULT_PROMPT + "}"} if os.path.exists(prompt_file) else {}
406-
407-
sorted_agents["Sisyphus"] = {
408-
"description": "OmO orchestrator - aggressive parallel execution with background agents (Claude Opus 4.5)",
409-
"mode": "primary",
410-
"temperature": 0.2,
411-
"permission": {"external_directory": "allow"},
412-
"tools": {
413-
"write": True, "edit": True, "bash": True, "read": True, "glob": True, "grep": True,
414-
"webfetch": True, "task": True, "todoread": True, "todowrite": True,
415-
"context7_*": True, "osgrep_*": True, "augment-context-engine_*": True
416-
},
417-
"prompt": "{file:" + DEFAULT_PROMPT + "}"
418-
}
419-
sorted_agents["Planner-Sisyphus"] = {
420-
"description": "OmO planning agent - analysis and architecture without modifications",
421-
"mode": "primary",
422-
"temperature": 0.2,
423-
"permission": {"edit": "deny", "write": "deny", "bash": "deny"},
424-
"tools": {
425-
"write": False, "edit": False, "bash": False,
426-
"read": True, "glob": True, "grep": True, "webfetch": True, "task": False,
427-
"context7_*": True, "osgrep_*": True, "augment-context-engine_*": True
428-
},
429-
"prompt": "{file:" + DEFAULT_PROMPT + "}"
430-
}
431-
print(" Added OmO agents: Sisyphus, Planner-Sisyphus (after WordPress)")
432-
except:
433-
pass # OmO config not readable, skip
434-
435387
# =============================================================================
436388
# DISABLE DEFAULT BUILD/PLAN AGENTS AND DEMOTED AGENTS
437389
# Build+ is now the unified coding agent (Plan+ and AI-DevOps consolidated)

.agents/seo.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -276,24 +276,4 @@ Integrate with `content.md` for:
276276
| Position Tracking | No | No | No | No | Yes (Projects API) |
277277
| Pricing | Free | Subscription | Pay-per-search | Subscription | Unit-based |
278278

279-
## Oh-My-OpenCode Integration
280279

281-
When oh-my-opencode is installed, leverage these specialized agents for enhanced SEO workflows:
282-
283-
| OmO Agent | When to Use | Example |
284-
|-----------|-------------|---------|
285-
| `@document-writer` | Content optimization, meta descriptions, SEO copywriting | "Ask @document-writer to optimize this article for 'keyword'" |
286-
| `@librarian` | Research SEO best practices, find implementation examples | "Ask @librarian for schema markup examples" |
287-
| `@multimodal-looker` | Analyze competitor screenshots, infographics | "Ask @multimodal-looker to analyze this competitor's page layout" |
288-
289-
**Content Optimization Workflow**:
290-
291-
```text
292-
1. /keyword-research "topic" → identify targets
293-
2. @document-writer → create optimized content
294-
3. E-E-A-T analysis → validate quality
295-
4. Technical SEO → implement schema, meta
296-
```
297-
298-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
299-
See `tools/opencode/oh-my-opencode.md` for installation.

.agents/tools/ai-assistants/overview.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ aidevops generates lightweight pointer files (`.cursorrules`, `.windsurfrules`,
6767

6868
- `tools/opencode/opencode.md` - Full OpenCode reference
6969
- `tools/opencode/opencode-anthropic-auth.md` - Anthropic auth setup
70-
- `tools/opencode/oh-my-opencode.md` - OpenCode plugin system
7170
- `claude-code.md` - Claude Code CLI reference
7271
- `openclaw.md` - OpenClaw multi-channel assistant
7372
- `headless-dispatch.md` - Parallel agent dispatch

.agents/tools/build-agent/build-agent.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,25 +1062,4 @@ Monitor your API usage for cache hit rates. High cache hits indicate:
10621062
10631063
See `build-agent/agent-review.md` for systematic review sessions. It covers instruction budgets, universal applicability, duplicates, code examples, AI-CONTEXT blocks, stale content, and MCP configuration.
10641064
1065-
## Oh-My-OpenCode Integration
10661065
1067-
When oh-my-opencode is installed, leverage these specialized agents for enhanced agent development:
1068-
1069-
| OmO Agent | When to Use | Example |
1070-
|-----------|-------------|---------|
1071-
| `@oracle` | Agent architecture review, design decisions | "Ask @oracle to review this agent's instruction structure" |
1072-
| `@librarian` | Find agent design patterns, AGENTS.md examples | "Ask @librarian for examples of well-structured AI agents" |
1073-
| `@document-writer` | Agent documentation, clear instructions | "Ask @document-writer to improve this agent's clarity" |
1074-
1075-
**Agent Design Workflow Enhancement**:
1076-
1077-
```text
1078-
1. Design → Build-Agent creates structure
1079-
2. Review → @oracle validates architecture
1080-
3. Examples → @librarian finds similar patterns
1081-
4. Polish → @document-writer improves clarity
1082-
5. Test → Deploy and validate
1083-
```text
1084-
1085-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
1086-
See `tools/opencode/oh-my-opencode.md` for installation.

.agents/tools/build-mcp/aidevops-plugin.md

Lines changed: 2 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tools:
2020
- **Status**: Design phase (not yet implemented)
2121
- **Purpose**: Native OpenCode plugin wrapper for aidevops
2222
- **Approach**: Thin wrapper that loads existing aidevops agents/MCPs
23-
- **Compatibility**: Works alongside oh-my-opencode
23+
- **Compatibility**: Works with OpenCode plugin system
2424

2525
**Key Decision**: aidevops is built for OpenCode (TUI, Desktop, Extension).
2626
The plugin provides additional OpenCode-specific enhancements.
@@ -319,8 +319,6 @@ const configSchema = z.object({
319319
qualityCheck: z.boolean().default(true),
320320
}).default({}),
321321

322-
// Integration with oh-my-opencode
323-
omoCompatibility: z.boolean().default(true),
324322
});
325323

326324
export type Config = z.infer<typeof configSchema>;
@@ -375,52 +373,6 @@ export async function loadConfig(): Promise<Config> {
375373
}
376374
```
377375

378-
## Integration with oh-my-opencode
379-
380-
### Compatibility Mode
381-
382-
When both plugins are installed:
383-
384-
```json
385-
// ~/.config/opencode/opencode.json
386-
{
387-
"plugin": [
388-
"oh-my-opencode",
389-
"aidevops-opencode",
390-
"opencode-antigravity-auth@latest"
391-
]
392-
}
393-
```
394-
395-
The aidevops plugin should:
396-
397-
1. **Detect OmO presence** and adjust behavior
398-
2. **Disable duplicate MCPs** (Context7 if OmO provides it)
399-
3. **Namespace agents** to avoid conflicts
400-
4. **Complement hooks** rather than duplicate
401-
402-
```typescript
403-
// src/index.ts - OmO compatibility
404-
async setup(input: PluginInput) {
405-
const config = await loadConfig();
406-
407-
// Check if oh-my-opencode is loaded
408-
const omoLoaded = input.plugins?.includes('oh-my-opencode');
409-
410-
if (omoLoaded && config.omoCompatibility) {
411-
// Disable MCPs that OmO provides (websearch_exa, context7, grep_app)
412-
// aidevops doesn't add these - OmO handles them
413-
// We just need to avoid conflicts with agent names
414-
config.disabledMcps.push('context7', 'websearch_exa');
415-
416-
// Note: OmO provides grep_app for GitHub search
417-
// aidevops uses @github-search subagent (CLI-based, zero token overhead)
418-
}
419-
420-
// Continue with setup...
421-
}
422-
```
423-
424376
## Implementation Roadmap
425377

426378
### Phase 1: Core Plugin (MVP)
@@ -442,12 +394,6 @@ async setup(input: PluginInput) {
442394
- [ ] MCP health monitoring
443395
- [ ] Integration with aidevops update system
444396

445-
### Phase 4: OmO Integration
446-
447-
- [ ] Compatibility detection
448-
- [ ] Shared configuration
449-
- [ ] Combined workflows
450-
451397
## Decision: Plugin vs Current Approach
452398

453399
### Keep Current Approach (Recommended for Now)
@@ -469,10 +415,9 @@ Build the plugin when:
469415
1. OpenCode becomes dominant AI CLI tool
470416
2. Users request native plugin experience
471417
3. Hooks become essential (quality gates, etc.)
472-
4. oh-my-opencode integration needs tighter coupling
418+
4. Plugin hooks become essential (quality gates, etc.)
473419

474420
## References
475421

476422
- [OpenCode Plugin SDK](https://opencode.ai/docs/plugins)
477-
- [oh-my-opencode Source](https://github.com/code-yeongyu/oh-my-opencode)
478423
- [aidevops Framework](https://github.com/marcusquinn/aidevops)

.agents/tools/build-mcp/build-mcp.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -208,33 +208,4 @@ Use Context7 MCP for current documentation:
208208
- ElysiaJS: `resolve library-id for elysia`
209209
- Bun: `resolve library-id for bun`
210210

211-
## Oh-My-OpenCode Integration
212211

213-
When oh-my-opencode is installed, leverage these specialized agents for enhanced MCP development:
214-
215-
| OmO Agent | When to Use | Example |
216-
|-----------|-------------|---------|
217-
| `@oracle` | MCP architecture, API design, debugging strategy | "Ask @oracle to review this MCP tool structure" |
218-
| `@librarian` | Find MCP examples, SDK patterns, similar implementations | "Ask @librarian for MCP tool registration examples" |
219-
| `@frontend-ui-ux-engineer` | If MCP has web UI components | "Ask @frontend-ui-ux-engineer to build the MCP dashboard" |
220-
221-
**MCP Development Workflow Enhancement**:
222-
223-
```text
224-
1. Design → @oracle reviews API structure
225-
2. Patterns → @librarian finds SDK examples
226-
3. Implement → Build-MCP creates server
227-
4. Test → MCP Inspector validates
228-
5. Deploy → Configure in AI assistants
229-
```
230-
231-
**LSP Tools for TypeScript MCP Development**:
232-
233-
When oh-my-opencode is installed, use LSP tools for better TypeScript development:
234-
- `lsp_goto_definition` - Navigate to MCP SDK types
235-
- `lsp_find_references` - Find all tool usages
236-
- `lsp_rename` - Safely rename tools across codebase
237-
- `lsp_diagnostics` - Catch TypeScript errors before runtime
238-
239-
**Note**: These agents require [oh-my-opencode](https://github.com/code-yeongyu/oh-my-opencode) plugin.
240-
See `tools/opencode/oh-my-opencode.md` for installation.

0 commit comments

Comments
 (0)