Skip to content

docs: add host-side NemoClaw state reference - #6160

Closed
WilliamK112 wants to merge 2 commits into
NVIDIA:mainfrom
WilliamK112:codex/nemoclaw-host-files-state-6088-v2
Closed

docs: add host-side NemoClaw state reference#6160
WilliamK112 wants to merge 2 commits into
NVIDIA:mainfrom
WilliamK112:codex/nemoclaw-host-files-state-6088-v2

Conversation

@WilliamK112

@WilliamK112 WilliamK112 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #6088.
Supersedes #6158, which was automatically closed by the contributor PR-limit workflow before stale no-diff PR #5402 was cleaned up.

Local validation

  • npx vitest run --project integration test/host-files-state-doc.test.ts
  • npx biome check test/host-files-state-doc.test.ts
  • npm run docs:check-agent-variants
  • fern check via the repo-pinned Fern version from fern/fern.config.json
  • bash test/e2e/e2e-cloud-experimental/check-docs.sh --only-links --local-only docs/reference/host-files-and-state.mdx docs/manage-sandboxes/lifecycle.mdx
  • git diff --check

Summary by CodeRabbit

  • New Features
    • Added a new documentation reference page for host files and state, including key ~/.nemoclaw/ paths, what’s preserved on uninstall, and related sandbox-side notes.
    • Updated documentation navigation so the new reference appears for both agent variants.
  • Documentation
    • Improved uninstall/lifecycle guidance with cross-references to the host files and state layout.
    • Regenerated the CLI reference to clearly separate OpenClaw vs Hermes command behavior and environment-variable guidance.
    • Cleaned up ordering and link targets in the general command reference.
  • Tests
    • Added a test to validate the new reference page, its navigation placement, and its documented path details.

@copy-pr-bot

copy-pr-bot Bot commented Jul 2, 2026

Copy link
Copy Markdown

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

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 6e0f21c3-aaa6-47b1-af73-71d1d11b92d5

📥 Commits

Reviewing files that changed from the base of the PR and between 714a90e and 3b7eb18.

📒 Files selected for processing (4)
  • docs/reference/commands-nemohermes.mdx
  • docs/reference/commands.mdx
  • docs/reference/host-files-and-state.mdx
  • test/host-files-state-doc.test.ts
✅ Files skipped from review due to trivial changes (1)
  • docs/reference/host-files-and-state.mdx
🚧 Files skipped from review as they are similar to previous changes (2)
  • test/host-files-state-doc.test.ts
  • docs/reference/commands-nemohermes.mdx

📝 Walkthrough

Walkthrough

Adds a new reference page for ~/.nemoclaw/ host-side state, links it into navigation and uninstall docs, updates NemoHermes command docs for OpenClaw and Hermes variants, cleans up the generic commands reference, and adds a test for the new host-files documentation.

Changes

Documentation updates

Layer / File(s) Summary
Host files reference and entry points
docs/reference/host-files-and-state.mdx, docs/index.yml, docs/manage-sandboxes/lifecycle.mdx
Adds the new host-files reference page and links it from both agent navigation sections and the uninstall note.
Agent variant intro and onboarding
docs/reference/commands-nemohermes.mdx
Introduces AgentOnly-scoped overview sections and splits onboarding, Brave Search, manifest, restore-path, and flag guidance between OpenClaw and Hermes.
Variant-specific command behavior
docs/reference/commands-nemohermes.mdx
Splits exec, agent, recover, gateway restart, version checks, doctor, dashboard-url, gateway-token, skill install/remove, agents apply, sessions export, rebuild, tunnel stop, and inference set into OpenClaw and Hermes variants.
Environment variables and build-time overrides
docs/reference/commands-nemohermes.mdx
Partitions dashboard-port environment handling and adds OpenClaw-only build-time agent override and extra-agent JSON documentation.
Generic commands reference cleanup
docs/reference/commands.mdx
Removes a duplicated exec block, updates the OpenClaw plugin documentation link, and removes a stray blank line before Remote Deployment.
Host-files doc validation test
test/host-files-state-doc.test.ts
Adds a Vitest suite that checks the new reference page, navigation entries, registry naming, and host-versus-sandbox path distinctions.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • NVIDIA/NemoClaw#4811: Related command-doc regeneration around Hermes/OpenClaw behavior and dashboard semantics.

Suggested labels: area: docs, feature

