Skip to content

feat: add claude code and codex plugins#224

Merged
rapids-bot[bot] merged 9 commits into
NVIDIA:mainfrom
willkill07:wkk_feat/claude-code-and-codex-plugins
Jun 10, 2026
Merged

feat: add claude code and codex plugins#224
rapids-bot[bot] merged 9 commits into
NVIDIA:mainfrom
willkill07:wkk_feat/claude-code-and-codex-plugins

Conversation

@willkill07

@willkill07 willkill07 commented Jun 4, 2026

Copy link
Copy Markdown
Member

Overview

Add NeMo Relay plugin installation and runtime support for Claude Code and Codex. The change adds host plugin manifests, marketplace generation, CLI install/uninstall/doctor commands, hook-supervised Codex startup, and Claude provider routing setup.

  • 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

  • Add nemo-relay install, nemo-relay uninstall, and nemo-relay doctor --plugin flows for Codex, Claude Code, and all supported hosts.
  • Add plugin-shim support for Codex hooks, lazy sidecar startup, Claude provider enable/restore, and hook forwarding.
  • Add source marketplace manifests and standalone plugin documentation for Codex and Claude Code.
  • Add CLI tests for plugin install behavior, plugin-shim behavior, gateway/session paths, and installer coverage.
  • Update release and CI packaging paths for coding agent plugin assets.

Validation run locally:

cargo test -p nemo-relay-cli -- --test-threads=1
cargo clippy -p nemo-relay-cli --all-targets -- -D warnings
cargo fmt --all --check
git diff --check

Where should the reviewer start?

Start with crates/cli/src/plugin_install/mod.rs for install orchestration and crates/cli/src/plugin_shim/mod.rs for host-specific setup and hook handling. The Codex lazy-start path is in crates/cli/src/plugin_shim/codex.rs, and the generated marketplace/plugin files are covered by crates/cli/tests/coverage/plugin_install_tests.rs.

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • Closes: RELAY-258

Summary by CodeRabbit

  • New Features

    • Persistent plugin install/management: nemo-relay install [<host>|all], nemo-relay doctor --plugin, and nemo-relay uninstall.
    • Plugin-shim and host integrations for Codex and Claude Code (on-demand sidecar, provider/hook plumbing).
    • Packaged local marketplace and plugin manifests for nemo-relay.
  • Documentation

    • New "Plugin Installation" guide; CLI and agent docs updated with install/doctor/uninstall guidance and release notes.
  • Tests

    • Expanded installer, shim, server, session, and CLI test coverage.
  • Chores

    • CI/workflow path-filter and release workflow updates.

Signed-off-by: Will Killian <wkillian@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Review Change Stack

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

Adds CLI plugin install/uninstall/doctor surfaces and implementation, generates local marketplace/plugin manifests, orchestrates host registration and rollback, implements plugin-shim sidecar lifecycle and hook forwarding (Codex/Claude), adds idle-shutdown tracking, and updates tests, docs, CI, and release automation.

Changes

Plugin System Implementation

