ViteHub

Agent, Chat, Workflow, And Sandbox

Responsibility boundaries between ViteHub runtime, agent, chat, workflow, and sandbox packages.

ViteHub keeps common runtime contracts below the feature packages.

PackageResponsibility
@vitehub/runtimeExecution context, capabilities, policy, approvals, tracing, leases
@vitehub/agentModel loop orchestration, chat behavior, tools, step policy, run and stream calls
@vitehub/workflowDurable orchestration, checkpoints, retries, deferred work
@vitehub/sandboxIsolated execution sessions, files, shell, snapshots

Agent may consume a sandbox capability, but sandbox owns sandbox lifecycle. Chat may call an agent, but agent owns model execution. Workflow may run from chat or agent entrypoints, but workflow owns durability and resume semantics.

Copyright © 2026