Suggested reviewers: miyoungc, cjagwani

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding a host-side NemoClaw state reference.
Linked Issues check ✅ Passed The PR adds the unified host-files reference page, links it in navigation and lifecycle docs, and adds coverage for the documented ~/.nemoclaw/ paths.
Out of Scope Changes check ✅ Passed The remaining docs updates appear supportive of the new reference page and docs build, with no clearly unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@WilliamK112
WilliamK112 force-pushed the codex/nemoclaw-host-files-state-6088-v2 branch from fb1388f to 714a90e Compare July 2, 2026 01:42

@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

🧹 Nitpick comments (3)
docs/reference/host-files-and-state.mdx (1)

24-28: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider a <Note> callout for the destructive-action caveat.

This section explains how to trigger data loss (--destroy-user-data, env var, interactive prompt), similar in nature to the <Note> already used for this exact topic in lifecycle.mdx. Wrapping it in a Fern <Note>/<Warning> would be more consistent with the doc guideline and make the caveat harder to miss when skimming the table.

As per coding guidelines, "Use Fern callout components such as <Note>, <Tip>, and <Warning> for callouts in MDX pages."

🤖 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 `@docs/reference/host-files-and-state.mdx` around lines 24 - 28, The uninstall
data-loss caveat in the “User Data Preserved By Uninstall” section should be
presented as a Fern callout for consistency and visibility. Update the MDX
content around the uninstall behavior text to wrap the destructive-action
warning in a `<Note>` or `<Warning>` component, matching the style used in
`lifecycle.mdx`, while keeping the same `$$nemoclaw uninstall` and `nemohermes
uninstall` guidance and the `--destroy-user-data` /
`NEMOCLAW_UNINSTALL_DESTROY_USER_DATA` references.

Source: Coding guidelines

test/host-files-state-doc.test.ts (1)

43-48: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Full-sentence literal assertions are brittle to doc rewording.

