Skip to content

Refactor opencode into a shared workflow engine - #50080

Closed
pelikhan with Copilot wants to merge 5 commits into
mainfrom
copilot/refactor-opencode-support
Closed

pelikhan with Copilot wants to merge 5 commits into
mainfrom
copilot/refactor-opencode-support

Conversation

Copilot AI commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Opencode support was still wired into Go as a built-in engine. This moves it to declarative engine frontmatter so opencode behavior is maintained by a shared workflow instead.

  • Shared engine definition

    • Added .github/workflows/shared/opencode.md with the opencode engine metadata, install/config/execution behavior, MCP config path, and provider-aware domains.
    • Updated smoke-opencode.md to import the shared engine.
  • Go engine cleanup

    • Removed opencode-specific constants, default version/model env vars, registry wiring, validation branches, domain tables, and CLI help/completion entries.
    • Kept behavior-defined engine support generic through declarative frontmatter.
  • Declarative domain support

    • Added behaviors.domains so shared behavior-defined engines can declare base and provider-specific network domains without Go changes.
imports:
  - shared/opencode.md

model: copilot/claude-sonnet-4.5

Copilot AI and others added 2 commits August 3, 2026 19:52
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Refactor opencode into shared workflow engine Refactor opencode into a shared workflow engine Aug 3, 2026
Copilot AI requested a review from pelikhan August 3, 2026 20:04
env:
GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"
GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"
GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .pi"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot the compiler should populate folders/files with the information in opencode.md

env:
GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .opencode .pi"
GH_AW_AGENT_FILES: "AGENTS.md ANTIGRAVITY.md CLAUDE.md GEMINI.md PI.md opencode.jsonc"
GH_AW_AGENT_FOLDERS: ".agents .antigravity .claude .codex .gemini .github .pi"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot only include the folders for the active agent.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan August 3, 2026 20:31
@pelikhan

pelikhan commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

@copilot Keep working, recompile

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Keep working, recompile

Recompiled and fixed the shared OpenCode schema validation gap in d2f0452. make recompile and make agent-report-progress both pass, and lock files are in sync.

@pelikhan

pelikhan commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

@copilot Merge main and recompile.

…code-support

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan closed this Aug 3, 2026
@pelikhan
pelikhan deleted the copilot/refactor-opencode-support branch August 18, 2026 23:22
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.

2 participants