Marks / Runtime
software-agent-sdk
Programmable capabilities
- 3 Capability interface Tool specs, MCP, plugins, client tools; regex filtering; no deferral or tool search found (level 4 unmet)
- 1 ↑2 Reusable computation opt: load_user_skills / load_project_skills Skill loaders default False (agent_context.py:87-100), so nothing executable is rediscovered by default; enabled skills with scripts give L2
Review finding
Partial. Skills (scripts, references, assets), git-fetched plugins and agent
.mdfiles are file-based. Inline!`cmd`in a skill runs at render time with process privileges. [opt: workflow tool] runs model-written Python orchestration in-process ("MVP"), but scripts are not kept as named workflows. P106P107P108P109P110P115 - 2 Capability transfer Git-fetched plugins and serializable Agent; fork exists; tool modules not dependency-checked (level 3 unmet)
Review finding
Built in at the config level.
Agent(LLM, tool specs, MCP, skills, condenser) is a serializable pydantic model. Conversations fork with full event history. Tool modules must be installed in the target. Secrets are redacted and lost on restore without a cipher. Sub-agents get exactly the parent's MCP servers. P111P112P113P114
Evidence and memory
- 0 ↑3 Durable evidence opt: persistence_dir on agent-server with retention set Default InMemoryFileStore; with persistence, append-only events, configurable server retention, condensation keeps events
- 1 ↑2 Context recovery exp: conversation_mentions Condensed events kept but unreadable by the agent (L1); experimental opt-in retrieval tool reaches L2
Review finding
- 0 ↑1 Memory maintenance opt: load_memory=True load_memory off; when on, MEMORY.md kept via ordinary file tools per prompt; no dedicated tools (level 2 unmet)
Specialist collaboration
- 0 ↑3 Specialist definition opt: enable_sub_agents=True task tool off in default preset; AgentDefinition sets tools/model/prompt; L4 unmet: never_confirm widens
Review finding
Registry built in;
tasktool optional (enable_sub_agents=Falseby default).AgentDefinition(Markdown, plugin or code) sets tools, model, prompt, skills,permission_mode, caps, hooks. MCP is always inherited. Scope narrows visibility only; a definition may setnever_confirmC120C121C122C134; Note C-9. - 0 ↑3 Continuation opt: enable_sub_agents + agent-server child conversations Off by default; local resume in-process only (ID map in memory); agent-server child conversations survive restart
- 0 ↑2 Coordination opt: enable_sub_agents / workflow tool Off by default; workflow concurrency cap 8 (max 64); L3 unmet: no depth cap, no cancel propagation
Review finding
Execution controls
- 0 ↑3 Confinement opt: DockerWorkspace / server docker runtime Local default host execution, NeverConfirm; container workspaces run all tools inside the container; open bridge network, so not L4
Review finding
No enforced boundary in the local default: terminal, file editor (any absolute path) and browser run on the host.
confirmation_policydefaults toNeverConfirmand the analyzer is off. [opt: AlwaysConfirm/ConfirmRisky; blocking PreToolUse hooks]. [opt: DockerWorkspace: open bridge network, no cap-drop, passwordless-sudo image]. [opt: server docker runtime: cap-drop ALL, no-new-privileges, resource limits, host bind mounts]. X124X125X126X127X128X129X130 - 2 ↑3 Credential handling opt: DockerWorkspace forward_env Host env minus small denylist, LLM_API_KEY visible; DockerWorkspace passes only forward_env allowlist
Review finding
Partial, built in. Terminal subprocesses inherit the host env minus a small denylist (session keys,
OH_SECRET_KEY, OTel/Laminar headers), so provider keys such asLLM_API_KEYstay visible locally. Registered secrets are injected only into commands that reference them and masked in output, including streamed output. [opt: DockerWorkspace passes onlyforward_env]. X131X132X133 - 2 Budget enforcement 500 iterations and post-step $ cap; child cost merged only at completion does not meet 'covering descendants' (R4)
Review finding
max_iteration_per_rundefaults to 500.max_budget_per_run($, default None) is checked after each step against the conversation's accumulated cost across all its LLMs. It is not a pre-call check, so a step can overshoot, and unknown costs (None) are never counted. Subagents get the parent's full cap; a child's cost reaches the parent's total only when the child's metrics are synced at completion. X124X134X135X136X137X138 Note X-5
Product integration
- 4 Embedding interfaces Python SDK, in-process Local plus Remote over HTTP+WS; typed events, run/pause/send, confirmation policy, client tools
Review finding
Built in: Python SDK with in-process
LocalConversationorRemoteConversationover HTTP+WS; agent-server with REST, event WebSocket with resend, OpenAI-compatible/v1gateway and webhooks; TS client. Server binds loopback unless a session API key is set. ACP and MCP: client side only. I118I119I120I121I122I123 - 2 Declarative configuration Pydantic types and ranges validated; unknown keys silently ignored for Config, LLM and settings
- 0 ↑3 Durable execution alt: agent-server Local SDK persists nothing without
persistence_dir. The server survives disconnect and marks stale RUNNING as ERROR, with no auto re-runReview finding
Local SDK:
run()is synchronous in the caller's thread; nothing persists withoutpersistence_dir. Server: runs in background tasks that survive disconnect; second run rejected. On reload, stale RUNNING becomes ERROR, no auto re-run. File lease (45 s TTL) per conversation; 5 LLM retries. I128I129I130I131I132I133I134
Operations and verification
- E * Service dependencies Local SDK runs no services; the agent server stays resident with lease and eviction loops
- 1 ↑3 Execution records opt: persistence_dir Local default keeps events in memory only, capped at 1 (R12); with persistence, structured error/limit events plus optional OTel
Review finding
- 3 Result checks Opt-in critic and goal judge re-prompt up to
max_iterationsand recordcappedvscomplete. No default check, so not level 4
Reproducibility
- Branch
- main
- Exact revision
cf8158bc25f5552c50ad131a5f0ce2dbc297789b- Commit date
- 2026-11-27T09:19:34-05:00
Metadata
- Exact revision
cf8158bc25f5552c50ad131a5f0ce2dbc297789b, committed 2026-11-27T09:19:34-05:00- Version (source)
- 1.64.1 in all four
pyproject.tomlfiles and the TS client M29 - License
- MIT (
LICENSE) M29 - Audited component / deployment
openhands-sdk(loop, conversation, events, LLM, condenser, skills, hooks, MCP, security),openhands-tools,openhands-workspace(Docker, Apptainer, k8s, Cloud),openhands-agent-server(REST/WS). TS client skimmed- Supported runtime platforms
- Python ≥3.12; terminal via tmux or subprocess, Windows/PowerShell path [S]; server images Debian, default
linux/amd64; no OS matrix in README M29 - Evidence coverage
- Deep: conversation run loop/budget/state, tool registry, context/condenser, subagents/task/workflow, env sanitizing, Docker workspace, server config/recovery, cost telemetry, hooks. Skimmed: ACP agent (5.1k lines), remote conversation, plugins, routers. Not:
settings/model.py,llm.pyinternals, browser-use, security analyzers, TS client
Pinned external dependencies (capability-supplying)
- Package@version
litellm@1.108.3- Role
- provider calls and static price map (budget pricing source)
- Lockfile / source
uv.lock:2133-2134M45
- Package@version
fastmcp@4.2.0;agent-client-protocol@1.0.0;browser-use@0.11.9;libtmux@0.62.0;lmnr@0.7.60;fastapi@0.136.3;docker@7.2.0- Role
- MCP client; ACP client for external agents; browser; terminal; tracing; server; Docker
- Lockfile / source
uv.lockM45
- Package@version
ghcr.io/openhands/agent-server:latest-python- Role
- default container image: mutable tag, unpinned [D]
- Lockfile / source
docker/workspace.py:81-84M46
- Package@version
github.com/OpenHands/extensions- Role
- public skills repo;
load_public_skillsdefault false [D] - Lockfile / source
agent_context.py:95-103M47
Specialist collaboration: Supporting table: parent→child authority
Operations and verification: Notes
- Finished process
- Model called
finish - Delivered answer
finish- Structural validity
response_schema- Task correctness
- Opt-in only (see below)
Operations and verification: Notes
Part A: platforms, clients, IDE, messaging
- Native platforms
- None in repo; OpenHands CLI and Cloud are separate repos (outside audited component) M49
- Terminal / web / desktop clients
- No TUI; agent-server serves optional static files; VS Code Web on port 8001 when enabled A35
- IDE & coding integrations
- VS Code server + extensions packaged with agent-server A36; git router and worktrees A37
- Messaging channels
- Not found in reviewed paths (
slack|telegram|discord|whatsapp)
Part B: voice/media, onboarding/routing, fleet administration
Source/doc conflicts
- Conflict
AgentDefinition.max_budget_per_rundoc says None = no budget;taskmanager applies the parent's cap- Which side the audit entry follows
- code
- Conflict
- Workflow tool calls its in-process validation "best-effort" and says running a workflow is approving generated code; restricted builtins not audited for escapes
- Which side the audit entry follows
- self-described limitation
Coordinator re-checks
- Claim
- Remote conversations deleted on close by default
- Lines read
openhands-sdk/openhands/sdk/conversation/conversation.py:85,116,147(factoryTrue);impl/remote_conversation.py:794,814(classFalse)- Result
- Refined: true for the
Conversation(...)factory, the normal entry point. DirectRemoteConversationconstruction defaults toFalse