These toContain checks lock in exact doc phrasing (e.g. "because \HOME=/sandbox` there", full sentence in line 47). A copyedit that preserves the same meaning will break this test even though the documented claim still holds. Consider asserting on shorter, meaning-carrying key phrases (e.g. `` HOME=/sandbox`` and ``/sandbox/.nemoclaw/config.json` ``) rather than entire sentences.

As per path instructions, "Prefer observable outcomes through the public boundary over source-text, private-shape, or mock-call assertions."

🤖 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 `@test/host-files-state-doc.test.ts` around lines 43 - 48, The test in
host-files-state-doc is too brittle because it asserts full doc sentences
instead of the observable claim. Update the assertions in the doc check to use
shorter, meaning-carrying phrases tied to the public content, such as the
`HOME=/sandbox` mention and `/sandbox/.nemoclaw/config.json`, rather than exact
wording. Keep the `doc`-based `toContain` checks in this test but make them
resilient to copyedits by targeting the key identifiers from the documented
behavior.

Source: Path instructions

docs/reference/commands-nemohermes.mdx (1)

552-556: 🎯 Functional Correctness | 🔵 Trivial | 💤 Low value

Duplicate the nemohermes <name> exec heading.
Two sections use the same heading text at lines 552 and 955. Merge the exec content into one section or rename one heading so the generated anchors stay unique and the two command descriptions do not diverge.

🤖 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 `@docs/reference/commands-nemohermes.mdx` around lines 552 - 556, The
`nemohermes <name> exec` heading is duplicated, which creates conflicting
anchors and splits one command’s documentation across two sections. In the
`commands-nemohermes.mdx` content, either merge the duplicate `exec` section
into the existing `nemohermes <name> exec` entry or rename one of the headings
so each command has a unique title; keep the descriptions aligned under a single
canonical section.
🤖 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/reference/commands-nemohermes.mdx`:
- Around line 2616-2619: The MDX block under AgentOnly variant="openclaw" is
missing a paragraph break before the “### Remote Deployment” heading, so it may
not render correctly as an h3. Update the content in the AgentOnly section to
insert a blank line immediately after the opening AgentOnly tag, keeping the
heading in its own paragraph so the MDX parser recognizes it properly.

---

Nitpick comments:
In `@docs/reference/commands-nemohermes.mdx`:
- Around line 552-556: The `nemohermes <name> exec` heading is duplicated, which
creates conflicting anchors and splits one command’s documentation across two
sections. In the `commands-nemohermes.mdx` content, either merge the duplicate
`exec` section into the existing `nemohermes <name> exec` entry or rename one of
the headings so each command has a unique title; keep the descriptions aligned
under a single canonical section.

In `@docs/reference/host-files-and-state.mdx`:
- Around line 24-28: The uninstall data-loss caveat in the “User Data Preserved
By Uninstall” section should be presented as a Fern callout for consistency and
visibility. Update the MDX content around the uninstall behavior text to wrap
the destructive-action warning in a `<Note>` or `<Warning>` component, matching
the style used in `lifecycle.mdx`, while keeping the same `$$nemoclaw uninstall`
and `nemohermes uninstall` guidance and the `--destroy-user-data` /
`NEMOCLAW_UNINSTALL_DESTROY_USER_DATA` references.

In `@test/host-files-state-doc.test.ts`:
- Around line 43-48: The test in host-files-state-doc is too brittle because it
asserts full doc sentences instead of the observable claim. Update the
assertions in the doc check to use shorter, meaning-carrying phrases tied to the
public content, such as the `HOME=/sandbox` mention and
`/sandbox/.nemoclaw/config.json`, rather than exact wording. Keep the
`doc`-based `toContain` checks in this test but make them resilient to copyedits
by targeting the key identifiers from the documented behavior.
🪄 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: 62295e32-8c82-44ce-ab55-f872d7b09b45

📥 Commits

Reviewing files that changed from the base of the PR and between ba687cf and 714a90e.

📒 Files selected for processing (5)
  • docs/index.yml
  • docs/manage-sandboxes/lifecycle.mdx
  • docs/reference/commands-nemohermes.mdx
  • docs/reference/host-files-and-state.mdx
  • test/host-files-state-doc.test.ts

Comment thread docs/reference/commands-nemohermes.mdx Outdated
Comment on lines +2616 to +2619
<AgentOnly variant="openclaw">
### Remote Deployment

The following variables seed defaults for `nemohermes deploy` and `nemohermes onboard --remote`, which provision a sandbox on a Brev instance.

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Show the relevant region with line numbers.
sed -n '2608,2624p' docs/reference/commands-nemohermes.mdx | cat -n

printf '\n--- nearby AgentOnly examples ---\n'
rg -n -C 1 '^<AgentOnly' docs/reference/commands-nemohermes.mdx | sed -n '1,40p'

Repository: NVIDIA/NemoClaw

Length of output: 3305


Add a blank line after <AgentOnly variant="openclaw">

### Remote Deployment needs its own paragraph break so MDX renders it as an h3.

🤖 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 `@docs/reference/commands-nemohermes.mdx` around lines 2616 - 2619, The MDX
block under AgentOnly variant="openclaw" is missing a paragraph break before the
“### Remote Deployment” heading, so it may not render correctly as an h3. Update
the content in the AgentOnly section to insert a blank line immediately after
the opening AgentOnly tag, keeping the heading in its own paragraph so the MDX
parser recognizes it properly.

@wscurran wscurran added area: docs Documentation, examples, guides, or docs build chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior labels Jul 2, 2026
@wscurran

wscurran commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

✨ Thanks for the docs update. This adds a unified host-side state reference and links it from both OpenClaw and Hermes navigation.


Related open PRs:


Related open issues:

@wscurran
wscurran requested a review from miyoungc July 2, 2026 15:07
@miyoungc

miyoungc commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the contribution. Please pause and re-check the repository requirements before requesting further review.

NemoClaw has several layers of contributor guidance that must be followed for every PR: CONTRIBUTING.md, AGENTS.md, the PR template, and the relevant repo skills/workflow instructions. In particular, contributor-owned PRs must include the required DCO Signed-off-by: declaration and every commit must appear as Verified in GitHub before maintainers spend time on review.

If you are using an AI coding agent, please make sure it is actually reading and following those repo instructions. The repeated misses here should be fixed in your agent workflow before opening or updating more PRs.

Closing for now. Please reopen after the DCO declaration and commit verification requirements are resolved.

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

Labels

area: docs Documentation, examples, guides, or docs build chore Build, CI, dependency, or tooling maintenance integration: hermes Hermes integration behavior integration: openclaw OpenClaw integration behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[All Platforms][Docs] no unified reference page for ~/.nemoclaw/ host-side config and state files — information scattered across 4+ pages

3 participants