add OpenCode/Crush adapter support and mode-specific agents - #128
Merged
Conversation
- Add OpenCode/Crush AI editor support and implement mode-specific agents for PLAN/ACT/EVAL - Add OpenCode/Crush configuration files (opencode.json, crush.json) - Environment variable-based secret management (FIGMA_API_KEY, GITHUB_TOKEN) - MCP server integration configuration - Add OpenCode custom commands (.opencode/commands/) - plan-feature.md: PLAN mode workflow - implement-tdd.md: ACT mode TDD implementation code-review.md: EVAL mode code review - Add OpenCode adapter documentation (opencode.md, opencode-skills.md) - Add mode-specific agents (plan-mode.json, act-mode.json, eval-mode.json) - Enhance keyword service: Add agent info and delegate info return functionality - Strengthen rules service tests close #127
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add OpenCode/Crush adapter support and mode-specific agents
📋 Summary
This PR adds comprehensive support for OpenCode and Crush AI editors, including configuration files, custom commands, adapter documentation, and introduces mode-specific agents (PLAN/ACT/EVAL) that delegate to appropriate implementation agents.
🎯 Reason for Change
OpenCode/Crush Adapter Support
.ai-rules/system integrationMode-Specific Agents
Security Improvement
🔧 Key Changes
1. OpenCode/Crush Configuration Files
OpenCode Configuration (
opencode.json)Crush Configuration (
crush.json)contextPathsinstead ofinstructionsskills_paths,auto_suggest_skills)2. Custom Commands (
.opencode/commands/)plan-feature.md
implement-tdd.md
code-review.md
3. Adapter Documentation
opencode.md (457 lines)
opencode-skills.md (263 lines)
.ai-rules/skills/→ OpenCode usage).opencode/README.md
4. Mode-Specific Agents
plan-mode.json
frontend-developerfor implementationact-mode.json
frontend-developerfor implementationeval-mode.json
code-reviewerfor evaluation5. Keyword Service Enhancements
Agent Information Return
MODE_AGENTSconstant mapping modes to agent filesparseMode()now returnsagentfield with agent file pathdelegates_tofield indicating delegate agent namedelegate_agent_infofield with full delegate agent detailsgetAgentInfo()method for loading agent informationType System Updates
AgentInfotype for agent informationParseModeResultwith optional agent fieldsKeywordModesConfigto include agent and delegate information6. Rules Service Enhancements
Test Coverage Improvements
7. Documentation Updates
agents/README.md
keyword-modes.json
agentfield pointing to mode agent JSON filedelegates_tofield indicating delegate agentMode Agents
1. Verify Agent Structure
2. Test Keyword Service Agent Return
Custom Commands
1. Verify Command Files Exist
2. Test Command Content
.ai-rules/standards🔍 Review Checklist
Configuration Files
opencode.jsonuses environment variables for secretscrush.jsonfollows Crush schema formatCustom Commands
.ai-rules/standardsAdapter Documentation
opencode.mdcovers all integration scenariosopencode-skills.mdmaps all available skillsMode-Specific Agents
delegates_tofieldKeyword Service
parseMode()returns agent informationdelegates_tofield is correctly populateddelegate_agent_infois loaded correctlySecurity
.gitignoreexcludes sensitive configuration files if needed💡 Usage Examples
OpenCode Setup
1. Basic Configuration
2. Using Mode Agents
3. Using Custom Commands
/plan-feature "사용자 인증" /implement-tdd /code-reviewCrush Setup
1. Basic Configuration
2. Using Shortcuts
Skills Integration
1. Direct Skill Invocation
2. Agent Integration
🎯 Expected Impact
User Experience
.ai-rules/system across different AI editorsDeveloper Productivity
Code Quality
.ai-rules/standards📝 Migration Guide
For Existing OpenCode Users
For New Users
opencode.jsonorcrush.jsonas starting pointFIGMA_API_KEYandGITHUB_TOKEN.opencode/README.mdfor initial setupopencode.mdfor comprehensive integrationFrom OpenCode to Crush
opencode.jsontocrush.jsonbrew install charmbracelet/tap/crush🔗 Related Issues
📚 References