Layer / File(s) Summary
CLI command contracts and dispatch wiring
crates/cli/src/{config.rs,main.rs}, crates/cli/tests/cli_tests.rs, crates/cli/src/plugin_shim/command.rs
Adds install/uninstall/hidden plugin-shim subcommands, new CLI argument structs and PluginHost variants, and routes commands to plugin_install/plugin_shim handlers; includes CLI help and doctor tests.
Installer state model and generated manifests
crates/cli/src/plugin_install/state.rs, crates/cli/src/plugin_install/marketplace.rs, .agents/plugins/marketplace.json, .claude-plugin/marketplace.json
Introduces persistent per-host PluginState, PluginLayout/default install-dir logic, and functions to write marketplace and plugin manifests (including optional Claude hook templates).
Host runner & setup delegation
crates/cli/src/plugin_install/host.rs, crates/cli/src/plugin_install/setup.rs
Implements CommandRunner/RealCommandRunner, host CLI resolution/execution, relay validation, host registration checks, and PluginSetupRunner delegation to plugin-shim.
Install/uninstall/doctor orchestration and rollback
crates/cli/src/plugin_install/mod.rs, tests crates/cli/tests/coverage/plugin_install_tests.rs
Selects candidate hosts, writes artifacts/state, runs registration/setup/doctor per host, supports --force cleanup, and implements rollback semantics with persisted progress and comprehensive integration tests.
Plugin-shim runtime, providers, and sidecar helpers
crates/cli/src/plugin_shim/{mod.rs,shared.rs,claude.rs,codex.rs}, integrations/coding-agents/*
Adds plugin-shim command surface, sidecar start/lock/health logic, raw HTTP hook forwarding, Claude provider enable/restore, Codex hook/provider install/uninstall with atomic backups, and updated integration hook commands/docs.
Gateway idle tracking and session changes
crates/cli/src/server.rs, crates/cli/src/session.rs, gateway handlers
Adds AppState.last_activity and touch(), idle-shutdown future in serve_listener gated by SessionManager::has_open_sessions, and session changes to prevent duplicate gateway-seeded turns.
Packaged assets, docs, CI, and release
integrations/coding-agents/*, docs/*, justfile, .github/*, RELEASING.md
Adds packaged marketplace/plugin JSONs, updates plugin manifests and hooks, expands documentation and installation guides, updates CI path filters and release workflow, and propagates plugin versions via justfile.
Extensive tests
crates/cli/tests/coverage/*
Adds broad unit/integration coverage for plugin install/uninstall/rollback, plugin-shim behavior, sidecar lifecycle, idle-shutdown scenarios, and packaged artifact validation.

Estimated code review effort:
🎯 4 (Complex) | ⏱️ ~60 minutes

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

@github-actions github-actions Bot added size:XXL PR is very large Feature a new feature lang:rust PR changes/introduces Rust code labels Jun 4, 2026
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

@willkill07 willkill07 self-assigned this Jun 4, 2026
@willkill07 willkill07 added this to the 0.4 milestone Jun 4, 2026
…e-and-codex-plugins

# Conflicts:
#	crates/cli/src/config.rs
#	crates/cli/src/main.rs
@willkill07 willkill07 marked this pull request as ready for review June 9, 2026 14:17
@willkill07 willkill07 requested a review from a team as a code owner June 9, 2026 14:17
Signed-off-by: Will Killian <wkillian@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 10

🤖 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 `@crates/cli/src/plugin_install/mod.rs`:
- Around line 74-92: The doctor function is ignoring the json parameter and
always sets skip_doctor to true; update the PluginInstallOptions creation in
doctor (and the other affected call site) to carry the _json flag (rename or use
the json param) through (e.g., add a json field to PluginInstallOptions or pass
a separate flag) and propagate that flag into run_for_hosts so doctor_host
receives it; then modify doctor_host (the doctor_host function that prints the
host-specific diagnostics) to branch on the JSON flag and emit structured JSON
output instead of plain-text fields (the plain prints around the current lines
~267-270) when json is true. Ensure unique symbols updated: doctor,
PluginInstallOptions, run_for_hosts invocation, and doctor_host.
- Around line 238-245: The uninstall path currently aborts if require_relay or
validate_relay_plugin_shim fail; instead, make relay validation best-effort
during uninstall: in run_plugin_uninstall remove the early error return from
require_relay/validate_relay_plugin_shim (or call them inside a match and treat
Err(_) as a logged warning) so state mutation and run_host_unregistration(host,
&mut state, ...) always run even if nemo-relay is missing; keep
require_relay/validate_relay_plugin_shim behavior strict for install/doctor code
paths but change the uninstall caller to catch errors and continue (log
diagnostics) rather than propagate them.
- Around line 171-173: The install_host flow currently writes the marketplace
then writes state, but if write_state(...) fails the marketplace tree is left
orphaned; update install_host so that after calling
write_plugin_marketplace(host, &layout, options) you attempt
write_state(&layout, options) and on any Err you synchronously remove the
generated marketplace (e.g. remove_dir_all(layout.marketplace_root) or
equivalent) before returning the error; reference the write_plugin_marketplace,
write_state, install_host function and layout.marketplace_root (and
HostRegistrationProgress if used) so the cleanup happens in the same error-path
to avoid leaving an install tree invisible to uninstall.

In `@crates/cli/src/plugin_install/state.rs`:
- Around line 146-178: In write_state, replace the silent fallback on
layout.state_path.parent().unwrap_or_else(|| Path::new(".")) with an explicit
expect call so construction bugs surface: call
layout.state_path.parent().expect("state_path should have a parent directory")
and pass that to write_state_for_host; mention the same descriptive message so
failures when computing the parent for write_state (which delegates to
write_state_for_host) are caught immediately.

In `@crates/cli/src/plugin_shim/claude.rs`:
- Around line 57-73: The branch that handles when json_env_string(&settings,
"ANTHROPIC_BASE_URL") != Some(gateway_url) erroneously deletes the backup via
remove_backup(&path) even though the file was left unchanged; update this branch
in the function handling restore (the block that reads settings with
read_json_object and compares via json_env_string) to NOT call
remove_backup(&path) when the current ANTHROPIC_BASE_URL is not
Relay-managed—keep the backup file intact so a future restore is possible; leave
the existing println message indicating the file was left unchanged but remove
the call to remove_backup(&path) in that else branch.

In `@crates/cli/src/plugin_shim/codex.rs`:
- Around line 154-191: The no-backup branch currently calls
remove_table_item_if_bool(&mut doc, "features", "hooks", true) whenever
preserve_hooks is false, which can clear users' pre-existing hooks; change this
so the removal is only performed if Relay actually owns the flag (minimum:
require provider_is_managed). In practice update the else-block to guard the
remove_table_item_if_bool call with provider_is_managed (or another explicit
ownership check such as feature_hooks_enabled(&doc) == Some(true) combined with
provider_is_managed) so remove_table_item_if_bool is only invoked when
provider_is_managed is true.

In `@crates/cli/src/plugin_shim/shared.rs`:
- Around line 22-46: The lock currently uses agent.as_arg() (in ensure_sidecar)
which causes different agents sharing the same resolved gateway URL to race;
change the lock naming to be derived from the resolved host:port for the
provided url instead of agent.as_arg(). Parse the url (e.g., with
url::Url::parse) to extract host_str() and port_or_known_default(), combine into
a filesystem-safe string (replace ':'/slashes as needed) and use that value in
the runtime.join(format!("{}-sidecar.lock", host_port)) creation; leave the rest
of ensure_sidecar (runtime_dir(), lock acquisition loop,
repair_stale_lock(&lock), start_sidecar(...), and lock removal) unchanged.
Ensure any parsing errors fall back to using the raw url string sanitized so
lock name always exists.
- Around line 516-523: runtime_dir currently falls back to a global temp path
causing cross-user collisions; update the function (runtime_dir) so that when
XDG_RUNTIME_DIR/TMPDIR/TEMP are absent you append a per-user segment (e.g. UID
or username) to the temp_dir path before joining "nemo-relay-plugin". Use
available env vars ("USER" or "USERNAME") or the platform UID as the user
identifier and ensure the same identifier is used on all platforms so
locks/logs/pids live under a user-scoped subdirectory.

In `@integrations/coding-agents/codex/README.md`:
- Around line 307-310: The README notes a race where Codex may send the provider
request before hooks like SessionStart or UserPromptSubmit run, causing missed
first-request capture; update the Codex lazy-start logic so the agent waits for
hook registration or a readiness signal before allowing the first provider
request: implement a simple readiness probe/handshake in the Codex startup flow
(e.g., block or buffer the first provider request until a
SessionStart/UserPromptSubmit hook handler is registered or a short timeout
elapses), or add an explicit Relay readiness API that Codex calls to confirm
hooks are active; mention the new readiness behavior and configuration
(timeout/backoff) in the docs for clarity.

In `@integrations/coding-agents/README.md`:
- Around line 25-26: The sentence is ambiguous about who performs the
installation; change the line describing `claude-code/` so the actor is
explicit—replace the pronoun "It" with a clear subject such as the command
`nemo-relay install claude-code` (e.g., "The `nemo-relay install claude-code`
command installs hook entries targeting `POST /hooks/claude-code` through
`nemo-relay` on `PATH`"), and keep references to `claude-code/`, `nemo-relay`,
`POST /hooks/claude-code`, and `PATH`.
🪄 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: d8fff306-dd5a-46c4-a213-cb3633978e09

📥 Commits

Reviewing files that changed from the base of the PR and between 7d9323c and e05a3da.

📒 Files selected for processing (42)
  • .agents/plugins/marketplace.json
  • .claude-plugin/marketplace.json
  • .github/ci-path-filters.yml
  • .github/workflows/ci.yaml
  • RELEASING.md
  • crates/cli/src/config.rs
  • crates/cli/src/gateway.rs
  • crates/cli/src/main.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/server.rs
  • crates/cli/src/session.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/nemo-relay-cli/codex.mdx
  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/.claude-plugin/plugin.json
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/claude-code/hooks/hooks.json
  • integrations/coding-agents/codex/.codex-plugin/plugin.json
  • integrations/coding-agents/codex/README.md
  • integrations/coding-agents/codex/hooks/hooks.json
  • justfile
📜 Review details
🧰 Additional context used
📓 Path-based instructions (33)
{docs/**,README.md,CONTRIBUTING.md}

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

{docs/**,README.md,CONTRIBUTING.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
Run docs site build with just docs

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,README.md,CONTRIBUTING.md,**/*.md}

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

Run docs link validation with just docs-linkcheck when links change

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
{docs/**,README.md}

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

Verify README and docs entry points still match current package names and paths for large or public-facing changes

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,examples/**,README.md}

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

Verify examples still run with documented commands for large or public-facing changes

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,README.md,**/Cargo.toml,**/package.json,**/*.md}

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

Ensure renamed public surfaces are reflected consistently in manifests and docs for large or public-facing changes

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/*.{md,mdx,py,sh,yaml,yml,toml,json}

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

Keep package names, repo references, and build commands current

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/claude-code/hooks/hooks.json
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/hooks/hooks.json
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/*.mdx

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

In MDX files, top-of-file comments must use JSX comment delimiters: {/* to open and */} to close. Do not use HTML comments for MDX SPDX headers.

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
**/*.{html,md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

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

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update embedded documentation snippets, patch docs, and binding-support notes if examples or supported bindings changed

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
docs/**

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run just docs or ./scripts/build-docs.sh html to regenerate ignored Fern API reference pages before validation for documentation site changes

Files:

  • docs/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{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/nemo-relay-cli/cursor.mdx
  • docs/nemo-relay-cli/about.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/basic-usage.mdx
  • docs/nemo-relay-cli/hermes.mdx
  • docs/nemo-relay-cli/claude-code.mdx
  • docs/getting-started/installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • RELEASING.md
**/*.rs

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Use snake_case naming convention for Rust identifiers (e.g., nemo_relay_tool_call)

**/*.rs: Any Rust change must run just test-rust
Any Rust change must run cargo fmt --all
Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all for all FFI work since it is Rust work
Run just test-rust to validate FFI changes
Run cargo clippy --workspace --all-targets -- -D warnings to enforce strict linting on FFI work

When Rust files changed as part of Go work, also run cargo fmt --all, just test-rust, and cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all when Rust files are changed as part of Node work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files are changed as part of Node work
Run just test-rust when Rust files are changed as part of Node work

**/*.rs: Run cargo fmt --all to format all Rust code
Run cargo clippy --workspace --all-targets -- -D warnings to enforce all clippy lints as errors

**/*.rs: Run cargo fmt --all when Rust files changed as part of WebAssembly work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files changed as part of WebAssembly work

**/*.rs: If any Rust code changed, always run just test-rust
If any Rust code changed, also run cargo fmt --all
If any Rust code changed, also run cargo clippy --workspace --all-targets -- -D warnings
Run Rust formatting with cargo fmt --all
Run Rust linting with cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Use cargo fmt for Rust code formatting
Run cargo clippy -- -D warnings to lint Rust code and treat all warnings as errors
Use Rust snake_case naming convention for Rust identifiers
Include SPDX license header in all Rust source files using double-slash comment syntax
Validate Rust code with uv run pre-commit run --all-files to enforce cargo fmt formatting check, cargo clippy lints, and cargo deny aud...

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
**/{Cargo.toml,**/*.rs}

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

Maintain consistency between Rust package names in Cargo.toml and their actual usage across the codebase

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
**/*.{h,hpp,c,cpp,rs}

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

Ensure FFI header and library naming follows consistent conventions across platform-specific builds

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
**/*.{rs,toml}

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

Update Rust crate names and module prefixes during coordinated rename operations

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
**/*.{rs,py,js,ts,tsx,jsx,go,sh,toml,yaml,yml,md}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • integrations/coding-agents/README.md
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • integrations/coding-agents/claude-code/README.md
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • integrations/coding-agents/codex/README.md
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • RELEASING.md
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions: Rust and Python use snake_case, C FFI exports prefixed nemo_relay_, Go uses PascalCase for public APIs, Node.js uses camelCase.

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
crates/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

crates/**/*.rs: Keep async behavior on the existing tokio-based model. Bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.
Use Json = serde_json::Value in Rust-facing runtime APIs for JSON payload handling.

Files:

  • crates/cli/src/main.rs
  • crates/cli/src/gateway.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/plugin_install/marketplace.rs
  • crates/cli/src/plugin_shim/command.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/server.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/config.rs
.github/workflows/*.{yml,yaml}

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

.github/workflows/*.{yml,yaml}: Put permissions: on each job that needs token access in GitHub Actions workflows
Avoid workflow-level permissions unless the repository intentionally centralizes them and the inheritance tradeoff is documented
Keep third-party actions pinned to full commit SHAs and preserve the readable version comment after the SHA
Prefer action-native or ecosystem-native caching over generic actions/cache
Use lockfiles or dependency manifests to drive cache invalidation in GitHub Actions workflows
Keep deploy and publish permissions isolated to the jobs that need them in GitHub Actions
Read both caller and callee when a workflow uses workflow_call in GitHub Actions
Put release-tag validation in the earliest practical caller job when the pipeline has tag-based publish behavior
Keep release-tag policy aligned with RELEASING.md: raw SemVer tags only, no leading v
contents: read is the default minimum permission for checkout-based build, test, docs, and packaging jobs
pull-requests: read is required for PR metadata lookup jobs in GitHub Actions workflows
pages: write and id-token: write should be limited to Pages deployment jobs and callers that invoke them through reusable workflows
For reusable workflows, the caller must grant every permission the called jobs require; the callee cannot elevate beyond what the caller provides
Prefer astral-sh/setup-uv cache support with cache-dependency-glob anchored to uv.lock
Prefer Swatinem/rust-cache with explicit shared-key and workspaces instead of ad hoc target-directory caching
Avoid caching generated outputs that can hide stale behavior unless the repo already relies on them deliberately

Files:

  • .github/workflows/ci.yaml
.{github/workflows/*.{yml,yaml},gitlab-ci.yml}

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

Ensure CI workflows reference the same package names, install commands, and build commands as local development workflows

Files:

  • .github/workflows/ci.yaml
{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}

⚙️ CodeRabbit configuration file

{.github/**,.gitlab-ci.yml,.pre-commit-config.yaml,justfile,scripts/**}: Review automation changes for reproducibility, pinned versions where appropriate, secret handling, and consistency with the documented validation matrix.
Pay attention to commands that need generated native artifacts, FFI libraries, or platform-specific environment variables.

Files:

  • .github/workflows/ci.yaml
  • .github/ci-path-filters.yml
  • justfile
{crates/adaptive/**/*.rs,**/*test*.{rs,py,go,ts,js},**/*adaptive*test*.{rs,py,go,ts,js},docs/plugins/adaptive/**}

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

Maintain documented and tested validation and report behavior for adaptive surfaces

Files:

  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/gateway_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/installer_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
**/*.{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/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.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/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/*.md

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

Documentation must be updated if activation or usage changed

**/*.md: 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
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references 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
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links ...

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/{docs,examples,**/*.md,*.patch,*.diff,.github,*.sh,*.yaml,*.yml}

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

Update documentation, examples, CI configuration, and patch artifacts when performing rename operations

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/*.{md,rst,txt}

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

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/*.{md,rst}

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

**/*.{md,rst}: 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 docs.
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 docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
  • RELEASING.md
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant crate or package README when that surface changed

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/claude-code/README.md
  • integrations/coding-agents/codex/README.md
RELEASING.md

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

Ensure public packaging changes are reflected in release-facing documentation and RELEASING.md

Files:

  • RELEASING.md
{CHANGELOG.md,RELEASING.md,docs/**/*.md}

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

Release history and release notes must reference GitHub Releases, not CHANGELOG.md or docs pages

Files:

  • RELEASING.md
**/*config*.{rs,ts,py,go,js,json,yaml,yml}

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

Ensure dynamic config shape still matches the documented canonical model

Files:

  • crates/cli/src/config.rs
🔇 Additional comments (63)
.github/ci-path-filters.yml (1)

112-113: LGTM!

Also applies to: 134-135

.github/workflows/ci.yaml (1)

285-287: LGTM!

RELEASING.md (1)

36-36: LGTM!

Also applies to: 239-240, 254-256, 283-285, 300-301

justfile (1)

391-416: LGTM!

Also applies to: 557-557

crates/cli/src/config.rs (4)

14-14: LGTM!

Also applies to: 84-86, 100-102


108-122: LGTM!


124-146: LGTM!


419-426: LGTM!

crates/cli/src/main.rs (3)

17-18: LGTM!


60-62: LGTM!


99-105: LGTM!

crates/cli/src/plugin_install/state.rs (6)

17-42: LGTM!


43-85: LGTM!


87-104: LGTM!


106-144: LGTM!


180-228: LGTM!


230-265: LGTM!

crates/cli/src/plugin_install/marketplace.rs (4)

16-48: LGTM!


50-88: LGTM!


90-130: LGTM!


132-151: LGTM!

.agents/plugins/marketplace.json (1)

1-20: LGTM!

.claude-plugin/marketplace.json (1)

1-16: LGTM!

crates/cli/src/plugin_install/host.rs (6)

15-109: LGTM!


111-156: LGTM!


158-224: LGTM!


226-280: LGTM!


282-307: LGTM!


309-330: LGTM!

crates/cli/src/plugin_shim/command.rs (6)

10-24: LGTM!


26-30: LGTM!


32-38: LGTM!


40-54: LGTM!


56-72: LGTM!


74-80: LGTM!

crates/cli/src/plugin_install/mod.rs (1)

1-2: Run the repository-required Rust validation matrix.

The PR notes cargo test, cargo clippy, and cargo fmt check, but the Rust validation policy here is stricter. Please run just test-rust, cargo fmt --all, and cargo clippy --workspace --all-targets -- -D warnings before merge.
As per coding guidelines, "Any Rust change must run just test-rust", "Run cargo fmt --all to format all Rust code", and "Run cargo clippy --workspace --all-targets -- -D warnings to enforce all clippy lints as errors."

Source: Coding guidelines

crates/cli/src/plugin_install/setup.rs (1)

12-103: LGTM!

docs/getting-started/installation.mdx (1)

26-35: LGTM!

docs/nemo-relay-cli/about.mdx (1)

27-28: LGTM!

Also applies to: 58-59

docs/nemo-relay-cli/basic-usage.mdx (3)

96-120: LGTM!


350-352: LGTM!


373-373: LGTM!

docs/nemo-relay-cli/claude-code.mdx (1)

43-65: LGTM!

docs/nemo-relay-cli/codex.mdx (1)

60-88: LGTM!

docs/nemo-relay-cli/cursor.mdx (1)

4-4: LGTM!

docs/nemo-relay-cli/hermes.mdx (1)

4-4: LGTM!

docs/nemo-relay-cli/plugin-installation.mdx (1)

1-137: LGTM!

integrations/coding-agents/README.md (2)

71-126: LGTM!


167-180: LGTM!

crates/cli/tests/coverage/plugin_install_tests.rs (2)

1-3: Confirm the Required Rust Validation Matrix Ran for This PR.

Please provide run evidence for just test-rust, cargo fmt --all, and cargo clippy --workspace --all-targets -- -D warnings for this Rust change set.

As per coding guidelines, "Any Rust change must run just test-rust", "Any Rust change must run cargo fmt --all", and "Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings."

Source: Coding guidelines


13-838: LGTM!

crates/cli/tests/coverage/plugin_shim_tests.rs (1)

16-1310: LGTM!

crates/cli/tests/coverage/installer_tests.rs (1)

162-279: LGTM!

crates/cli/tests/cli_tests.rs (1)

325-392: LGTM!

crates/cli/tests/coverage/gateway_tests.rs (1)

725-730: LGTM!

Also applies to: 752-757

crates/cli/tests/coverage/server_tests.rs (2)

213-317: LGTM!


38-63: Serialize process-env mutation in EnvVarGuard (global lock + preserve OsString)

EnvVarGuard mutates the process-wide environment (set_var/remove_var) without a shared, module-wide lock, so concurrently running tests can race and become flaky. Also, storing/restoring via String (var) can drop non-UTF8 values; prefer var_os/OsString. Finally, the unsafe { ... } blocks around set_var/remove_var are unnecessary unless there’s a separate justification.

Suggested fix
+use std::ffi::OsString;
+use std::sync::{Mutex, OnceLock};
+
+fn env_lock() -> &'static Mutex<()> {
+    static LOCK: OnceLock<Mutex<()>> = OnceLock::new();
+    LOCK.get_or_init(|| Mutex::new(()))
+}
+
-struct EnvVarGuard {
+struct EnvVarGuard<'a> {
+    _guard: std::sync::MutexGuard<'a, ()>,
     key: &'static str,
-    old: Option<String>,
+    old: Option<OsString>,
 }
 
-impl EnvVarGuard {
+impl<'a> EnvVarGuard<'a> {
     fn set(key: &'static str, value: &str) -> Self {
-        let old = std::env::var(key).ok();
+        let guard = env_lock().lock().unwrap_or_else(|e| e.into_inner());
+        let old = std::env::var_os(key);
         unsafe {
             std::env::set_var(key, value);
         }
-        Self { key, old }
+        Self { _guard: guard, key, old }
     }
 }
 
-impl Drop for EnvVarGuard {
+impl Drop for EnvVarGuard<'_> {
     fn drop(&mut self) {
         unsafe {
             if let Some(old) = self.old.take() {
                 std::env::set_var(self.key, old);
             } else {
                 std::env::remove_var(self.key);
             }
         }
     }
 }
integrations/coding-agents/claude-code/hooks/hooks.json (1)

8-8: Ensure CLI alias claude maps to CodingAgent::ClaudeCode

  • hooks.json packages nemo-relay plugin-shim hook claude; if the CLI argument/alias layer doesn’t parse claude to the same CodingAgent variant that the shim matches on (the ClaudeCode special-case), the hook will fail before reaching the Claude implementation.
integrations/coding-agents/claude-code/.claude-plugin/plugin.json (1)

2-4: LGTM!

integrations/coding-agents/codex/hooks/hooks.json (1)

9-145: LGTM!

integrations/coding-agents/codex/README.md (1)

219-242: Verify the Codex marketplace.json schema in the README matches the generator code.

The README example (integrations/coding-agents/codex/README.md, lines 219-242) uses interface.displayName, nested source.source/source.path, and policy.installation/policy.authentication; confirm this matches the actual marketplace.json schema produced by crates/cli/src/plugin_install/marketplace.rs.

integrations/coding-agents/claude-code/README.md (1)

208-227: Confirm marketplace.json matches the Claude Code plugin marketplace schema

In integrations/coding-agents/claude-code/README.md (lines 208-227), validate that the marketplace.json example uses the exact Claude Code schema and field nesting: metadata.description, owner.name / owner.email, and plugins[] entries (name, description, source, category). Pay special attention to whether plugins[].source must be a relative path like ./plugins/nemo-relay-plugin versus an expected marketplace identifier.

integrations/coding-agents/codex/.codex-plugin/plugin.json (1)

27-29: Validate defaultPrompt against Codex plugin.json schema (placement + constraints)

  • In OpenAI Codex plugin manifests, defaultPrompt is a supported field (defined as an array of strings) under the interface object for UI starter prompts.
  • Ensure the defaultPrompt you added at integrations/coding-agents/codex/.codex-plugin/plugin.json (lines 27-29) is nested under interface and respects Codex validator limits (strings ≤ 128 chars; up to 3 entries).
  • The fact it doesn’t exist in Claude Code’s .claude-plugin/plugin.json is not a relevant schema check (Codex and Claude Code use different manifest formats).

Comment thread crates/cli/src/plugin_install/mod.rs
Comment thread crates/cli/src/plugin_install/mod.rs
Comment thread crates/cli/src/plugin_install/mod.rs Outdated
Comment thread crates/cli/src/plugin_install/state.rs
Comment thread crates/cli/src/plugin_shim/claude.rs
Comment thread crates/cli/src/plugin_shim/codex.rs
Comment thread crates/cli/src/plugin_shim/shared.rs
Comment thread crates/cli/src/plugin_shim/shared.rs
Comment thread integrations/coding-agents/codex/README.md
Comment thread integrations/coding-agents/README.md Outdated
Signed-off-by: Will Killian <wkillian@nvidia.com>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 `@crates/cli/src/plugin_install/mod.rs`:
- Around line 315-323: The JSON branch inside doctor_host is unreachable because
doctor() already routes json=true to doctor_json(), so when run_for_hosts calls
doctor_host options.json is always false; remove the dead code block that checks
options.json and its print_json/with_schema/doctor_host_json_value call (i.e.,
delete the if options.json { ... } early-return) and any helper references that
only served that branch (doctor_host_json_value), leaving doctor_host to only
handle the non-JSON path called by run_for_hosts/doctor().
🪄 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: efd087b1-22c5-4768-8836-9094d01d954c

📥 Commits

Reviewing files that changed from the base of the PR and between e05a3da and 10ffdeb.

📒 Files selected for processing (12)
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_shim/shared.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • integrations/coding-agents/README.md
💤 Files with no reviewable changes (1)
  • crates/cli/src/plugin_shim/claude.rs
📜 Review details
🧰 Additional context used
📓 Path-based instructions (22)
**/*.{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/coding-agents/README.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/coding-agents/README.md
**/*.md

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

Documentation must be updated if activation or usage changed

**/*.md: 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
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references 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
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links ...

Files:

  • integrations/coding-agents/README.md
**/{docs,examples,**/*.md,*.patch,*.diff,.github,*.sh,*.yaml,*.yml}

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

Update documentation, examples, CI configuration, and patch artifacts when performing rename operations

Files:

  • integrations/coding-agents/README.md
**/*.{md,rst,txt}

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

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • integrations/coding-agents/README.md
**/*.{md,rst}

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

**/*.{md,rst}: 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 docs.
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 docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • integrations/coding-agents/README.md
{docs/**,README.md,CONTRIBUTING.md,**/*.md}

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

Run docs link validation with just docs-linkcheck when links change

Files:

  • integrations/coding-agents/README.md
{docs/**,README.md,**/Cargo.toml,**/package.json,**/*.md}

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

Ensure renamed public surfaces are reflected consistently in manifests and docs for large or public-facing changes

Files:

  • integrations/coding-agents/README.md
**/*.{md,mdx,py,sh,yaml,yml,toml,json}

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

Keep package names, repo references, and build commands current

Files:

  • integrations/coding-agents/README.md
**/*.{html,md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

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

Files:

  • integrations/coding-agents/README.md
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant crate or package README when that surface changed

Files:

  • integrations/coding-agents/README.md
**/*.{rs,py,js,ts,tsx,jsx,go,sh,toml,yaml,yml,md}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • integrations/coding-agents/README.md
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**

⚙️ CodeRabbit configuration file

**:

AGENTS.md

This file provides guidance to agents, including Claude Code and OpenAI Codex, when working in this repository.

Project Overview

NeMo Relay is a multi-language agent runtime framework for execution scopes, lifecycle events, middleware, plugins, and observability around tool and LLM calls. The core runtime is Rust. Primary supported bindings are Rust, Python, and Node.js. Go, WebAssembly, and the raw C FFI are experimental and source-first.

The shared runtime model is:

  1. Scope stacks decide where work belongs and which scope-local behavior is visible.
  2. Middleware registries decide what guardrails and intercepts run around managed calls.
  3. Plugins install reusable runtime behavior from configuration.
  4. Events record runtime behavior in ATOF form.
  5. Subscribers and exporters consume events in-process or export them to ATIF, OpenTelemetry, OpenInference, or other backends.

Repository Structure

The repository layout separates the Rust runtime, language bindings, documentation,
integration patches, and agent-facing skills.

crates/
  core/       # Rust core runtime crate, published as nemo-relay
  adaptive/   # Adaptive runtime primitives and plugin components
  python/     # PyO3 native extension for the Python package
  ffi/        # Raw C ABI layer used by downstream bindings such as Go
  node/       # NAPI Node.js binding and JavaScript/TypeScript entry points
  wasm/       # wasm-bindgen WebAssembly binding and JS wrappers
python/
  nemo_relay/  # Python wrapper package: scopes, tools, LLM, middleware, typed helpers, plugins, adaptive helpers
  tests/      # Python tests
go/
  nemo_relay/  # Experimental Go CGo binding and tests
fern/         # Fern documentation site
scripts/      # Stable wrappers and helper scripts; build/test/docs entry points live in justfile
third_party/  # P...

Files:

  • integrations/coding-agents/README.md
  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**/*.rs

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Use snake_case naming convention for Rust identifiers (e.g., nemo_relay_tool_call)

**/*.rs: Any Rust change must run just test-rust
Any Rust change must run cargo fmt --all
Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all for all FFI work since it is Rust work
Run just test-rust to validate FFI changes
Run cargo clippy --workspace --all-targets -- -D warnings to enforce strict linting on FFI work

When Rust files changed as part of Go work, also run cargo fmt --all, just test-rust, and cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all when Rust files are changed as part of Node work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files are changed as part of Node work
Run just test-rust when Rust files are changed as part of Node work

**/*.rs: Run cargo fmt --all to format all Rust code
Run cargo clippy --workspace --all-targets -- -D warnings to enforce all clippy lints as errors

**/*.rs: Run cargo fmt --all when Rust files changed as part of WebAssembly work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files changed as part of WebAssembly work

**/*.rs: If any Rust code changed, always run just test-rust
If any Rust code changed, also run cargo fmt --all
If any Rust code changed, also run cargo clippy --workspace --all-targets -- -D warnings
Run Rust formatting with cargo fmt --all
Run Rust linting with cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Use cargo fmt for Rust code formatting
Run cargo clippy -- -D warnings to lint Rust code and treat all warnings as errors
Use Rust snake_case naming convention for Rust identifiers
Include SPDX license header in all Rust source files using double-slash comment syntax
Validate Rust code with uv run pre-commit run --all-files to enforce cargo fmt formatting check, cargo clippy lints, and cargo deny aud...

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**/{Cargo.toml,**/*.rs}

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

Maintain consistency between Rust package names in Cargo.toml and their actual usage across the codebase

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**/*.{h,hpp,c,cpp,rs}

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

Ensure FFI header and library naming follows consistent conventions across platform-specific builds

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**/*.{rs,toml}

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

Update Rust crate names and module prefixes during coordinated rename operations

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions: Rust and Python use snake_case, C FFI exports prefixed nemo_relay_, Go uses PascalCase for public APIs, Node.js uses camelCase.

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
crates/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

crates/**/*.rs: Keep async behavior on the existing tokio-based model. Bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.
Use Json = serde_json::Value in Rust-facing runtime APIs for JSON payload handling.

Files:

  • crates/cli/src/plugin_install/setup.rs
  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/src/plugin_shim/mod.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/state.rs
  • crates/cli/src/config.rs
  • crates/cli/src/plugin_shim/codex.rs
  • crates/cli/src/plugin_shim/shared.rs
{crates/adaptive/**/*.rs,**/*test*.{rs,py,go,ts,js},**/*adaptive*test*.{rs,py,go,ts,js},docs/plugins/adaptive/**}

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

Maintain documented and tested validation and report behavior for adaptive surfaces

Files:

  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • crates/cli/tests/cli_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
**/*config*.{rs,ts,py,go,js,json,yaml,yml}

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

Ensure dynamic config shape still matches the documented canonical model

Files:

  • crates/cli/src/config.rs
🔇 Additional comments (25)
integrations/coding-agents/README.md (1)

25-222: LGTM!

crates/cli/src/config.rs (3)

113-136: LGTM!


138-146: LGTM!


419-426: LGTM!

crates/cli/src/plugin_shim/mod.rs (1)

17-18: LGTM!

Also applies to: 150-194

crates/cli/src/plugin_shim/shared.rs (2)

15-15: LGTM!

Also applies to: 23-51


517-583: LGTM!

crates/cli/src/plugin_shim/codex.rs (1)

183-185: LGTM!

crates/cli/tests/coverage/plugin_shim_tests.rs (3)

538-557: LGTM!


849-860: LGTM!

Also applies to: 862-896


788-788: LGTM!

crates/cli/tests/cli_tests.rs (1)

382-396: LGTM!

crates/cli/src/plugin_install/state.rs (2)

23-23: LGTM!


160-163: LGTM!

crates/cli/src/plugin_install/mod.rs (6)

14-15: LGTM!

Also applies to: 26-27, 49-49, 68-68


78-101: LGTM!


139-166: LGTM!


209-217: LGTM!


283-287: LGTM!


331-349: LGTM!

Also applies to: 450-461

crates/cli/src/plugin_install/setup.rs (1)

8-8: LGTM!

Also applies to: 49-54, 81-81, 112-121

crates/cli/tests/coverage/plugin_install_tests.rs (4)

115-127: LGTM!

Also applies to: 146-146


591-614: LGTM!


739-763: LGTM!


765-784: LGTM!

Comment thread crates/cli/src/plugin_install/mod.rs Outdated
Signed-off-by: Will Killian <wkillian@nvidia.com>

@AjayThorve AjayThorve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Update after af66400: I re-tested the two remaining nitpicks from this review and both are addressed now.

  • Claude provider stale-backup repro: fixed. After reinstall and restore, the final ANTHROPIC_BASE_URL stays at the user-owned https://custom.example value instead of reverting to the stale original backup.
  • doctor --plugin claude-code host-registration false positive: fixed. After manually removing the host plugin and marketplace, doctor now exits non-zero with claude plugin host registration is incomplete: missing nemo-relay-plugin@nemo-relay-local host plugin, nemo-relay-local host marketplace.

I also ran cargo test -p nemo-relay-cli -- --test-threads=1 successfully on the latest PR head. No remaining action needed from my prior review comments.

@AjayThorve

AjayThorve commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@willkill07 , one UX gap I noticed in the Codex/Claude plugin install flow: nemo-relay install codex gets the host integration working, but exporter setup is still hidden behind Relay's plugins.toml discovery.

That is technically composable, but I don't think it matches the end-user install story. For coding-agent plugins, the user mental model is probably "install Relay for Codex/Claude and get traces," not "install the plugin, then know to configure an observability component separately."

This matters more for global installs. If someone installs Codex once on their machine, they'll likely expect exporters to apply across repos. Today they need to know to run something like nemo-relay plugins edit --user and configure ATIF/OpenInference there. Project-local .nemo-relay/plugins.toml is useful, but it should not be the only obvious path.

I’d treat this as a UX follow-up, not a blocker for the PR. Possible fixes:

  • have nemo-relay install codex print the exact next command for exporter setup;
  • add an explicit install option like --exporter atif / --exporter openinference --endpoint ...;
  • or add a first-class command like nemo-relay exporters configure --user|--project.

My preference: keep plugin install and exporter config separate internally, but make exporter setup first-class in the CLI. The one-time install flow should not require users to discover plugins.toml.

@AjayThorve

AjayThorve commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Update after af66400: verified fixed in the real direct-install path.

I reran the end-user flow against the PR binary with the user OpenInference exporter pointing at Phoenix:

nemo-relay doctor --plugin claude-code
nemo-relay plugin-shim doctor claude
jq .env.ANTHROPIC_BASE_URL ~/.claude/settings.json
claude -p "hi from direct installed nemo relay test at 2026-06-10T20:33:11Z" --output-format json

Phoenix trace cf3c404cd9e9fe898b28ee0b33a48498 now has the expected shape:

span=claude-code-turn parent=null input_mime=json output_mime=text turn_source=user_prompt hook_event=UserPromptSubmit prompt=hi from direct installed nemo relay test at 2026-06-10T20:33:11Z
span=anthropic.messages parent=2a900a07cd005caa input_mime=text output_mime=text llm_correlation=single_hint

So the earlier direct-mode symptom no longer reproduces: the root claude-code-turn input is not null, the child LLM span is parented under the turn, and the correlation is no longer agent_fallback for this path. Leaving the exporter setup UX as the separate follow-up already discussed.

Signed-off-by: Will Killian <wkillian@nvidia.com>
@willkill07

Copy link
Copy Markdown
Member Author

Plugin setup still separate step. Everything else has been addressed @AjayThorve

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 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 `@crates/cli/tests/coverage/session_tests.rs`:
- Around line 3804-3817: The prompt_submitted handling records a "prompt_mark"
regardless of session, so unrelated parallel events can satisfy the assertion;
update the logic in the prompt_submitted branch (the if checking event.name() ==
"prompt_submitted" and pushing to captured.lock().unwrap().push(...)) to also
check that event_session_id == Some("claude-direct-race") (i.e., scope the
capture to the target session) before pushing; you can either add the session
check inside that branch or move the existing event_session_id check above it so
the "prompt_mark" is only recorded for the intended session (apply the same
change to the other occurrence around lines 3895-3898).
🪄 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: daa38465-7d84-4490-a523-ccbb433f900e

📥 Commits

Reviewing files that changed from the base of the PR and between da90376 and af66400.

📒 Files selected for processing (11)
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/alignment/mod.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/session.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/tests/coverage/session_tests.rs
👮 Files not reviewed due to content moderation or server errors (5)
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/alignment/mod.rs
  • crates/cli/src/session.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (10)
**/*.rs

📄 CodeRabbit inference engine (.agents/skills/add-binding-feature/SKILL.md)

Use snake_case naming convention for Rust identifiers (e.g., nemo_relay_tool_call)

**/*.rs: Any Rust change must run just test-rust
Any Rust change must run cargo fmt --all
Any Rust change must run cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all for all FFI work since it is Rust work
Run just test-rust to validate FFI changes
Run cargo clippy --workspace --all-targets -- -D warnings to enforce strict linting on FFI work

When Rust files changed as part of Go work, also run cargo fmt --all, just test-rust, and cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Run cargo fmt --all when Rust files are changed as part of Node work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files are changed as part of Node work
Run just test-rust when Rust files are changed as part of Node work

**/*.rs: Run cargo fmt --all to format all Rust code
Run cargo clippy --workspace --all-targets -- -D warnings to enforce all clippy lints as errors

**/*.rs: Run cargo fmt --all when Rust files changed as part of WebAssembly work
Run cargo clippy --workspace --all-targets -- -D warnings when Rust files changed as part of WebAssembly work

**/*.rs: If any Rust code changed, always run just test-rust
If any Rust code changed, also run cargo fmt --all
If any Rust code changed, also run cargo clippy --workspace --all-targets -- -D warnings
Run Rust formatting with cargo fmt --all
Run Rust linting with cargo clippy --workspace --all-targets -- -D warnings

**/*.rs: Use cargo fmt for Rust code formatting
Run cargo clippy -- -D warnings to lint Rust code and treat all warnings as errors
Use Rust snake_case naming convention for Rust identifiers
Include SPDX license header in all Rust source files using double-slash comment syntax
Validate Rust code with uv run pre-commit run --all-files to enforce cargo fmt formatting check, cargo clippy lints, and cargo deny aud...

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**/{Cargo.toml,**/*.rs}

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

Maintain consistency between Rust package names in Cargo.toml and their actual usage across the codebase

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**/*.{h,hpp,c,cpp,rs}

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

Ensure FFI header and library naming follows consistent conventions across platform-specific builds

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**/*.{rs,toml}

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

Update Rust crate names and module prefixes during coordinated rename operations

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**/*.{rs,py,js,ts,tsx,jsx,go,sh,toml,yaml,yml,md}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**/*.{rs,py,go,js,ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

Follow binding naming conventions: Rust and Python use snake_case, C FFI exports prefixed nemo_relay_, Go uses PascalCase for public APIs, Node.js uses camelCase.

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
crates/**/*.rs

📄 CodeRabbit inference engine (AGENTS.md)

crates/**/*.rs: Keep async behavior on the existing tokio-based model. Bindings should preserve callback and future lifetimes rather than blocking or hiding async work unexpectedly.
Use Json = serde_json::Value in Rust-facing runtime APIs for JSON payload handling.

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
**

⚙️ CodeRabbit configuration file

**:

AGENTS.md

This file provides guidance to agents, including Claude Code and OpenAI Codex, when working in this repository.

Project Overview

NeMo Relay is a multi-language agent runtime framework for execution scopes, lifecycle events, middleware, plugins, and observability around tool and LLM calls. The core runtime is Rust. Primary supported bindings are Rust, Python, and Node.js. Go, WebAssembly, and the raw C FFI are experimental and source-first.

The shared runtime model is:

  1. Scope stacks decide where work belongs and which scope-local behavior is visible.
  2. Middleware registries decide what guardrails and intercepts run around managed calls.
  3. Plugins install reusable runtime behavior from configuration.
  4. Events record runtime behavior in ATOF form.
  5. Subscribers and exporters consume events in-process or export them to ATIF, OpenTelemetry, OpenInference, or other backends.

Repository Structure

The repository layout separates the Rust runtime, language bindings, documentation,
integration patches, and agent-facing skills.

crates/
  core/       # Rust core runtime crate, published as nemo-relay
  adaptive/   # Adaptive runtime primitives and plugin components
  python/     # PyO3 native extension for the Python package
  ffi/        # Raw C ABI layer used by downstream bindings such as Go
  node/       # NAPI Node.js binding and JavaScript/TypeScript entry points
  wasm/       # wasm-bindgen WebAssembly binding and JS wrappers
python/
  nemo_relay/  # Python wrapper package: scopes, tools, LLM, middleware, typed helpers, plugins, adaptive helpers
  tests/      # Python tests
go/
  nemo_relay/  # Experimental Go CGo binding and tests
fern/         # Fern documentation site
scripts/      # Stable wrappers and helper scripts; build/test/docs entry points live in justfile
third_party/  # P...

Files:

  • crates/cli/src/alignment/mod.rs
  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/src/alignment/claude_code.rs
  • crates/cli/src/session.rs
  • crates/cli/src/plugin_shim/claude.rs
  • crates/cli/src/plugin_install/host.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/src/plugin_install/mod.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
{crates/adaptive/**/*.rs,**/*test*.{rs,py,go,ts,js},**/*adaptive*test*.{rs,py,go,ts,js},docs/plugins/adaptive/**}

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

Maintain documented and tested validation and report behavior for adaptive surfaces

Files:

  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}

⚙️ CodeRabbit configuration file

{crates/**/tests/**,python/tests/**,go/nemo_relay/**/*_test.go}: Tests should cover the behavior promised by the changed API surface, including error paths and cross-request isolation where relevant.
Prefer assertions on lifecycle events, scope stacks, middleware ordering, and binding parity over shallow smoke tests.

Files:

  • crates/cli/tests/coverage/session_tests.rs
  • crates/cli/tests/coverage/alignment_claude_code_tests.rs
  • crates/cli/tests/coverage/server_tests.rs
  • crates/cli/tests/coverage/plugin_shim_tests.rs
  • crates/cli/tests/coverage/plugin_install_tests.rs
🔇 Additional comments (5)
crates/cli/src/plugin_install/host.rs (1)

1-571: LGTM!

crates/cli/src/plugin_install/mod.rs (1)

19-23: LGTM!

Also applies to: 316-319, 332-342

crates/cli/tests/coverage/plugin_install_tests.rs (1)

11-11: LGTM!

Also applies to: 19-20, 32-48, 98-114, 795-924

crates/cli/src/plugin_shim/claude.rs (1)

30-35: LGTM!

Also applies to: 141-164

crates/cli/tests/coverage/plugin_shim_tests.rs (1)

791-838: LGTM!

Comment thread crates/cli/tests/coverage/session_tests.rs
AjayThorve
AjayThorve previously approved these changes Jun 10, 2026

@AjayThorve AjayThorve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me after af66400

lvojtku
lvojtku previously approved these changes Jun 10, 2026

@lvojtku lvojtku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comments and approved.

Comment thread docs/nemo-relay-cli/codex.mdx Outdated
Comment thread docs/nemo-relay-cli/codex.mdx Outdated
Comment thread docs/nemo-relay-cli/codex.mdx Outdated
Comment thread docs/nemo-relay-cli/codex.mdx Outdated
Comment thread docs/nemo-relay-cli/codex.mdx Outdated
Comment thread integrations/coding-agents/README.md Outdated
Comment thread integrations/coding-agents/README.md Outdated
Comment thread integrations/coding-agents/README.md Outdated
Comment thread integrations/coding-agents/README.md Outdated
Comment thread integrations/coding-agents/README.md Outdated
Co-authored-by: lvojtku <lvojtku@nvidia.com>
Signed-off-by: lvojtku <lvojtku@nvidia.com>
@lvojtku lvojtku dismissed stale reviews from AjayThorve and themself via b00f248 June 10, 2026 20:50

@lvojtku lvojtku left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comments and approved.

Comment thread docs/nemo-relay-cli/codex.mdx Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
integrations/coding-agents/codex/README.md (1)

37-38: 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win

Clarify what "v1" refers to.

The reference to "v1 does not depend on Codex exposing those broader events" is ambiguous. Consider replacing "v1" with a clearer term such as "the minimum hook set," "the base integration," or "NeMo Relay's initial Codex support" to help readers understand what scope or version is being referenced.

🤖 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/coding-agents/codex/README.md` around lines 37 - 38, The phrase
"v1 does not depend on Codex exposing those broader events" is ambiguous; update
that sentence to replace "v1" with a clearer term such as "the base
integration," "NeMo Relay's initial Codex support," or "the minimum hook set" to
clarify scope. Locate the exact phrase "v1 does not depend on Codex exposing
those broader events" in the README and change "v1" to one of the suggested
clearer terms (pick the one that best fits the project tone) so readers
understand which scope/version is referenced.

Source: Coding guidelines

♻️ Duplicate comments (1)
integrations/coding-agents/codex/README.md (1)

252-252: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix spacing before inline code.

Missing space between "using" and the backtick for the inline code element.

📝 Suggested fix
-For end-to-end installation, we recommend using`nemo-relay install codex`; it performs the
+For end-to-end installation, we recommend using `nemo-relay install codex`; it performs the
🤖 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/coding-agents/codex/README.md` at line 252, The inline code in
the sentence "For end-to-end installation, we recommend using`nemo-relay install
codex`; it performs the" is missing a space before the backtick; update the text
so there is a space between "using" and the inline code (i.e., change
"using`nemo-relay install codex`" to "using `nemo-relay install codex`") to fix
spacing in the README.md content.
🤖 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/nemo-relay-cli/codex.mdx`:
- Line 71: Replace the plain URL with a monospace-formatted one in the line
referencing the nemo-relay-openai provider alias; find the occurrence of
http://127.0.0.1:47632 (near the "nemo-relay-openai provider alias" text) and
wrap it in backticks so it appears as `http://127.0.0.1:47632` to follow docs
guidelines for paths and URLs.

---

Outside diff comments:
In `@integrations/coding-agents/codex/README.md`:
- Around line 37-38: The phrase "v1 does not depend on Codex exposing those
broader events" is ambiguous; update that sentence to replace "v1" with a
clearer term such as "the base integration," "NeMo Relay's initial Codex
support," or "the minimum hook set" to clarify scope. Locate the exact phrase
"v1 does not depend on Codex exposing those broader events" in the README and
change "v1" to one of the suggested clearer terms (pick the one that best fits
the project tone) so readers understand which scope/version is referenced.

---

Duplicate comments:
In `@integrations/coding-agents/codex/README.md`:
- Line 252: The inline code in the sentence "For end-to-end installation, we
recommend using`nemo-relay install codex`; it performs the" is missing a space
before the backtick; update the text so there is a space between "using" and the
inline code (i.e., change "using`nemo-relay install codex`" to "using
`nemo-relay install codex`") to fix spacing in the README.md content.
🪄 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: 887a3ce2-d0c6-4f47-8e3e-bad12336ecaf

📥 Commits

Reviewing files that changed from the base of the PR and between af66400 and b00f248.

📒 Files selected for processing (4)
  • docs/nemo-relay-cli/codex.mdx
  • docs/nemo-relay-cli/plugin-installation.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
📜 Review details
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Check / Run
  • GitHub Check: Preview docs
🧰 Additional context used
📓 Path-based instructions (20)
{docs/**,README.md,CONTRIBUTING.md}

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

{docs/**,README.md,CONTRIBUTING.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
Run docs site build with just docs

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,README.md,CONTRIBUTING.md,**/*.md}

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

Run docs link validation with just docs-linkcheck when links change

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
{docs/**,README.md}

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

Verify README and docs entry points still match current package names and paths for large or public-facing changes

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,examples/**,README.md}

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

Verify examples still run with documented commands for large or public-facing changes

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{docs/**,README.md,**/Cargo.toml,**/package.json,**/*.md}

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

Ensure renamed public surfaces are reflected consistently in manifests and docs for large or public-facing changes

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.{md,mdx,py,sh,yaml,yml,toml,json}

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

Keep package names, repo references, and build commands current

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.mdx

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

In MDX files, top-of-file comments must use JSX comment delimiters: {/* to open and */} to close. Do not use HTML comments for MDX SPDX headers.

MDX top-of-file SPDX comments must use {/* ... */} delimiters instead of HTML comment delimiters (Must-Fix)

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
**/*.{html,md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

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

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
docs/**/*.{md,mdx}

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update embedded documentation snippets, patch docs, and binding-support notes if examples or supported bindings changed

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
docs/**

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Run just docs or ./scripts/build-docs.sh html to regenerate ignored Fern API reference pages before validation for documentation site changes

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
{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/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
**

⚙️ CodeRabbit configuration file

**:

AGENTS.md

This file provides guidance to agents, including Claude Code and OpenAI Codex, when working in this repository.

Project Overview

NeMo Relay is a multi-language agent runtime framework for execution scopes, lifecycle events, middleware, plugins, and observability around tool and LLM calls. The core runtime is Rust. Primary supported bindings are Rust, Python, and Node.js. Go, WebAssembly, and the raw C FFI are experimental and source-first.

The shared runtime model is:

  1. Scope stacks decide where work belongs and which scope-local behavior is visible.
  2. Middleware registries decide what guardrails and intercepts run around managed calls.
  3. Plugins install reusable runtime behavior from configuration.
  4. Events record runtime behavior in ATOF form.
  5. Subscribers and exporters consume events in-process or export them to ATIF, OpenTelemetry, OpenInference, or other backends.

Repository Structure

The repository layout separates the Rust runtime, language bindings, documentation,
integration patches, and agent-facing skills.

crates/
  core/       # Rust core runtime crate, published as nemo-relay
  adaptive/   # Adaptive runtime primitives and plugin components
  python/     # PyO3 native extension for the Python package
  ffi/        # Raw C ABI layer used by downstream bindings such as Go
  node/       # NAPI Node.js binding and JavaScript/TypeScript entry points
  wasm/       # wasm-bindgen WebAssembly binding and JS wrappers
python/
  nemo_relay/  # Python wrapper package: scopes, tools, LLM, middleware, typed helpers, plugins, adaptive helpers
  tests/      # Python tests
go/
  nemo_relay/  # Experimental Go CGo binding and tests
fern/         # Fern documentation site
scripts/      # Stable wrappers and helper scripts; build/test/docs entry points live in justfile
third_party/  # P...

Files:

  • docs/nemo-relay-cli/plugin-installation.mdx
  • docs/nemo-relay-cli/codex.mdx
  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.{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/coding-agents/README.md
  • integrations/coding-agents/codex/README.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/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.md

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

Documentation must be updated if activation or usage changed

**/*.md: 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
Format code elements, commands, parameters, package names, and expressions in monospace
Format directories, file names, and paths in monospace using backticks
Use angle brackets inside monospace for variables inside paths, such as /home/<username>/.login
Format error messages and strings in quotation marks, keeping literal code strings in code formatting when clearer
Format UI buttons, menus, fields, and labels in bold
Use angle brackets between UI labels for menu paths, such as File > Save As
Use italics for new terms on first use, sparingly and only when introducing the term
Use italics for publication titles
Format keyboard shortcuts in plain text, such as Press Ctrl+Alt+Delete
Use owner/repo link text for GitHub repositories, preferring [NVIDIA/NeMo](link) over prose references 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
Avoid generic anchor text such as 'here,' 'this page,' and 'read more'
Include acronyms in link text when a linked term includes an acronym
Do not link long sentences or multiple sentences
Avoid links ...

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/{docs,examples,**/*.md,*.patch,*.diff,.github,*.sh,*.yaml,*.yml}

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

Update documentation, examples, CI configuration, and patch artifacts when performing rename operations

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.{md,rst,txt}

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

Spell NVIDIA in all caps. Do not use Nvidia, nvidia, or NV.

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.{md,rst}

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

**/*.{md,rst}: 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 docs.
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 docs unless the source, platform, or legal guidance explicitly requires them.

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/README.md

📄 CodeRabbit inference engine (CONTRIBUTING.md)

Update relevant crate or package README when that surface changed

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
**/*.{rs,py,js,ts,tsx,jsx,go,sh,toml,yaml,yml,md}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • integrations/coding-agents/README.md
  • integrations/coding-agents/codex/README.md
🔇 Additional comments (2)
docs/nemo-relay-cli/plugin-installation.mdx (1)

1-137: LGTM!

integrations/coding-agents/README.md (1)

1-222: LGTM!

Comment thread docs/nemo-relay-cli/codex.mdx
@willkill07

Copy link
Copy Markdown
Member Author

/merge

@rapids-bot rapids-bot Bot merged commit 2fafd3e into NVIDIA:main Jun 10, 2026
69 of 71 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 12, 2026
2 tasks
@willkill07 willkill07 deleted the wkk_feat/claude-code-and-codex-plugins branch June 15, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature a new feature lang:rust PR changes/introduces Rust code size:XXL PR is very large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants