Skip to content

Opencode integration#606

Open
rapidstartup wants to merge 5 commits intogarrytan:mainfrom
rapidstartup:opencode-integration
Open

Opencode integration#606
rapidstartup wants to merge 5 commits intogarrytan:mainfrom
rapidstartup:opencode-integration

Conversation

@rapidstartup
Copy link
Copy Markdown

feat: add OpenCode integration for gstack skills
This PR adds OpenCode integration to gstack, allowing gstack skills to be used in OpenCode via the command dialog (Ctrl+K).

What This Adds

  1. OpenCode Adapter for Paperclip (packages/adapters/opencode/)
    • Server-side execution logic for running OpenCode in non-interactive mode
    • Environment validation and configuration handling
    • Output parsing and session management
    • UI configuration components for agent setup
    • CLI output formatting for terminal monitoring
  2. OpenCode Command Files (opencode/commands/gstack/)
    • Makes all gstack skills discoverable in OpenCode's command dialog
    • Includes commands for: office-hours, plan-ceo-review, plan-eng-review, design-consultation, review, debug, ship, qa
    • Each command file follows OpenCode's custom command format with descriptions, allowed tools, and execution context
  3. Integration with Existing GSD Commands
    • Leverages the existing get-shit-done commands that already work in OpenCode
    • Provides unified access to both gstack and gsd functionality

Why This Integration Was Created

I created this OpenCode integration so I could use gstack skills in Paperclip and Vibedash.app for better ideation workflows. This allows:

  • Using gstack's structured skills (office-hours, plan-ceo-review, etc.) within OpenCode sessions
  • Accessing these skills via OpenCode's command dialog (Ctrl+K) and similar to Claude Code's slash commands
  • Combining gstack ideation with OpenCode's multiple AI provider support and TUI features
  • Creating seamless workflows between ideation (gstack skills) and implementation (OpenCode coding assistance)

How It Works After Installation

  1. Press Ctrl+K or / slash key in OpenCode to open the command dialog
  2. Type "gstack:" to see all available gstack commands
  3. Select any gstack skill (e.g., "gstack:office-hours")
  4. Optionally provide input when prompted
  5. Watch the skill execute and return results to your OpenCode session
  6. Continue working with the results in your OpenCode chat
    This integration maintains full compatibility with existing Claude Code usage while extending gstack's reach to OpenCode users.
    Related to: gstack's mission to provide AI engineering workflows across different agent runtimes.

- Add OpenCode adapter for Paperclip agent system
- Add OpenCode command files for all gstack skills
- Enable gstack skills to be used in OpenCode via command dialog (Ctrl+K)
- Add OpenCode adapter for Paperclip agent system
- Add OpenCode command files for all gstack skills
- Enable gstack skills to be used in OpenCode via command dialog (Ctrl+K)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant