- Notifications
You must be signed in to change notification settings - Fork 46
feat: add opencode adapter#16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add opencode adapter #16
Uh oh!
There was an error while loading. Please reload this page.
Conversation
KevinWu098 commented Nov 17, 2025 • edited by coderabbitai bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by coderabbitai bot
Uh oh!
There was an error while loading. Please reload this page.
coderabbitaibot commented Nov 17, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
📝 WalkthroughWalkthroughAdds an OpenCode AI adapter: a new Bash wrapper script that checks for the OpenCode CLI and runs it in a target directory; updates Changes
Sequence Diagram(s)sequenceDiagram participant User as Caller (script/CLI) participant Adapter as adapters/ai/opencode.sh participant CLI as opencode (system) User->>Adapter: ai_start(path, args...) Adapter->>Adapter: ai_can_start()? (command -v opencode) alt opencode missing Adapter-->>User: log info/error (missing opencode) else opencode available Adapter->>Adapter: validate path exists alt path missing Adapter-->>User: log error (missing dir) else path ok Adapter->>CLI: (subshell) cd path && opencode args... CLI-->>Adapter: exit status / output Adapter-->>User: return status end end Estimated code review effort🎯 2 (Simple) | ⏱️ ~10–15 minutes
Poem
Pre-merge checks and finishing touches✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🧬 Code graph analysis (1)adapters/ai/opencode.sh (1)
🔇 Additional comments (5)
Comment |
8592e38 to 678bcd2Compare678bcd2 to 884008dCompare0d5363e into coderabbitai:mainUh oh!
There was an error while loading. Please reload this page.
Summary
Adds support for OpenCode to gtr.
Testing
Tested locally on MacOS.
Open in editor (if testing adapters)gtr go 1for main repogtr go <branch>for worktreesSummary by CodeRabbit
New Features
User Experience
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.