Skip to content

feat: OpenCode Observability Plugin#73

Open
billxbf wants to merge 17 commits into
NVIDIA:mainfrom
billxbf:feature/bx-opencode
Open

feat: OpenCode Observability Plugin#73
billxbf wants to merge 17 commits into
NVIDIA:mainfrom
billxbf:feature/bx-opencode

Conversation

@billxbf
Copy link
Copy Markdown

@billxbf billxbf commented May 8, 2026

Overview

  • I confirm this contribution is my own work, or I have the right to submit it under this project's license.
  • I searched existing issues and open pull requests, and this does not duplicate existing work.

Details

  • Adds integrations/opencode-plugin as an npm package for OpenCode server plugin usage.
  • Exports ATOF JSONL events and ATIF session trajectories.
  • Records config, session lifecycle, chat metadata, LLM request metadata, and successful tool spans.
  • Adds plugin tests, README usage docs, OpenCode integration docs, and an integration plan.
  • Quick interactive run path:
    • build crates/node
    • install or use stock opencode
    • write opencode.json with the plugin file URL
    • start opencode and inspect .nemoflow output

example opencode.json

{
  "plugin": [
    [
      "file://$NEMO_FLOW_REPO/integrations/opencode-plugin",
      {
        "enabled": true,
        "atofPath": "./.nemoflow/opencode.atof.jsonl",
        "atifPath": "./.nemoflow/opencode.atif.json",
        "logPath": "./.nemoflow/opencode-plugin.log"
      }
    ]
  ]
}

Where should the reviewer start?

Start with integrations/opencode-plugin/server.js, then review integrations/opencode-plugin/test/server.test.mjs.

Summary by CodeRabbit

  • New Features

    • Added OpenCode plugin for passive observability—captures plugin hooks and exports observability artifacts (ATOF, ATIF, and optional OpenTelemetry/OTLP traces)
  • Documentation

    • Added integration guide with end-to-end setup, configuration, and smoke-test workflow
    • Added plugin README with compatibility requirements and supported output formats
  • Chores

    • Updated project configuration to include new OpenCode plugin workspace

Review Change Stack

@billxbf billxbf requested review from a team as code owners May 8, 2026 19:22
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 8, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 8, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

This PR introduces a complete OpenCode observability plugin integration for NeMo Flow. The plugin captures OpenCode hook events and exports passive observability traces (ATOF/ATIF) through NeMo Flow's runtime, with configuration validation, session-scoped mark emission, tool span lifecycle tracking, and cleanup on shutdown.

Changes

OpenCode Plugin Integration

Layer / File(s) Summary
Workspace and package configuration
package.json, integrations/opencode/package.json
Registers nemo-flow-opencode as a workspace package with ESM entrypoint, Node.js engine constraint (>=20.0.0), test script, and dependency requirements for nemo-flow-node and @opencode-ai/plugin.
Plugin implementation and adapter logic
integrations/opencode/server.js
Core adapter implementation with option normalization, JSON/text logger with sensitive-field redaction, helpers for stable model/agent identifiers and session metadata, createNemoFlowAdapter managing session scope state and emitting NeMo Flow marks for hook events/chat messages/tool lifecycles, session flush with TTL-based deduplication, pending tool span tracking with recovered span creation, and shutdown behavior. Entry point createServerPlugin handles initialization, validation, cleanup registration, and pass-through fallback on config invalid or runtime load failure.
Plugin test suite
integrations/opencode/test/server.test.mjs
Eight test cases validating: initialization with valid config and hook capture; session lifecycle and message metadata propagation with redaction; missing session ID handling; disabled behavior; runtime load failure; removed exporter options; validation failure diagnostics; cleanup flushing and host clearing.
User documentation and guides
docs/integrate-frameworks/opencode.md, integrations/opencode/README.md
Integration guide covering installation, opencode.json configuration with plugin path and .nemoflow output directories, smoke-test workflow, output inspection with grep/jq examples, expected ATOF signal table, architecture and export sequence diagrams, pass-through scenarios, and API limits. Standalone plugin README documents configuration format, peer dependencies (@opencode-ai/plugin, hook version 1.14.40+), supported output types (ATOF/ATIF/OpenTelemetry), and current limitations from missing OpenCode hooks.
Repository configuration
.gitignore, docs/index.md, docs/integrate-frameworks/about.md
Excludes .nemoflow/ directories from version control; adds "OpenCode Plugin" entry to docs toctree and Integrate Frameworks About guide list.

🎯 3 (Moderate) | ⏱️ ~25 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed Title follows Conventional Commits format with 'feat' type and concise summary under 72 characters, correctly describing the primary addition of an OpenCode observability plugin.
Description check ✅ Passed Description includes confirmation checkboxes, clear details of changes, specific reviewer entry points, and example configuration, though it does not explicitly reference related issues.
Docstring Coverage ✅ Passed Docstring coverage is 85.29% which is sufficient. The required threshold is 80.00%.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added size:XL PR is extra large feat lang:js PR changes/introduces Javascript/Typescript code labels May 8, 2026
@billxbf
Copy link
Copy Markdown
Author

billxbf commented May 8, 2026

