Skip to content

feat: add the Deep Agents Code agent image with its terminal UI - #14043

Merged
cv merged 4 commits into
v1from
feat/deepagents-code-harness
Oct 31, 2026
Merged

cv merged 4 commits into
v1from
feat/deepagents-code-harness

Conversation

@cv

@cv cv commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

Failure

NemoClaw can't run LangChain's Deep Agents Code (dcode), so #14011's third P0 interface, its terminal UI, has no image to run in. Fabric's Deep Agents Code adapter (NVIDIA/NeMo-Fabric#546, in the reference implementation that v1 already pins) runs one dcode --acp process per runtime. With interfaces.terminal, it writes a launcher for dcode's terminal UI.

Decision

  • Image: a deepagents-code agent image built with the add-fabric-harness steps. It contains Fabric's packed TypeScript adapter on Node.js, and dcode 0.2.2 in its own Python 3.14 environment, installed from a hash-locked uv.lock under image/fabric/deepagents-code/. It also adds the Bake target, the catalog entry (regenerated with --adapter), an example, and the image docs.
  • Apply output: for the terminal, apply prints openshell sandbox exec -n SANDBOX --tty -- <launcher> with the current runtime ID, plus the sh form for noexec mounts, in human and -o json output. It prints no forward and no token.
  • Docs: the terminal UI opens a separate session that shares the runtime's state. It can list the runtime's thread but not open it while the runtime runs ([Bug]: Deep Agents Code's terminal UI can't resume the runtime's thread NeMo-Fabric#567).
  • Live test: the terminal checks run inside interfaces_live, on the same gateway as OpenClaw and Hermes, rather than as a separate test. That keeps the Docker live step under its time budget without raising it. The test sends one request through Fabric, then opens the launcher with openshell sandbox exec --tty, gets past dcode's first-run onboarding, and gets a reply to one prompt from the configured model.
  • Live tests stay serial: OpenShell gives every containerized gateway's helper containers the same names, so parallel gateway starts on one engine can collide (bug(docker): containerized gateways reuse helper container names openshell-supervisor-extract-1-<seq>, so concurrent starts on one engine can collide ai-openshell/openshell#5094).

For a maintainer:

  • ghcr.io/nvidia/nemoclaw/v1/deepagents-code exists (internal), and NVIDIA/NemoClaw has Write access.
  • Licenses to review: langgraph-runtime-inmem 0.37.0, which serves the terminal UI's local agent server, is under the Elastic License 2.0. textual-speedups 0.2.1 declares no license.

Validation

Completes #14011's P0 harnesses.

cv added 4 commits October 31, 2026 11:40
Fabric ships nvidia.fabric.langchain.deepagents-code, a TypeScript adapter
that runs LangChain's dcode as an ACP server and can write a launcher for
dcode's terminal UI, but NemoClaw built no image for it. This is the Deep
Agents Code part of #14011.

- Image: a deepagents-code stage builds and packs Fabric's adapter like Pi's,
  on the interactive base (Node.js, git, ripgrep), and installs
  deepagents-code 0.2.2 in its own Python 3.14 environment,
  /opt/deepagents-code, with dcode on PATH. NemoClaw locks it in
  image/fabric/deepagents-code/uv.lock; the image installs the lock's export
  with every hash required, and builds its one source distribution,
  forbiddenfruit, with the lock's hash-checked setuptools as a build
  constraint. The lock and the export are retained under
  /opt/nemoclaw/source.
- Bake entry, bundled catalog (regenerated with --adapter for the new
  adapter), example with interfaces.terminal, contract fixture, onboarding
  name, test lists.
- HCL e2e: the catalog-derived fixture image digest changes with the
  catalog, and with it the inference resource names in the
  openshift-external-two-providers scenario.
- Live test: cargo ci live-docker also builds this image and applies a
  deployment with the terminal enabled against an in-test
  OpenAI-compatible stand-in without credentials. It invokes through
  Fabric, then runs the launcher with the pinned OpenShell CLI's
  sandbox exec --tty in a pseudo-terminal, sends one prompt, gets the
  reply for the configured model, and destroys.
- Docs: the terminal, its separate session, the agent-writable launcher
  and dcode's unauthenticated loopback agent server; the harness, state,
  build, release, notice and limits pages.

Signed-off-by: Carlos Villela <[email protected]>
Deep Agents Code's adapter writes a launcher for dcode's terminal UI when
harness.settings.interfaces.terminal is set, but apply didn't say how to
run it, and a person had to read the runtime ID from the state.

Planning already accepts the terminal through the generic
harness_interfaces check, since the adapter's descriptor declares it with
only enabled; a test now pins that, and that a port is rejected.

After apply, each enabled terminal is reported with its launcher for the
current runtime and the sandbox_exec sign-in, in the JSON result under
interfaces. The human output prints the openshell sandbox exec --tty
command and its sh form for a noexec mount, under the existing gateway and
workspace selection, with no forward or token. The live test checks the
reported launcher and runs it. docs/interfaces.md moves the terminal guide
under Reach an Agent Interface, with this output.

Signed-off-by: Carlos Villela <[email protected]>
The manual test found that dcode -r <thread> fails with "Thread can't be
resumed ... open elsewhere": the runtime's ACP session holds its thread
while the runtime runs, and the launcher refuses once the runtime stops
(NVIDIA/NeMo-Fabric#567). docs/interfaces.md said the launcher's -r
resumed that thread.

Say instead that the terminal UI opens a separate session sharing the
runtime's state, that `<launcher> threads list` shows the runtime's
thread, and that it can't be opened while the runtime runs, as Fabric's
corrected adapter docs (cv/NeMo-Fabric@76199603) do; list the limit in
docs/limits.md. The Fabric pin stays at 6cad3504: that commit changes only
docs and a launcher comment.

Signed-off-by: Carlos Villela <[email protected]>
…gateway

The Docker live suite runs its tests one at a time, and its 351.5 s
baseline is close to the 360 s budget. The Deep Agents Code terminal test
started and destroyed a managed gateway of its own for one sandbox, beside
interfaces_live's gateway for OpenClaw and Hermes. Running the tests in
parallel isn't safe: OpenShell's gateways all name their helper
containers openshell-supervisor-extract-1-<seq>, because the gateway is
PID 1 in its container, so concurrent starts on one engine can collide.

Fold the terminal test into interfaces_live's deployment instead, so one
gateway serves all three agents and the suite starts one gateway fewer:

- The interfaces document gains a coder sandbox: the Deep Agents Code
  image with approval_mode auto and interfaces.terminal, routed to the
  same model stand-in.
- interfaces_live checks that apply reports the terminal's launcher for
  the current runtime, invokes Deep Agents Code through Fabric's bridge,
  then opens the reported launcher with openshell sandbox exec --tty in a
  pseudo-terminal and gets the reply to one prompt for the configured
  model. Its key check now covers the terminal's and invocation's
  requests too.
- The stand-in answers a last message naming "token TOKEN" with
  REPLY-TOKEN, so a reply ties to its prompt; other prompts keep the
  run's reply. The pseudo-terminal helpers move to their own module.
- The runner no longer writes the terminal's own document; the test is
  renamed openclaw_hermes_and_deep_agents_code_interfaces_work_as_apply_reports.
- Unit tests: the document's coder sandbox, the reply derivation, and the
  terminal's control-sequence stripping and shell quoting.

The live suite hasn't run with this change yet.

Signed-off-by: Carlos Villela <[email protected]>
@cv

cv commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial Pi Pi subagent in RPC mode; the session record doesn't store Pi's version. The final rebase onto v1 and its cargo ci ran in the coordinating session.
Skills partial add-fabric-harness (complete read) Skills injected at startup aren't stored in the record.
Instruction files partial WRITING.md (complete read) Startup project-context injection, including AGENTS.md, isn't stored in the record.
Tool calls recorded 394 typescript calls (8 returned errors) Nested host calls aren't itemized.
Session window recorded 2026-10-30T15:05:16Z–2026-10-31T18:29:18Z Spans idle time between rounds of work.
Compactions recorded 0 No compaction entries in the session record.
Models recorded azure/anthropic/claude-opus-5-5, aws/anthropic/bedrock-claude-opus-5-5 Moved to the second endpoint after provider rate limits.
Reasoning levels recorded high From the session's thinking-level setting.

@cv
cv enabled auto-merge (squash) October 31, 2026 18:44
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7ccc865 into v1 Oct 31, 2026
92 of 94 checks passed
@cv
cv deleted the feat/deepagents-code-harness branch October 31, 2026 19:07
cv added a commit that referenced this pull request Oct 31, 2026
… denied (#14044)

## Summary

Pins Fabric `995cc79e` from the `cv/NeMo-Fabric` reference
implementation. It fixes OpenClaw's stop inside OpenShell sandboxes, and
refactors the interface code shared by the OpenClaw and Hermes adapters
without changing what they do.

## Related Issue

Follows #14011. Fabric changes:
<cv/NeMo-Fabric@e7913b6...995cc79>.

## Changes

- Moves `FABRIC_REVISION` and `FABRIC_SHA256` in
`image/fabric/Dockerfile`, the `nemo-fabric-core` rev in three
`Cargo.toml` files and `Cargo.lock`, and the catalog's revision and
checksum. Docs links that name the revision move too.
- Updates the fixture image refs in two HCL case files. They still held
the digest from before #14043, which went unnoticed because the runner
replaces them with the computed fixture image.

## Failure, Decision and Validation

**Failure.** OpenShell's sandbox denies signals to a process group with
`EPERM`. Fabric's OpenClaw adapter logged that error on `stop` and left
the Gateway running until the sandbox went away. The Hermes and ACP
adapters already fell back to signaling the child directly.

**Decision.** Fabric `fd50ca30` gives OpenClaw the same fallback,
through helpers now shared in
`nemo_fabric_adapters.common.local_interfaces`. The other Fabric commits
in this range are refactors and tests; no descriptor changed, so the
catalog only records the new revision.

**Validation.** On `linux_arm64`: `cargo ci` passed (1805 tests and 162
lifecycle tests); `cargo ci live-docker` passed; `cargo ci live-kind`
passed. A manual retest of all three harnesses with a real model passed
on the same content; screenshots are on #14011. No NemoClaw test forces
OpenShell to deny the group signal, so the fix itself is covered by
Fabric's tests, not here.

## Type of Change

- [x] Dependency or pin update

## Verification

- [x] `cargo ci`
- [x] `cargo ci live-docker`
- [x] `cargo ci live-kind`

## AI Disclosure

- [x] AI agent used: Pi with Claude Opus 5.5

Signed-off-by: Carlos Villela <[email protected]>

Signed-off-by: Carlos Villela <[email protected]>
jyaunches pushed a commit that referenced this pull request Nov 2, 2026
## Failure

The `verify-yaml-deployment` skill covered OpenClaw and Hermes, but not
Deep Agents Code (#14043). Its terminal (#14037) is the one interface
kind the skill didn't drive: it has no port or token, and you open it
with the `openshell sandbox exec` command apply prints. Following the
target's `deepagents` example as written also fails: the route's
`maxTokens` and the harness's `execution` pass plan, and then apply
fails with `validation_failed`, because the adapter accepts only
`models` and `models.base_url`.

## Decision

- **`agents/deepagents-code.md`:** start from
`examples/gtc-dc/deepagents-dgx-spark.yaml`, since there's no Deep
Agents Code Spark example. Set the harness to
`nvidia.fabric.langchain.deepagents-code` with `approval_mode` and
`interfaces.terminal`, and drop `maxTokens` and `execution`. The file
shows how to read what the image's adapter accepts, and lists the gaps:
no sign-in beyond OpenShell's, the terminal's unauthenticated agent
server, and validation that only happens at apply (#13319).
- **`features/deepagents-code-terminal.md`:**
- open the terminal UI with the printed `Open` command, in a
pseudo-terminal from util-linux `script`;
- get a fresh-word reply on the configured model, and quit with Ctrl-D;
- after a sandbox replacement, check the old launcher is gone and the
new one works.

The driver is an inline `python3` snippet, like the skill's YAML edits,
following the `interfaces_live` test. It fails a turn that Ctrl-D
interrupted.
- **Listings:** the agent table, the feature map, and the DGX Spark
target list the new agent.

## Validation

- Driven live on a DGX Spark (linux/arm64, OpenShell 0.1.6) at
`7cc29a4a3e`, against an existing vLLM.
- **First run, all features:**
  - **Answer:** `READY_OK` through Fabric, under the same runtime.
- **Terminal:** `dcode` opened on `openai:nemotron-3.5-super-vl`,
answered the fresh word, and exited 0 on Ctrl-D.
- **Export and reapply:** unchanged, with the same **Agent interfaces**
block.
- **Exposure change:** replaced the sandbox, after which the old
launcher reported `No such file or directory` and the new one answered.
- **Second run:** used the agent file's YAML edits and the feature
file's commands verbatim. Apply succeeded and all terminal steps passed,
including after a replacement.
- **Cleanup:** both runs destroyed cleanly, with no object of either
run's UID left.
- **The skill's own check caught a bug:** a first draft of the reply
check passed even though Ctrl-D had interrupted the turn. The driver in
the file requires a line holding only the word, and no `Interrupted by
user`.
- **Static checks:** links, anchors, and YAML blocks resolve. `cargo ci
fmt` passes, and `cargo ci` selects no bundle, lifecycle, or live steps
for this Markdown-only change.
- **Not run:** a managed model service, and targets other than DGX
Spark.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: cli Command line interface, flags, terminal UX, or output area: e2e End-to-end tests, nightly failures, or validation infrastructure area: integrations Third-party service integration behavior area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening area: ui Web UI, terminal display, visual layout, or UX behavior feature PR adds or expands user-visible functionality integration: dcode LangChain Deep Code integration behavior v1 NemoClaw v1 branch labels Nov 2, 2026
cv added a commit that referenced this pull request Nov 11, 2026
…ms (#14413)

The release notes now list every user-visible change on `v1` since the
`v0.1.0-rc9` tag, including the breaking ones, and four example pages
drop claims that later changes made false.

## Problem

`docs/about/release-notes.md` listed three breaking changes and none of
the features, fixes, and onboarding changes that reached `v1` after
`v0.1.0-rc9`; it didn't name the configuration shapes the parser now
rejects or the intent record version `v0.1.0-rc9` writes.
Some example claims went stale:

- `examples/spark/README.md` said the pinned OpenShell has the Podman
TLS initialization blocker, ai-openshell/openshell#3427; its fix merged before
OpenShell 0.1.0, and `v1` pins 0.1.7.
- `examples/station/README.md` and `examples/gtc-dc/README.md` required
exactly one visible GPU on the host; since #13929,
`container.gpuDevices` lets a service on a host with more GPUs request
one.
- `examples/hcl/travel-team` said Fabric's Deep Agents adapter can't
turn reasoning off, NVIDIA/NeMo-Fabric#433; NVIDIA/NeMo-Fabric#439 fixed
that, and the pinned catalog's Deep Agents `reasoning_effort` accepts
`none`.
- The travel team cited #13313 for the booking key its service doesn't
receive, but #13313 closed when `openshell_api` landed.

## Change

- `docs/about/release-notes.md` gains "Changes Since v0.1.0-rc9",
grouped by area, from the commits in `v0.1.0-rc9..origin/v1`; where a
later commit changed an earlier one, the entry describes the current
code, and changes added and removed after the tag aren't listed:
- Agents and interfaces: #14037, #14038, #14269, #13981, #14024, #14186,
#14052, #14385, #13971, #13858, #13947, #14039, #14042, #14044, #14343.
- Inference: #13929, #14391, #14396, #14398, #14400, #13963, #13912,
#13964, #14388, #14390, #14397.
- Gateways and Kubernetes: #13909, #13970, #13922 (an existing
namespace, refused at plan by #13756, is now bound; cluster-wide reads
dropped), #14014, #14169, #13921.
- Plan, apply, and diagnostics: #14224, #13756, #14141, #14133, #14135,
#13775, #13744, #13701.
- Onboarding: #13693, #13695, #13741, #13757, #13851, #13978, #14228,
#14233, #14334, #14336.
- Examples and builds: #14166, #14184, #14188, #14191, #14192, #14200,
#13889, #14267, #14312, #14315, #14355, b30e9b4, #13781, #13813,
#14246, and the pins in `versions.json` and `image/fabric/Dockerfile`.
- Its breaking changes since the tag:
- the intent record moving from 15, which `v0.1.0-rc9` writes, through
16 (#14266), 17 (#14343), 18 (#13929), 19 (#14391) and 20 (#14394);
  - name-keyed `sandboxes` and `inferenceProviders` (#13703, #13705);
- a recipe `compatibility.gpu` outside every hardware profile (#13912);
- model tuning the adapter doesn't accept (#14111), and Hermes's
`max_tokens` losing its default (#14296);
  - `skills.paths` resolution (#14296);
  - endpoint and `networkCIDR` validation (#13847, #14081);
- the HCL `gateway_values` attribute (#14014), and Kubernetes ownership
receipts from before #13922 and #14014.
  The two earlier items stay, under their own heading.
- `examples/spark/README.md` replaces the closed OpenShell#3427 blocker
with the Podman and remote-model limits in `docs/resources/limits.md`.
- `examples/station/README.md` and `examples/gtc-dc/README.md` require
one GPU visible in the model container, and point to
`container.gpuDevices` for a host with more.
- `examples/hcl/travel-team/README.md` and `WALKTHROUGH.md` drop the
NeMo-Fabric#433 limitation, and the travel team's booking-key statements
link #14417 instead of #13313.

Not listed, because both changes landed after the tag: Deep Agents Code
(#14043, #14250), `compatibility.gpuCount` (#14391, #14394), and the
"Creating infrastructure state" progress step (#14169, #14248).

Checked and left unchanged: the root `README.md`,
`crates/nemoclaw-onboarding/README.md`,
`crates/nemoclaw-cli/assets/README.md`, `internal-docs/README.md`, the
other example READMEs, and every example YAML header comment. The GPU
autoscaling README and `load.sh` read the JSON fields `OperationResult`
serializes, and ai-openshell/openshell#4287 is fixed only after the pinned
0.1.7. The two pre-tag release-note items still match the schema and
SDK. `docs/README.md` is left to #14412, which retires the stale field
reference snapshot it describes.

Not verified: whether Hermes sends the booking key's placeholder to MCP
servers; #14417 tracks the live check.

## Beyond CI

Each relative link and anchor in the changed files resolves to an
existing file and heading.
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: cli Command line interface, flags, terminal UX, or output area: e2e End-to-end tests, nightly failures, or validation infrastructure area: integrations Third-party service integration behavior area: packaging Packages, images, registries, installers, or distribution area: security Security controls, permissions, secrets, or hardening area: ui Web UI, terminal display, visual layout, or UX behavior feature PR adds or expands user-visible functionality integration: dcode LangChain Deep Code integration behavior v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants