feat(opencode): add PowerContext integration - #1329
Merged
Merged
Conversation
happy-v587
marked this pull request as ready for review
August 24, 2026 04:23
Contributor
Author
|
@PsiACE PTAL |
Teingi
reviewed
Aug 24, 2026
Teingi
reviewed
Aug 24, 2026
Teingi
reviewed
Aug 24, 2026
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.
Which issue or RFC does this PR close?
Closes #1330.
Tracking issue: #1213.
Rationale for this change
PowerContext supports several coding-agent hosts but did not have a native OpenCode integration. This adds project-scoped recall, prompt capture, and curated durable-context tools while keeping the PowerContext Server as the single runtime and storage boundary.
What changes are included in this PR?
pc_*tools.powercontext setup opencodeandpowercontext doctor opencode, including OpenCode version validation and an ownership-protected globalproject-contextSkill installation.openapi/powercontext.yamland add TypeScript, CLI, contract, packaging, and isolated real-OpenCode validation.Are there any user-facing changes?
Yes. Users can install the integration with:
The plugin requires OpenCode 1.18.21 or newer in the 1.x line. Configuration uses the
POWERCONTEXT_OPENCODE_environment prefix. This change does not modify the HTTP API, persisted formats, or existing integration behavior.How was this change tested?
make checkmake test— 644 passed, 13 skippedmake contract-test— 29 passedmake opencode-test— 10 Vitest tests, TypeScript check, and bundle buildmake docs-testmake buildpowercontext setup opencodefollowed by a successful three-checkpowercontext doctor opencodeAI usage statement
OpenAI Codex (GPT-5) was used to inspect the repository and OpenCode plugin contract, implement the integration, write tests and documentation, resolve the latest-base conflicts, and run verification.