Repository navigation
Conversation
|
Hey @dikoga — welcome to Open Brain Source! 👋 Thanks for submitting your first PR. The automated review will run shortly and check things like metadata, folder structure, and README completeness. If anything needs fixing, the review comment will tell you exactly what. Once the automated checks pass, a human admin will review for quality and clarity. Expect a response within a few days. If you have questions, check out CONTRIBUTING.md or open an issue. |
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.
OpenCode currently needs explicit memory-tool calls to retrieve OB1 context. This contribution adds a native OpenCode V2 plugin that recalls bounded, project-scoped memory before primary model requests optionally saves compact findings after successful completion or before compaction, and can use an explicitly selected reviewer to approve supported routine findings as generated evidence. OpenCode keeps its own session history and compaction; OB1 remains the shared durable memory backend.
Behavior and boundaries
Requirements
OpenCode 2.2.5, Node.js 22+, npm for building, a working OB1 Agent Memory schema/API, and an API credential supplied through the server environment or a protected file. The built plugin has no runtime npm dependencies. No specific model or paid model service is required.
Validation
npm test: 20 tests passed, covering scope/policy filtering, byte budgets, concurrent recall, failure backoff, capture opt-in, reasoning/tool exclusion, duplicate checkpoints, retry identities, reviewer failures, exact source quotes, forbidden review actions, and intervening human edits.npm run check: passed.git diff --check: passed.npm audit --omit=dev: zero vulnerabilities. The pinned upstream SDK's build-time dependency tree currently reports moderate advisories; it is not bundled into the plugin runtime.Completion checkpoints are best effort and need the OpenCode server to remain alive. Generated findings stay review-required unless the operator explicitly enables evidence-only model review; no automatic verdict becomes a trusted instruction. Secret-pattern checks are defense in depth, not comprehensive redaction. Capture should only be enabled for projects whose findings may be retained.