From 722a7b08a1a13c0e0eef85a91018ece35c2fee81 Mon Sep 17 00:00:00 2001 From: mmckeen-nv <108093260+mmckeen-nv@users.noreply.github.com> Date: Wed, 24 Jun 2026 00:07:00 -0600 Subject: [PATCH] chore: sync NemoClaw agent options Add the upstream NemoClaw Deep Agents Code sandbox option and keep managed agent create args generalized. Validated with tests, build, diff check, and local read-only runtime/API smokes. --- README.md | 2 +- app/api/sandbox/create/route.ts | 19 ++++++++++++++----- app/components/ConfigurationPanel.tsx | 4 ++-- tests/sandbox-lifecycle-check.mjs | 10 +++++++--- 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e643504..e2c05d9 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,7 @@ Behind a reverse proxy, route WebSocket upgrades for the dashboard proxy paths t ## Hermes Notes -With NemoClaw `v0.0.37`, the create flow includes a Fresh Hermes Sandbox option. It uses NemoClaw onboard with `--agent hermes`; the existing Fresh NemoClaw Image and Quick Deploy paths remain OpenClaw-oriented. +The create flow includes managed NemoClaw agent options beyond the default OpenClaw sandbox. Fresh Hermes Sandbox uses NemoClaw onboard with `--agent hermes`; Fresh Deep Agents Code Sandbox uses `--agent langchain-deepagents-code` for the upstream LangChain Deep Agents Code terminal harness. The existing Fresh NemoClaw Image and Quick Deploy paths remain OpenClaw-oriented. ## Remote Controller Nodes diff --git a/app/api/sandbox/create/route.ts b/app/api/sandbox/create/route.ts index 0439acf..c99de7a 100644 --- a/app/api/sandbox/create/route.ts +++ b/app/api/sandbox/create/route.ts @@ -77,7 +77,7 @@ type NemoClawCreateCommand = { type CreateInferenceMode = "auto" | "vllm" | "nim" type CreateGpuMode = "none" | "auto" | "required" -type NemoClawAgent = "openclaw" | "hermes" +type NemoClawAgent = "openclaw" | "hermes" | "langchain-deepagents-code" type CreateInferenceSettings = { mode: CreateInferenceMode @@ -151,14 +151,15 @@ function nemoClawGpuArgs(mode: CreateGpuMode) { } function nemoClawAgentArgs(agent: NemoClawAgent) { - return agent === "hermes" ? ["--agent", "hermes"] : [] + return agent === "openclaw" ? [] : ["--agent", agent] } function isNemoClawOnboardBlueprint(blueprint: string) { - return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes" + return blueprint === "nemoclaw-blueprint" || blueprint === "nemoclaw-hermes" || blueprint === "nemoclaw-deepagents-code" } function nemoClawAgentForBlueprint(blueprint: string): NemoClawAgent { + if (blueprint === "nemoclaw-deepagents-code") return "langchain-deepagents-code" return blueprint === "nemoclaw-hermes" ? "hermes" : "openclaw" } @@ -180,8 +181,8 @@ function buildNemoClawCreateCommand(gpuMode: CreateGpuMode, agent: NemoClawAgent ? { file: NODE_BIN, args: [NEMOCLAW_BIN, ...args], mode: "cli-onboard" } : { file: NEMOCLAW_BIN, args, mode: "cli-onboard" } } - if (agent === "hermes") { - throw new Error("Hermes sandbox creation requires the current NemoClaw CLI with --agent hermes support. Set NEMOCLAW_BIN in .env.local.") + if (agent !== "openclaw") { + throw new Error(`${agent} sandbox creation requires the current NemoClaw CLI with --agent support. Set NEMOCLAW_BIN in .env.local.`) } if (NEMOCLAW_SETUP && commandExists(NEMOCLAW_SETUP)) { return { file: "/bin/bash", args: [NEMOCLAW_SETUP], mode: "legacy-setup" } @@ -732,6 +733,14 @@ export async function GET() { source: "~/NemoClaw/agents/hermes/Dockerfile", supportsTailscale: false, }, + { + id: "nemoclaw-deepagents-code", + label: "Fresh Deep Agents Code Sandbox", + description: "Bootstraps LangChain Deep Agents Code using NemoClaw's terminal-agent workflow.", + type: "blueprint", + source: "~/NemoClaw/agents/langchain-deepagents-code/manifest.yaml", + supportsTailscale: false, + }, { id: "custom-sandbox", label: "New Custom Sandbox", diff --git a/app/components/ConfigurationPanel.tsx b/app/components/ConfigurationPanel.tsx index d825ef3..01275e3 100644 --- a/app/components/ConfigurationPanel.tsx +++ b/app/components/ConfigurationPanel.tsx @@ -128,7 +128,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre const assembledPolicy = useMemo(() => ({ ...policy, network_policies: blocksToPolicy(blocks) }), [policy, blocks]) const activePreset = selectedPreset ? getSecurityPreset(selectedPreset) : null const activeBlueprint = blueprints.find((bp) => bp.id === selectedBlueprint) - const isNemoClawOnboardBlueprint = selectedBlueprint === 'nemoclaw-blueprint' || selectedBlueprint === 'nemoclaw-hermes' + const isNemoClawOnboardBlueprint = selectedBlueprint === 'nemoclaw-blueprint' || selectedBlueprint === 'nemoclaw-hermes' || selectedBlueprint === 'nemoclaw-deepagents-code' function applyPreset(presetId: SecurityPresetId) { const preset = getSecurityPreset(presetId); if (!preset) return @@ -219,7 +219,7 @@ export default function ConfigurationPanel({ sandboxId, mode = 'existing', onCre