Client-side transport and headless execution for Deep Agents Code.
Non-interactive execution mode.
Provides run_non_interactive which runs a single user task against the
agent graph, streams results to stdout, and exits with an appropriate code.
The agent runs inside a langgraph dev server subprocess, connected via
the RemoteAgent client (see server_manager.server_session).
Shell commands are gated by an optional allow-list (--shell-allow-list):
recommended or explicit list → shell enabled, commands validated
against the list; non-shell tools approved unconditionally.all → shell enabled, any command allowed, all tools auto-approved.An optional quiet mode (--quiet / -q) suppresses stream-time diagnostics
(the tool-call and file-operation notifications) so stdout carries only the
agent's response text.
Resolve dcode -r <id> -n ... into a thread the headless run may continue.
Headless resume never falls back to a new thread. Threads stay bound to the workspace policy they were created with, so only threads started headless from the same directory with the same flags can be resumed here.
Combine independently reported main-task and side-question usage for display.
Client-facing CLI command implementations.
Local LangGraph server launch helpers for Deep Agents Code clients.