Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/inference/declarative-agents-manifest.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ Workspaces under `/sandbox/.openclaw/workspace-<id>` are preserved across rebuil
The runtime startup script provisions them on first boot rather than baking their contents.

For ad-hoc per-agent edits inside an existing sandbox without a rebuild, use the in-sandbox CLI, `nemoclaw <name> agents add|delete|list`.
To reconcile the roster against a manifest, use `nemoclaw <name> agents apply -f <agents.yaml>`.
See [Apply to an Existing Sandbox](#apply-to-an-existing-sandbox).

Use the manifest for fixed, checked-in layouts.
Use the CLI passthrough for interactive work.
Expand Down
7 changes: 4 additions & 3 deletions docs/inference/switch-providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ Run `$$nemoclaw onboard` to register the provider, then retry the switch.
<AgentOnly variant="openclaw,hermes">

Pass the target provider and model together.
Pass `--sandbox <name>` when you do not want to use the default sandbox.
Target a non-default sandbox by name.
The `shields` commands take a positional name. `inference set` takes `--sandbox <name>`.

```bash
$$nemoclaw <name> shields down
Expand All @@ -61,10 +62,10 @@ This flag does not bypass shared-gateway compatibility checks.

</AgentOnly>

## Recreate a Deep Agents Sandbox

<AgentOnly variant="deepagents">

## Recreate a Deep Agents Sandbox

Deep Agents uses fresh sandbox recreation for provider changes.
The recreation validates the provider and rewrites `/sandbox/.deepagents/config.toml` with the OpenShell route.

Expand Down
45 changes: 45 additions & 0 deletions test/agent-variant-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,51 @@ import { AgentOnly } from "../_components/AgentGuide";
);
});

it("lists only implemented commands in manifest iteration guidance (#7308)", () => {
const manifest = readFileSync(
new URL("../docs/inference/declarative-agents-manifest.mdx", import.meta.url),
"utf8",
);
const rendered = renderAgentVariantPage(manifest, "openclaw", {
sourcePath: "/repo/docs/inference/declarative-agents-manifest.mdx",
});
const iteratingStart = rendered.indexOf("## Iterating");
const iteratingEnd = rendered.indexOf("## Apply to an Existing Sandbox", iteratingStart);
const iterating = rendered.slice(iteratingStart, iteratingEnd);

expect(iteratingStart).toBeGreaterThanOrEqual(0);
expect(iteratingEnd).toBeGreaterThan(iteratingStart);
expect(iterating).toContain("agents add|delete|list");
expect(iterating).toContain("agents apply -f <agents.yaml>");
expect(iterating).not.toContain("agents show");
});

it("renders provider-switch instructions for the applicable agent variants (#7309)", () => {
const source = readFileSync(
new URL("../docs/inference/switch-providers.mdx", import.meta.url),
"utf8",
);
const render = (variant: "openclaw" | "hermes" | "deepagents") =>
renderAgentVariantPage(source, variant, {
sourcePath: "/repo/docs/inference/switch-providers.mdx",
});
const openclaw = render("openclaw");
const hermes = render("hermes");
const deepAgents = render("deepagents");
const recreationHeading = "## Recreate a Deep Agents Sandbox";
const namedSandboxSyntax =
"The `shields` commands take a positional name. `inference set` takes `--sandbox <name>`.";

expect(openclaw).toContain(namedSandboxSyntax);
expect(openclaw).toContain("nemoclaw <name> shields down");
expect(openclaw).not.toContain(recreationHeading);
expect(hermes).toContain(namedSandboxSyntax);
expect(hermes).toContain("nemohermes <name> shields down");
expect(hermes).not.toContain(recreationHeading);
expect(deepAgents).toContain(recreationHeading);
expect(deepAgents).not.toContain(namedSandboxSyntax);
});

it("keeps the troubleshooting security review link within each agent guide (#6558)", () => {
const troubleshooting = readFileSync(
new URL("../docs/reference/troubleshooting.mdx", import.meta.url),
Expand Down
Loading