Docs menuOperating Loop
Docs/Build

Operating Loop

See how a user request moves through the agent, control plane, sandbox, and approvals.

Backends and OUDA

The shipped agent backends are Hermes and Claude Agent. Hermes runs as a subprocess against the configured model provider. Claude Agent uses the Anthropic SDK in process. Both are launched only through the OpenShell sandbox path.

PhaseWhat happens
ObserveCollect the user request, thread state, source metadata, memory, and tool surface.
UnderstandBuild the prompt and reason over approved business context.
DecideChoose whether to answer, create cards, propose memory, request an action, or produce workflow output.
ActReturn through broker-mediated tools so the control plane can persist, approve, audit, or execute.

The default agent turn budget is roughly nine minutes. Long-running operations should become workflow or action work rather than a single unbounded chat turn.

Request flow

  1. An operator sends a message in a thread or a channel plugin creates a thread event.
  2. The web app records the message and the worker creates a work_run.
  3. The worker prepares memory, source metadata, plugin action surfaces, and policy context.
  4. OpenShell launches a sandboxed agent job with explicit network and model egress policy.
  5. The agent reads approved context, uses broker-mediated tools, and returns output to the control plane.
  6. The control plane creates cards, memory proposals, action requests, workflow outputs, and audit events.

Sandbox boundary

The sandbox is not the control plane. The box receives the run payload, policy-constrained tools, and placeholder model credentials. The broker is the only trusted channel back to OpenNeko for privileged operations.

  • Run identity comes from the broker token binding, which the sandbox cannot forge.
  • Model provider keys stay with the OpenShell provider and gateway proxy.
  • Data-source and model egress are added as explicit OpenShell policy endpoints.
  • The host prologue and epilogue stay outside the sandbox and are handled by the worker.

Outputs

OutputWhen it appearsReview path
Briefing cardThe agent or workflow has a concise summary, decision, or status updateShown in the thread UI
Pending memoryThe agent proposes durable context from a runAccepted or declined by an operator
Action requestThe agent wants to call an external or privileged operationEvaluated by action policy and possibly queued for approval
Workflow outputA scheduled, watched, or manual workflow produces an artifactStored with freshness and dedupe metadata