/retest

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@integrations/opencode-plugin/server.js`:
- Around line 214-216: The subscriber registered via
lib.registerSubscriber(using atofSubscriberName) writes with
fsSync.appendFileSync(options.atofPath, ...) with no error handling; wrap the
appendFileSync call inside a try/catch inside the subscriber callback, and on
error log or swallow the error (use existing logger or console.error) so
ENOSPC/EACCES or other sync I/O failures do not throw out of the event delivery
path; keep the callback signature and behavior otherwise unchanged so NeMo
Flow/framework behavior is preserved.
- Around line 33-60: The write function currently lets filesystem errors bubble
up and reject plugin hooks; wrap the entire body of write (the path-handling,
ensureParentDir, fs.appendFile and the console logging branches) in a try/catch
so any thrown error is swallowed (or downgraded to a non-fatal fallback) and
write always resolves; on fs failures fall back to console logging the same
formatted message (include PLUGIN_ID, message and toJsonSafe(extra)), and ensure
warnOnce/info/warn/error callers (and the seen set logic) continue to return a
resolved Promise rather than letting errors propagate from write (keep the
existing Promise.resolve() return for the seen shortcut). Use the existing
symbols write, PLUGIN_ID, logPath, ensureParentDir, fs.appendFile, toJsonSafe
and seen to locate where to add the try/catch and fallback.
- Around line 197-198: recentFlushes is an unbounded Map used as a 2s dedupe
cache and needs pruning; change its entries so each key maps to insertion
timestamp (or schedule a per-key setTimeout) and remove entries older than 2
seconds. Locate the recentFlushes usage in server.js (the const recentFlushes =
new Map() declaration and any code that checks/sets keys) and: when adding a
key, store Date.now() (or schedule a setTimeout to delete that key after
2000ms); when checking a key, consider it expired if its timestamp is >2000ms
old and delete it before proceeding; optionally add a short periodic cleanup
(setInterval) to remove stale keys if you choose timestamp-based approach.
Ensure the semantics of the dedupe window remain 2 seconds and that no other
code relies on Map values being non-timestamps.
- Around line 1-2: Replace the line-style SPDX header comments at the top of
integrations/opencode-plugin/server.js with a C-style comment block;
specifically, change the two leading single-line comments containing
"SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES.
All rights reserved." and "SPDX-License-Identifier: Apache-2.0" into a single /*
... */ block so the file has a C-style SPDX header as required by the repo's
licensing guidelines.
- Around line 251-259: In withStack, always restore the prior thread scope stack
instead of only when previous is truthy: capture priorStack via
lib.currentScopeStack(), set lib.setThreadScopeStack(session.stack) before
running callback, and in the finally block call
lib.setThreadScopeStack(previousStack) (even if previousStack is undefined) so
the thread scope is always reset; reference the withStack function and the
lib.currentScopeStack / lib.setThreadScopeStack calls to locate where to change
the restore logic.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: ff9f6b37-40d8-4c6f-8698-7fab042a2722

📥 Commits

Reviewing files that changed from the base of the PR and between cb849b9 and 1eb3d52.

📒 Files selected for processing (1)
  • integrations/opencode-plugin/server.js
📜 Review details
🧰 Additional context used
📓 Path-based instructions (12)
**/*.{js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use camelCase naming convention for Node.js code

Files:

  • integrations/opencode-plugin/server.js
**/*.{rs,go,js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include SPDX license headers in all Rust, Go, JavaScript, and TypeScript source files using C-style comment syntax

Files:

  • integrations/opencode-plugin/server.js
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use SONAR_IGNORE_START / SONAR_IGNORE_END markers only for documented false positives that cannot be resolved in code; keep ignored blocks small, add explanatory comments, and require reviewer sign-off

Files:

  • integrations/opencode-plugin/server.js
**/*.{md,markdown,py,sh,bash,js,ts,java,cpp,go,rust}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep package names, repo references, and build commands current in documentation

Files:

  • integrations/opencode-plugin/server.js
**/*.{md,markdown,py,sh,bash,js,ts,example}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Example commands must match current package names and paths

Files:

  • integrations/opencode-plugin/server.js
**/{integrations,integration,*-integration}/**

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

**/{integrations,integration,*-integration}/**: Keep NeMo Flow optional in framework integrations
Preserve the framework's original behavior when NeMo Flow is absent
Wrap tool and LLM paths at the correct framework boundary
Integration pattern must follow docs/integrate-frameworks/adding-scopes.md

Files:

  • integrations/opencode-plugin/server.js
{crates/adaptive/**,python/nemo_flow/{adaptive,plugin}.py,go/nemo_flow/{adaptive,**}/*.go,**/*.{ts,js,wasm}}

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Keep adaptive config schema, plugin lifecycle, and bindings in sync across crates/adaptive, core, bindings, Python (python/nemo_flow/adaptive.py and python/nemo_flow/plugin.py), Go (go/nemo_flow/adaptive and go/nemo_flow), and Node/WebAssembly helpers

Files:

  • integrations/opencode-plugin/server.js
**/*.{js,ts,tsx,jsx,py,rs,go,java,c,cpp,h,cc,cxx,cs,rb,php,swift,kt}

📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)

Changed files must be formatted with the language-native formatter

Files:

  • integrations/opencode-plugin/server.js
**/*.{rs,py,js,ts,go,sh,toml,yaml,yml,json,md,rst}

📄 CodeRabbit inference engine (AGENTS.md)

Keep SPDX headers on source, docs, scripts, and configuration files. The project is Apache-2.0.

Files:

  • integrations/opencode-plugin/server.js
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If Node.js language surface changed, always run Node.js test target even when Rust core did not change

Files:

  • integrations/opencode-plugin/server.js
**/*.{py,js,ts,tsx,go,rs,md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Format changed files with the language-native formatter before the final lint/test pass

Files:

  • integrations/opencode-plugin/server.js
**/*.{rs,py,js,ts,tsx,go}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

During iteration, prefer uv run pre-commit run --files <changed files...> for targeted validation

Files:

  • integrations/opencode-plugin/server.js

Comment thread integrations/opencode/server.js
Comment thread integrations/opencode/server.js
Comment thread integrations/opencode-plugin/server.js Outdated
Comment thread integrations/opencode-plugin/server.js Outdated
Comment thread integrations/opencode/server.js
Comment thread integrations/opencode-plugin/package.json Outdated
Comment thread integrations/opencode-plugin/package.json Outdated
Comment thread integrations/opencode-plugin/package-lock.json Outdated
Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread integrations/opencode/test/server.test.mjs Outdated
Comment thread integrations/opencode-plugin/README.md Outdated
Comment thread integrations/opencode/server.js Outdated
Comment thread integrations/opencode/server.js Outdated
billxbf and others added 2 commits May 12, 2026 00:04
Co-authored-by: Will Killian <2007799+willkill07@users.noreply.github.com>
Signed-off-by: Binfeng Xu <billxbf@gmail.com>
Co-authored-by: Will Killian <2007799+willkill07@users.noreply.github.com>
Signed-off-by: Binfeng Xu <billxbf@gmail.com>
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

♻️ Duplicate comments (1)
integrations/opencode-plugin/package.json (1)

32-32: 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Consider linking to integration-specific documentation.

The homepage currently points to the general NeMo-Flow README. Per previous review feedback, consider linking directly to the OpenCode integration documentation if available (e.g., a specific section or doc page for this plugin).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@integrations/opencode-plugin/package.json` at line 32, The package.json
"homepage" field for the OpenCode plugin points to the general NeMo-Flow README;
update the "homepage" value in the integrations/opencode-plugin package.json to
a URL that points directly to the OpenCode integration documentation (e.g., a
specific section, doc page, or repo path for the OpenCode plugin) or, if no
dedicated doc exists, add a short internal doc and link to it; modify the
"homepage" string to that integration-specific URL so the package links to the
correct documentation.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/integrate-frameworks/opencode.md`:
- Around line 22-43: The Mermaid diagram block (the ```{mermaid} ... flowchart
LR ... ``` section) is missing an introductory sentence; add a complete lead-in
sentence immediately before the ```{mermaid} block that briefly explains what
the diagram illustrates (e.g., "The following diagram shows the flow between
Developer, Stock OpenCode, the NeMo Flow plugin and runtime and the ATOF/ATIF
exports.") so the diagram is properly introduced and follows the documentation
guideline for complete-sentence introductions.
- Around line 50-51: Update the sentence that reads "Build the NeMo Flow Node.js
binding before loading the plugin from a source checkout. `crates/node` is under
the NeMo Flow repository root:" by formatting the directory path crates/node as
inline code (monospace) so it appears as `crates/node`; locate the sentence
starting with "Build the NeMo Flow Node.js binding..." in
docs/integrate-frameworks/opencode.md and replace the plain text path with the
inline-code version.

In `@integrations/opencode-plugin/package.json`:
- Line 47: The package.json currently references a local file dependency
"nemo-flow-node": "file:../../crates/node" which will break npm publish; fix it
by either replacing that file: spec with a published semver (e.g.,
"nemo-flow-node": "x.y.z") or add a prepublishOnly script that rewrites the
dependency to a published version before packing, or publish nemo-flow-node
separately and reference it by version, or mark this package as "private": true
and document that it is workspace-only; update package.json accordingly and
ensure any publish scripts or README reflect the chosen approach.
- Around line 7-16: Remove the redundant "default" export conditions from the
package.json exports map since "type":"module" makes "import" sufficient; update
the exports entries for "." and "./server" to only use the "import":
"./server.js" condition so that both export paths point to server.js with a
single import condition, ensuring no other keys are changed.
- Line 44: The engines entry in package.json includes a nonstandard "opencode"
constraint which npm ignores; remove the "opencode" key from the engines object
and either add an appropriate entry under peerDependencies or devDependencies
(e.g., "opencode": ">=1.14.40") if you need package-level version enforcement,
or move it to a documentation-only field (e.g., a custom "metadata" or README)
if it's merely informational; update the package.json JSON structure accordingly
and ensure package installs still validate "node" and "npm" under the existing
engines field.
- Around line 46-48: The package.json currently lists "nemo-flow-node" as a hard
dependency; change it to an optional dependency (move "nemo-flow-node" from
"dependencies" into "optionalDependencies") so the runtime try/catch dynamic
import behavior (the code that dynamically imports "nemo-flow-node" and returns
{} on failure) can gracefully fall back, or alternatively move it to
"peerDependencies" if the host framework must supply it; update only the
dependency section and leave the dynamic import logic unchanged.

---

Duplicate comments:
In `@integrations/opencode-plugin/package.json`:
- Line 32: The package.json "homepage" field for the OpenCode plugin points to
the general NeMo-Flow README; update the "homepage" value in the
integrations/opencode-plugin package.json to a URL that points directly to the
OpenCode integration documentation (e.g., a specific section, doc page, or repo
path for the OpenCode plugin) or, if no dedicated doc exists, add a short
internal doc and link to it; modify the "homepage" string to that
integration-specific URL so the package links to the correct documentation.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 3a4c7fc0-c8cb-432c-9ef4-a7c4abadf751

📥 Commits

Reviewing files that changed from the base of the PR and between 1eb3d52 and 373d2f5.

📒 Files selected for processing (2)
  • docs/integrate-frameworks/opencode.md
  • integrations/opencode-plugin/package.json
📜 Review details
🧰 Additional context used
📓 Path-based instructions (21)
**/{integrations,integration,*-integration}/**

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

**/{integrations,integration,*-integration}/**: Keep NeMo Flow optional in framework integrations
Preserve the framework's original behavior when NeMo Flow is absent
Wrap tool and LLM paths at the correct framework boundary
Integration pattern must follow docs/integrate-frameworks/adding-scopes.md

Files:

  • integrations/opencode-plugin/package.json
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst,txt}: Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.
Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as 'here' or 'read more.'
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical documentation.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented documentation unless the source, platform, or legal guidance explicitly requires them.
Do not add trademark symbols to NeMo Flow learning documentation by default.
Do not rewrite API names, package names, command flags, or code literals for style reasons.

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.{md,markdown,rst}: Use title case consistently in technical documentation headings
Avoid quotation marks, ampersands, and exclamation marks in headings
Keep product, event, research, and whitepaper names in their official title case
Use title case for table headers
Do not force social-media sentence case into technical docs
Use monospace formatting for code elements, commands, parameters, package names, and expressions
Use monospace formatting for directories, file names, and paths
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Use quotation marks for error messages and strings in documentation
Use bold formatting for UI buttons, menus, fields, and labels in documentation
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use in documentation
Use italics for publication titles in documentation
Use plain text formatting for keyboard shortcuts in documentation
Prefer [NVIDIA/NeMo](link) format for GitHub repository references over generic phrases like 'the GitHub repo'
Introduce every code block with a complete sentence
Do not make a code block complete the grammar of the previous sentence
Do not continue a sentence after a code block
Use syntax highlighting when the format supports it for code blocks
Avoid the word 'snippet' unless the surrounding docs already use it as a term of art
Keep inline method, function, and class references consistent with nearby docs, omitting empty parentheses for prose readability when no call is shown
Use descriptive anchor text that matches the destination title when possible for links
Avoid raw URLs in running text in documentation
Avoid generic link anchors such as 'here,' 'this page,' and 'read more' in documentation
Include the acronym in link text if a linked term includes an acronym
Do not link long sentences or multiple sentences in documentation
Avoid links that pull readers away from a procedure unles...

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{html,md}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include SPDX license headers in HTML and Markdown files using HTML comment syntax

Files:

  • docs/integrate-frameworks/opencode.md
docs/**/*.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run ./scripts/build-docs.sh for documentation site changes

docs/**/*.md: Relevant getting-started or reference docs must be updated when examples change
Release-policy docs must point to GitHub Releases as the only release-history source of truth

docs/**/*.md: Use title case for headings in technical documentation
Introduce code blocks, tables, and lists with complete lead-in sentences in documentation

Files:

  • docs/integrate-frameworks/opencode.md
**/*.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run Markdown link checking via lychee for README.md, CONTRIBUTING.md, and docs/ through pre-commit hooks

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,py,sh,bash,js,ts,java,cpp,go,rust}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep package names, repo references, and build commands current in documentation

Files:

  • docs/integrate-frameworks/opencode.md
{RELEASING.md,CHANGELOG.md,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep release-process and release-notes guidance in repo-maintainer docs such as RELEASING.md, not as user-facing docs pages or CHANGELOG.md

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,py,sh,bash}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep stable user-facing wrappers at scripts/ root in docs and examples; only point at namespaced helper paths when documenting internal maintenance work

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,py,sh,bash,js,ts,example}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Example commands must match current package names and paths

Files:

  • docs/integrate-frameworks/opencode.md
docs/integrate-frameworks/**/*.md

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Documentation must be updated if activation or usage of the integration changed

Files:

  • docs/integrate-frameworks/opencode.md
{scripts/*.sh,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Use root ./scripts/*.sh commands in docs and contributor guidance as documented, with implementations under scripts/third-party/

Files:

  • docs/integrate-frameworks/opencode.md
{docs/**,examples/**,crates/adaptive/**,python/nemo_flow/**,go/nemo_flow/**,**/{example,component}.{ts,tsx,js,rs,py,go}}

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Any new adaptive component kind must have documentation, examples, and binding coverage across all supported languages

Files:

  • docs/integrate-frameworks/opencode.md
{README*,CHANGELOG*,docs/**/*.{md,rst,txt},examples/**/*,*.md}

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update documentation, examples, and getting-started guides with new package/module/crate names after rename operations

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{md,txt,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)

**/*.{md,txt,rst}: Ensure commands, package names, file paths, and APIs in documentation are correct and not stale; flag incorrect or outdated information as blocking issues
Ensure examples and procedures in documentation will execute successfully with current APIs and commands
Use consistent user-facing terminology throughout documentation that matches current repo terminology
Capitalize NVIDIA correctly in all documentation and public-facing text
Format code, commands, paths, and filenames as inline code (monospace) in documentation
Use descriptive anchor text for links instead of bare URLs or weak labels like 'here' in documentation
Prefer active voice, present tense, short sentences, and plain English in documentation
Structure documentation procedures as imperative steps that are easy to scan and not too long for a single sequence
Prefer 'after' instead of 'once' for temporal references in documentation
Use 'can' instead of 'may' when describing possibility (rather than permission) in documentation
Avoid ambiguous numeric dates and ordinal dates in documentation body text

Files:

  • docs/integrate-frameworks/opencode.md
{README.md,docs/**/*.md,examples/**/*.{js,ts,py,go,rs}}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Keep documentation and examples synchronized with current install, import, and build commands

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{py,js,ts,tsx,go,rs,md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Format changed files with the language-native formatter before the final lint/test pass

Files:

  • docs/integrate-frameworks/opencode.md
{README.md,CONTRIBUTING.md,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

For docs-only changes, run targeted checks only if commands, package names, or examples changed. Use just docs for docs-site builds and just docs-linkcheck when links changed

Files:

  • docs/integrate-frameworks/opencode.md
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • docs/integrate-frameworks/opencode.md
🔇 Additional comments (4)
docs/integrate-frameworks/opencode.md (3)

68-70: Inconsistent package identifier.

Line 69 mentions the published package as @nvidia/nemoflow-opencode-plugin, but the configuration example at line 80 uses nemo-flow-opencode. These identifiers should match the actual published package name.


92-94: Runtime failure scenario documented.

The documentation describes pass-through behavior when nemo-flow-node is missing or fails to initialize. This was previously questioned as unnecessary if nemo-flow-node is a declared dependency of the plugin package.


248-263: Demo video script in user-facing documentation.

This section provides a storyboard for recording a walkthrough video. It may be more appropriate for internal contributor documentation or marketing materials rather than user-facing integration guides.

integrations/opencode-plugin/package.json (1)

50-50: ⚡ Quick win

Verify @opencode-ai/plugin version 1.14.40 exists.

The package specifies @opencode-ai/plugin@>=1.14.40 as a peer dependency and ^1.14.40 as a dev dependency. Confirm that version 1.14.40 exists in the npm registry and that this is the correct minimum version for the plugin API surface used in server.js.

What is the latest version of `@opencode-ai/plugin` on npm and does version 1.14.40 exist?

Also applies to: 53-53

Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread integrations/opencode/package.json
Comment thread integrations/opencode-plugin/package.json Outdated
Comment thread integrations/opencode/package.json
Comment thread integrations/opencode-plugin/package.json Outdated
@willkill07 willkill07 added Feature a new feature and removed feat labels May 12, 2026
@willkill07 willkill07 added this to the 0.3 milestone May 13, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/integrate-frameworks/opencode.md`:
- Around line 8-10: Add an inline link on the first occurrence of the product
name "OpenCode" in the sentence that begins "NeMo Flow integrates with
OpenCode..." so the first mention points to OpenCode's official project page
(replace plain text "OpenCode" with a hyperlink to the project's URL), leaving
subsequent mentions unchanged; update the sentence where "OpenCode" appears to
use the linked form.
- Around line 15-16: Update the sentence that reads "The generic NeMo Flow
`observability` plugin config controls ATOF, ATIF, OpenTelemetry, and
OpenInference export." to spell out the project-specific acronyms on first use:
replace the first mentions of ATOF and ATIF with their full forms followed by
the acronym in parentheses (e.g., "Full Term for ATOF (ATOF)" and "Full Term for
ATIF (ATIF)"), keep the acronyms for subsequent references, and leave
OpenTelemetry and OpenInference unchanged; locate and edit the phrase containing
`observability`, `ATOF`, and `ATIF`.

In `@integrations/opencode/README.md`:
- Around line 77-78: Update the README line to use the full configuration key
path for openinference to match the preceding item: replace the standalone
`openinference` with `plugins.components[].config.openinference` so readers can
copy the exact field; ensure the exact token
`plugins.components[].config.openinference` is used in the same style as
`plugins.components[].config.opentelemetry` for consistency.
- Around line 8-10: Update the first occurrence of the token "OpenCode" in the
README to be a Markdown link to the official OpenCode project (wrap the first
"OpenCode" instance with the project's canonical URL, e.g.,
[OpenCode](https://opencode.dev) or the official repo URL), leaving subsequent
mentions unchanged; ensure the link text remains "OpenCode" and the surrounding
sentence formatting is preserved in the README heading/paragraph where
"OpenCode" is first used.

In `@integrations/opencode/server.js`:
- Around line 50-53: Console logging prints the raw extra object (variable
extra) and can leak sensitive fields; use the already-sanitized payload (e.g.,
record.extra or the result of toJsonSafe(extra)) when writing to console instead
of extra so the PLUGIN_ID log branches (text / level) print the redacted data
rather than the original object.
- Around line 425-460: Guard all NeMo Flow runtime/exporter calls so failures
degrade to warn-only: wrap the lib.pushScope call (where session.scope is set
inside withStack in the session initialization) and the lib.event call inside
emitMark in try/catch blocks, and do the same for lib.toolCall and
lib.toolCallEnd usages referenced elsewhere (around the 593-638 region); on
exception call logger.warnOnce(...) with a clear message and return early so the
hook becomes a no-op but does not reject the integration. Ensure you only catch
errors from NeMo calls (leave other logic unchanged) and preserve existing
return values/flow when a NeMo call fails.
- Around line 99-105: The plugin currently enables by default but never
registers an observability exporter because normalizePluginHostConfig(baseDir,
rawOptions.plugins) falls back to components: [] and the old shortcuts
atofPath/atifPath are rejected; modify the return value construction to ensure
an observability component is registered when none exist: when
normalizePluginHostConfig(...) yields no observability components add a default
component (e.g., an observability exporter configured with
resolveOutputPath(baseDir, rawOptions.atofPath ?? rawOptions.atifPath ??
"./.nemoflow/default.atof")) or map the removed shortcuts (rawOptions.atofPath /
rawOptions.atifPath) into a components entry so that the initialized plugins
list includes a writer; update the code near the existing rejectRemovedOption
calls and the object returned from normalizePluginHostConfig to perform this
seeding/mapping.

In `@integrations/opencode/test/server.test.mjs`:
- Around line 326-336: The test currently dereferences the result of
runtime.events.find(...) into message.metadata without confirming the event
exists; update the checks to first assert the found event is present (e.g.,
assert.ok(message, 'expected opencode.chat.message event')) before accessing
nested fields, then proceed to assert message.metadata.sessionID, agent, model,
etc.; apply the same pattern for the other occurrence referenced (the find(...)
used at lines 440-446) so both places validate the event object exists before
dereferencing its metadata.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Enterprise

Run ID: 10f91bd2-bf59-428b-8142-ba6e5153cd07

📥 Commits

Reviewing files that changed from the base of the PR and between 6ebc939 and f188489.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • docs/integrate-frameworks/opencode.md
  • integrations/opencode/README.md
  • integrations/opencode/package.json
  • integrations/opencode/server.js
  • integrations/opencode/test/server.test.mjs
  • package.json
📜 Review details
🧰 Additional context used
📓 Path-based instructions (32)
{Cargo.toml,setup.py,setup.cfg,pyproject.toml,go.mod,go.sum,package.json,package-lock.json,yarn.lock,pom.xml,*.gradle}

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update repository manifest files (Cargo.toml, setup.py, go.mod, package.json, etc.) with new package/crate names during rename operations

Files:

  • package.json
{Cargo.toml,pyproject.toml,go/nemo_flow/go.mod,package.json,package-lock.json,crates/node/package.json}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Maintain consistent package names, import paths, and module names across Rust, Python, Go, Node, and WebAssembly workspaces in NeMo Flow

Files:

  • package.json
**/{integrations,integration,*-integration}/**

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

**/{integrations,integration,*-integration}/**: Keep NeMo Flow optional in framework integrations
Preserve the framework's original behavior when NeMo Flow is absent
Wrap tool and LLM paths at the correct framework boundary
Integration pattern must follow docs/integrate-frameworks/adding-scopes.md

Files:

  • integrations/opencode/package.json
  • integrations/opencode/README.md
  • integrations/opencode/server.js
  • integrations/opencode/test/server.test.mjs
**/*.{md,rst,html,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

**/*.{md,rst,html,txt}: Always spell NVIDIA in all caps. Do not use Nvidia, nvidia, nVidia, nVIDIA, or NV.
Use an NVIDIA before a noun because the name starts with an 'en' sound.
Do not add a registered trademark symbol after NVIDIA when referring to the company.
Use trademark symbols with product names only when the document type or legal guidance requires them.
Verify official capitalization, spacing, and hyphenation for product names.
Precede NVIDIA product names with NVIDIA on first mention when it is natural and accurate.
Do not rewrite product names for grammar or title-case rules.
Preserve third-party product names according to the owner's spelling.
Include the company name and full model qualifier on first use when it helps identify the model.
Preserve the official capitalization and punctuation of model names.
Use shorter family names only after the full name is established.
Spell out a term on first use and put the acronym in parentheses unless the acronym is widely understood by the intended audience.
Use the acronym on later mentions after it has been defined.
For long documents, reintroduce the full term if readers might lose context.
Form plurals of acronyms with s, not an apostrophe, such as GPUs.
In headings, common acronyms can remain abbreviated. Spell out the term in the first or second sentence of the body.
Common terms such as CPU, GPU, PC, API, and UI usually do not need to be spelled out for developer audiences.

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{md,rst,html}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-brand-terminology.md)

Link the first mention of a product name when the destination helps the reader.

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{md,rst,txt}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-guide.md)

**/*.{md,rst,txt}: Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.
Format commands, code elements, expressions, package names, file names, and paths as inline code.
Use descriptive link text. Avoid raw URLs and weak anchors such as 'here' or 'read more.'
Use title case consistently for technical documentation headings.
Introduce code blocks, lists, tables, and images with complete sentences.
Write procedures as imperative steps. Keep steps parallel and split long procedures into smaller tasks.
Prefer active voice, present tense, short sentences, contractions, and plain English.
Use can for possibility and reserve may for permission.
Use after for temporal relationships instead of once.
Prefer refer to over see when the wording points readers to another resource.
Avoid culture-specific idioms, unnecessary Latinisms, jokes, and marketing exaggeration in technical documentation.
Spell out months in body text, avoid ordinal dates, and use clear time zones.
Spell out whole numbers from zero through nine unless they are technical values, parameters, versions, or UI values.
Use numerals for 10 or greater and include commas in thousands.
Do not add trademark symbols to learning-oriented documentation unless the source, platform, or legal guidance explicitly requires them.
Do not add trademark symbols to NeMo Flow learning documentation by default.
Do not rewrite API names, package names, command flags, or code literals for style reasons.

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/assets/nvidia-style-technical-docs.md)

**/*.{md,markdown,rst}: Use title case consistently in technical documentation headings
Avoid quotation marks, ampersands, and exclamation marks in headings
Keep product, event, research, and whitepaper names in their official title case
Use title case for table headers
Do not force social-media sentence case into technical docs
Use monospace formatting for code elements, commands, parameters, package names, and expressions
Use monospace formatting for directories, file names, and paths
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Use quotation marks for error messages and strings in documentation
Use bold formatting for UI buttons, menus, fields, and labels in documentation
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use in documentation
Use italics for publication titles in documentation
Use plain text formatting for keyboard shortcuts in documentation
Prefer [NVIDIA/NeMo](link) format for GitHub repository references over generic phrases like 'the GitHub repo'
Introduce every code block with a complete sentence
Do not make a code block complete the grammar of the previous sentence
Do not continue a sentence after a code block
Use syntax highlighting when the format supports it for code blocks
Avoid the word 'snippet' unless the surrounding docs already use it as a term of art
Keep inline method, function, and class references consistent with nearby docs, omitting empty parentheses for prose readability when no call is shown
Use descriptive anchor text that matches the destination title when possible for links
Avoid raw URLs in running text in documentation
Avoid generic link anchors such as 'here,' 'this page,' and 'read more' in documentation
Include the acronym in link text if a linked term includes an acronym
Do not link long sentences or multiple sentences in documentation
Avoid links that pull readers away from a procedure unles...

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{html,md}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include SPDX license headers in HTML and Markdown files using HTML comment syntax

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant crate or package README when that surface changed

Relevant package or crate README.md files must be updated when examples or binding guidance changes

Files:

  • integrations/opencode/README.md
**/*.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run Markdown link checking via lychee for README.md, CONTRIBUTING.md, and docs/ through pre-commit hooks

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,py,sh,bash,js,ts,java,cpp,go,rust}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep package names, repo references, and build commands current in documentation

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
  • integrations/opencode/server.js
**/*.{md,markdown,py,sh,bash}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep stable user-facing wrappers at scripts/ root in docs and examples; only point at namespaced helper paths when documenting internal maintenance work

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
**/*.{md,markdown,py,sh,bash,js,ts,example}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Example commands must match current package names and paths

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
  • integrations/opencode/server.js
**/*.{md,txt,rst}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)

**/*.{md,txt,rst}: Ensure commands, package names, file paths, and APIs in documentation are correct and not stale; flag incorrect or outdated information as blocking issues
Ensure examples and procedures in documentation will execute successfully with current APIs and commands
Use consistent user-facing terminology throughout documentation that matches current repo terminology
Capitalize NVIDIA correctly in all documentation and public-facing text
Format code, commands, paths, and filenames as inline code (monospace) in documentation
Use descriptive anchor text for links instead of bare URLs or weak labels like 'here' in documentation
Prefer active voice, present tense, short sentences, and plain English in documentation
Structure documentation procedures as imperative steps that are easy to scan and not too long for a single sequence
Prefer 'after' instead of 'once' for temporal references in documentation
Use 'can' instead of 'may' when describing possibility (rather than permission) in documentation
Avoid ambiguous numeric dates and ordinal dates in documentation body text

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
{README.md,docs/index.md,**/README.md}

📄 CodeRabbit inference engine (.agents/skills/review-doc-style/SKILL.md)

Update entry-point documentation (README.md, docs/index.md, package READMEs, binding-level source READMEs) whenever public behavior changes

Files:

  • integrations/opencode/README.md
**/*.{py,js,ts,tsx,go,rs,md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

Format changed files with the language-native formatter before the final lint/test pass

Files:

  • integrations/opencode/README.md
  • docs/integrate-frameworks/opencode.md
  • integrations/opencode/server.js
docs/**/*.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run ./scripts/build-docs.sh for documentation site changes

docs/**/*.md: Relevant getting-started or reference docs must be updated when examples change
Release-policy docs must point to GitHub Releases as the only release-history source of truth

docs/**/*.md: Use title case for headings in technical documentation
Introduce code blocks, tables, and lists with complete lead-in sentences in documentation

Files:

  • docs/integrate-frameworks/opencode.md
{RELEASING.md,CHANGELOG.md,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/contribute-docs/SKILL.md)

Keep release-process and release-notes guidance in repo-maintainer docs such as RELEASING.md, not as user-facing docs pages or CHANGELOG.md

Files:

  • docs/integrate-frameworks/opencode.md
docs/integrate-frameworks/**/*.md

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Documentation must be updated if activation or usage of the integration changed

Files:

  • docs/integrate-frameworks/opencode.md
{scripts/*.sh,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/contribute-integration/SKILL.md)

Use root ./scripts/*.sh commands in docs and contributor guidance as documented, with implementations under scripts/third-party/

Files:

  • docs/integrate-frameworks/opencode.md
{docs/**,examples/**,crates/adaptive/**,python/nemo_flow/**,go/nemo_flow/**,**/{example,component}.{ts,tsx,js,rs,py,go}}

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Any new adaptive component kind must have documentation, examples, and binding coverage across all supported languages

Files:

  • docs/integrate-frameworks/opencode.md
{README*,CHANGELOG*,docs/**/*.{md,rst,txt},examples/**/*,*.md}

📄 CodeRabbit inference engine (.agents/skills/rename-surfaces/SKILL.md)

Update documentation, examples, and getting-started guides with new package/module/crate names after rename operations

Files:

  • docs/integrate-frameworks/opencode.md
{README.md,docs/**/*.md,examples/**/*.{js,ts,py,go,rs}}

📄 CodeRabbit inference engine (.agents/skills/maintain-packaging/SKILL.md)

Keep documentation and examples synchronized with current install, import, and build commands

Files:

  • docs/integrate-frameworks/opencode.md
{README.md,CONTRIBUTING.md,docs/**/*.md}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

For docs-only changes, run targeted checks only if commands, package names, or examples changed. Use just docs for docs-site builds and just docs-linkcheck when links changed

Files:

  • docs/integrate-frameworks/opencode.md
{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}

⚙️ CodeRabbit configuration file

{docs/**,README.md,CONTRIBUTING.md,RELEASING.md,SECURITY.md}: Review documentation for technical accuracy against the current API, command correctness, and consistency across language bindings.
Flag stale examples, missing SPDX headers where required, and instructions that no longer match CI or pre-commit behavior.

Files:

  • docs/integrate-frameworks/opencode.md
**/*.{js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use camelCase naming convention for Node.js code

Files:

  • integrations/opencode/server.js
**/*.{rs,go,js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Include SPDX license headers in all Rust, Go, JavaScript, and TypeScript source files using C-style comment syntax

Files:

  • integrations/opencode/server.js
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Use SONAR_IGNORE_START / SONAR_IGNORE_END markers only for documented false positives that cannot be resolved in code; keep ignored blocks small, add explanatory comments, and require reviewer sign-off

Files:

  • integrations/opencode/server.js
{crates/adaptive/**,python/nemo_flow/{adaptive,plugin}.py,go/nemo_flow/{adaptive,**}/*.go,**/*.{ts,js,wasm}}

📄 CodeRabbit inference engine (.agents/skills/maintain-optimizer/SKILL.md)

Keep adaptive config schema, plugin lifecycle, and bindings in sync across crates/adaptive, core, bindings, Python (python/nemo_flow/adaptive.py and python/nemo_flow/plugin.py), Go (go/nemo_flow/adaptive and go/nemo_flow), and Node/WebAssembly helpers

Files:

  • integrations/opencode/server.js
**/*.{js,ts,tsx,jsx,py,rs,go,java,c,cpp,h,cc,cxx,cs,rb,php,swift,kt}

📄 CodeRabbit inference engine (.agents/skills/prepare-pr/SKILL.md)

Changed files must be formatted with the language-native formatter

Files:

  • integrations/opencode/server.js
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

If Node.js language surface changed, always run Node.js test target even when Rust core did not change

Files:

  • integrations/opencode/server.js
**/*.{rs,py,js,ts,tsx,go}

📄 CodeRabbit inference engine (.agents/skills/validate-change/SKILL.md)

During iteration, prefer uv run pre-commit run --files <changed files...> for targeted validation

Files:

  • integrations/opencode/server.js
🔇 Additional comments (4)
integrations/opencode/package.json (2)

43-45: Keep nemo-flow-node optional in this integration manifest.

Line 43 declares nemo-flow-node as a hard dependency, which conflicts with the integration optionality requirement for framework integrations.

#!/bin/bash
set -euo pipefail

echo "Checking dependency placement in integrations/opencode/package.json..."
sed -n '40,52p' integrations/opencode/package.json

echo
echo "Checking fallback/import patterns in integrations/opencode/server.js..."
rg -nP -C3 'nemo-flow-node|loadRuntime|try\s*\{|catch\s*\(' integrations/opencode/server.js

As per coding guidelines, **/{integrations,integration,*-integration}/**: Keep NeMo Flow optional in framework integrations.


1-42: LGTM!

Also applies to: 46-52

package.json (1)

10-11: LGTM!

integrations/opencode/test/server.test.mjs (1)

1-325: LGTM!

Also applies to: 337-439, 447-449

Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread docs/integrate-frameworks/opencode.md Outdated
Comment thread integrations/opencode/README.md Outdated
Comment thread integrations/opencode/README.md
Comment thread integrations/opencode/server.js Outdated
Comment thread integrations/opencode/server.js
Comment thread integrations/opencode/server.js Outdated
Comment thread integrations/opencode/test/server.test.mjs Outdated
billxbf and others added 3 commits May 15, 2026 10:26
@billxbf billxbf requested a review from willkill07 May 15, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature a new feature lang:js PR changes/introduces Javascript/Typescript code size:XL PR is extra large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants