Skip to content

docs: correct inference CLI references - #7321

Closed
laitingsheng wants to merge 5 commits into
mainfrom
docs/nvqa-cli-doc-consistency
Closed

docs: correct inference CLI references#7321
laitingsheng wants to merge 5 commits into
mainfrom
docs/nvqa-cli-doc-consistency

Conversation

@laitingsheng

@laitingsheng laitingsheng commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix two NV QA documentation inconsistencies in the inference guides. The declarative multi-agent manifest guide now surfaces the agents apply subcommand, and the Switch Providers page scopes the Deep Agents recreation heading to its variant and describes the correct shields sandbox argument.

Related Issue

Fixes #7308
Fixes #7309

Changes

  • docs/inference/declarative-agents-manifest.mdx: surface nemoclaw <name> agents apply in the Iterating section with a link to Apply to an Existing Sandbox, so the subcommand text matches the code block. The non-existent agents show is deliberately not added.
  • docs/inference/switch-providers.mdx: move the Recreate a Deep Agents Sandbox heading inside the deepagents AgentOnly block so it no longer renders empty on the OpenClaw and Hermes variants, and reword the runtime-switch prose to state that shields takes a positional sandbox name while inference set takes --sandbox.

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification: npm run docs (fern check plus the agent-variant and route drift checks) validates the inference edits. No runtime behavior changed.
  • Tests not applicable — justification:
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification:
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: self-reviewed; documentation-only prose in the inference pages. No URLs, digests, credential helpers, or CSP changed.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

DGX Station Hardware Evidence

  • Tested on DGX Station
  • Tested commit:
  • Station profile/scenario:
  • Result:
  • Supporting evidence:

Verification

  • PR description includes a Signed-off-by: line and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run check:diff passed when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: npm run docs → fern check 0 errors (2 pre-existing warnings), agent-variant and route drift checks pass.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result:
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only) — fern check reports 0 errors; the 2 warnings are pre-existing and unrelated to this change.
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Signed-off-by: Tinson Lai tinsonl@nvidia.com

- Surface the `agents apply` reference in the declarative manifest guide.
- Scope the Deep Agents recreation heading to its variant.
- Correct the shields sandbox-argument prose in switch-providers.
- Name `NEMOCLAW_AGENT` and `NEMOCLAW_INSTALL_TAG` in quickstart and the starter prompt.

Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Documentation updates add installation variables, clarify manifest application, correct named-sandbox provider commands, and constrain the Deep Agents recreation heading to its variant block.

Changes

Documentation guidance

Layer / File(s) Summary
Installation selection guidance
docs/get-started/quickstart.mdx, docs/resources/starter-prompt.md
Documents NEMOCLAW_AGENT selection and NEMOCLAW_INSTALL_TAG release pinning.
Manifest iteration command
docs/inference/declarative-agents-manifest.mdx
Adds nemoclaw <name> agents apply as the one-step manifest reconciliation command.
Provider switching documentation
docs/inference/switch-providers.mdx
Clarifies named-sandbox command syntax and places the Deep Agents recreation heading within its conditional block.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Possibly related PRs

Suggested labels: area: install

Suggested reviewers: cv

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The docs now add agents apply guidance, fix the Deep Agents heading placement, and resolve the sandbox argument syntax mismatch.
Out of Scope Changes check ✅ Passed All changes match the documented objectives and remain within the requested documentation scope.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title is concise and accurately reflects the main documentation change around inference CLI references.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/nvqa-cli-doc-consistency

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

@laitingsheng laitingsheng added NV QA Bugs found by the NVIDIA QA Team area: cli Command line interface, flags, terminal UX, or output area: docs Documentation, examples, guides, or docs build labels Jul 21, 2026

@coderabbitai coderabbitai Bot 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.

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 `@docs/inference/declarative-agents-manifest.mdx`:
- Line 172: Update the `nemoclaw <name> agents apply` command in the roster
reconciliation guidance to include the required `-f <agents.yaml>` manifest
argument, matching the usage shown near line 179 and the command implementation.
🪄 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: CHILL

Plan: Enterprise

Run ID: 68fdbe37-13e9-4838-95a9-ecb79d1b0c9c

📥 Commits

Reviewing files that changed from the base of the PR and between d5fa194 and 43a068f.

📒 Files selected for processing (4)
  • docs/get-started/quickstart.mdx
  • docs/inference/declarative-agents-manifest.mdx
  • docs/inference/switch-providers.mdx
  • docs/resources/starter-prompt.md

Comment thread docs/inference/declarative-agents-manifest.mdx Outdated
@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor — Informational

Advisor assessment: Informational / high confidence
Next action: No advisor follow-up needed.
Findings: 0 blockers · 0 warnings · 0 suggestions
Status: No actionable findings remain in the canonical review ledger.

Model lanes

  • GPT-5.6 Terra (primary): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Nemotron 3 Ultra (second opinion): Completed · high confidence · 0 blockers · 0 warnings · 0 suggestions
  • Model comparison: normalized findings match; normalized E2E selections match; severity counts match.

Nemotron output stays in workflow artifacts and does not change the assessment above.

E2E guidance

Advisory only. E2E / PR Gate selects and runs jobs independently.

Recommended E2E: None

1 optional E2E recommendation
  • docs-validation

Workflow run details

This automated review informs maintainers. Warnings and suggestions do not require a response. A maintainer decides whether to merge.

The job's shallow, single-SHA checkout never created a local origin/main ref,
so the repository-checks merge-base lookup failed for every docs-only PR.
Deepen the shallow boundary by one generation and name the base commit so
the existing check can resolve it.

Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
@github-code-quality

github-code-quality Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage in commit 0f4461c in the docs/nvqa-cli-doc-co... branch remains at 96%, unchanged from commit 65d78ee in the main branch.

TypeScript / code-coverage/cli

The overall coverage in commit 0f4461c in the docs/nvqa-cli-doc-co... branch remains at 80%, unchanged from commit 65d78ee in the main branch.

Show a code coverage summary of the most impacted files.
File main 65d78ee docs/nvqa-cli-doc-co... 0f4461c +/-
src/lib/inferen...lama/process.ts 100% 50% -50%
src/lib/onboard...ider-cleanup.ts 100% 88% -12%
src/lib/domain/.../connect-env.ts 97% 89% -8%
src/lib/inferen...er-lifecycle.ts 71% 65% -6%
src/lib/platform.ts 89% 84% -5%
src/lib/inference/local.ts 80% 80% 0%
src/lib/inferen...lama-version.ts 100% 100% 0%
src/lib/messagi...nnels/policy.ts 100% 100% 0%
src/lib/inferen...time-context.ts 92% 93% +1%
src/lib/state/g...way-registry.ts 94% 95% +1%

Updated July 21, 2026 13:30 UTC

This reverts commit 3efdaed.

Fixing this requires the whole PR to leave the docs-only check path,
which currently fails on an unrelated, pre-existing reviewed-npm-audit
finding. Tracking that fix separately.

Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
@miyoungc

Copy link
Copy Markdown
Collaborator

Thanks for addressing these QA findings. #7311 is now fully resolved by merged PR #7328, including the install-variable guidance, install-ref/tag precedence, coding-agent-neutral sandbox guidance, and regression coverage.

Please rebase on the latest main and reduce this PR to #7308 and #7309:

  • Keep the changes to docs/inference/declarative-agents-manifest.mdx and docs/inference/switch-providers.mdx.
  • Remove the changes to docs/get-started/quickstart.mdx and docs/resources/starter-prompt.md.
  • Remove Addresses #7311 and the related environment-variable claims from the PR description and verification notes.
  • Retain Fixes #7308 and Fixes #7309.

Suggested title: docs: correct inference CLI references

@miyoungc
miyoungc self-requested a review July 21, 2026 20:02
@miyoungc miyoungc removed their assignment Jul 21, 2026
…sistency

Signed-off-by: Tinson Lai <tinsonl@nvidia.com>

# Conflicts:
#	docs/get-started/quickstart.mdx
#	docs/resources/starter-prompt.md
@laitingsheng laitingsheng changed the title docs: correct inference CLI references and name install env vars docs: correct inference CLI references Jul 23, 2026
cv added a commit that referenced this pull request Jul 23, 2026
<!-- markdownlint-disable MD041 -->
## Summary

Corrects inference documentation so manifest iteration names the
implemented `agents apply -f` command, named-sandbox syntax matches the
CLI, and the Deep Agents recreation heading appears only in the Deep
Agents guide. Adds variant-rendering regression coverage for both QA
defects.

## Related Issue

Fixes #7308
Fixes #7309
Supersedes #7321

## Changes

- Document `nemoclaw <name> agents apply -f <agents.yaml>` in the
manifest iteration guidance without adding the nonexistent `agents show`
command.
- Distinguish positional sandbox names for `shields` from `inference set
--sandbox <name>`.
- Keep the Deep Agents recreation heading inside the `deepagents`
variant block.
- Add focused regression assertions for the affected prose and generated
agent variants.

## Type of Change

- [ ] Code change (feature, bug fix, or refactor)
- [x] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
<!-- Check one tests line and one docs line. Check other lines when
applicable. Add every requested justification or approval reference. -->
- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [x] Docs updated for user-facing behavior changes
- [ ] Docs not applicable — justification:
- [x] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification: Miyoung Choi reviewed
the existing inference command syntax and generated variant behavior; no
inference runtime changed.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Documentation Writer Review
<!-- Required for code and documentation changes after the changes and
applicable validation are complete. Keep one review checkbox and one
instance of each visible or hidden field. For Evidence, list changed
documentation paths. For documentation-only changes, also state that the
writing rules and documentation style were reviewed. For other results,
explain why no documentation change is needed or why the review is
blocked. For Agent, use a consistent product and surface name, such as
Codex Desktop, Codex CLI, Claude Code, or Cursor. Record this PR number.
After committing all review changes, put `git rev-parse --short HEAD`
and `git rev-parse --short HEAD:AGENTS.md` in the hidden metadata below.
Rerun the review and refresh that metadata after any new commit. This
receipt is advisory during the data-collection pilot. -->
- [x] Documentation writer subagent reviewed the completed changes
- Result: `docs-updated`
- Evidence: Reviewed `docs/inference/declarative-agents-manifest.mdx`
and `docs/inference/switch-providers.mdx` for terminology, structure,
voice, and code-sample presentation. The focused 15-test Vitest run and
documentation build passed.
- Agent: Codex Desktop
- PR: #7405
<!-- docs-review-head-sha: c06e315 -->
<!-- docs-review-agents-blob-sha: 560ff38 -->

## DGX Station Hardware Evidence
<!-- Required only when scripts/prepare-dgx-station-host.sh changes.
Maintainers must review the linked evidence before approving or merging.
This is human-reviewed evidence, not authenticated hardware provenance.
Exceptional bypasses use existing repository governance and must be
documented on the PR. -->
- [ ] Tested on DGX Station
- Tested commit:
- Station profile/scenario:
- Result:
- Supporting evidence:

## Verification
<!-- Check each applicable item only when supported by the requested
evidence. Run targeted tests once per relevant change set and rerun
after later edits or hook autofixes that can affect that behavior. Do
not rerun hook-covered checks. -->
- [x] PR description includes a `Signed-off-by:` line and every commit
appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run check:diff` passed when hooks were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: `npx
vitest run --project integration test/agent-variant-docs.test.ts` passed
(1 file, 15 tests).
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result: not applicable; this
change updates two documentation pages and focused regression
assertions.
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only) — passed
with 0 errors and 1 existing light-mode accent contrast warning
unrelated to this diff.
- [x] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)
— not applicable; no pages were added.

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Miyoung Choi <miyoungc@nvidia.com>


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Added guidance for reconciling agent rosters from an `agents.yaml`
manifest.
* Clarified sandbox selection syntax when switching inference providers.
* Improved the placement of Deep Agents sandbox recreation instructions.

* **Tests**
* Added coverage to verify manifest iteration and provider-switching
documentation across supported agent variants.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: Miyoung Choi <miyoungc@nvidia.com>
Co-authored-by: Carlos Villela <cvillela@nvidia.com>
@miyoungc

Copy link
Copy Markdown
Collaborator

Closing as superseded by #7405

@miyoungc miyoungc closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: cli Command line interface, flags, terminal UX, or output area: docs Documentation, examples, guides, or docs build NV QA Bugs found by the NVIDIA QA Team

Projects

None yet

4 participants