Skip to content

Agent Runtime

The Agent Runtime defines how an AI-native game runs. It loads the playable artifact, connects the VifuHub SDK, manages lifecycle events, and exposes only the state, resources, tools, and host capabilities declared by the project.

Runtime contract

PartResponsibility
Project manifestDeclares the build output, runtime entry, resources, and requested capabilities.
Runtime gatewayDelivers the entry HTML and executable release assets from an isolated origin.
Agent RuntimeRuns game code, agents, state, resources, tools, and lifecycle events.
VifuHub SDKProvides the game-facing API for runtime services and host capabilities.
VifuHub CLIBuilds and checks the release before upload.

An Agent is a runtime participant with its own instructions, tools, and run state. Use separate Agents when NPCs, tutors, directors, or other participants must remain isolated. A single model call does not require a separate Agent.

Release flow

  1. vf deploy validates the project manifest.
  2. The CLI builds and scans the playable artifact.
  3. VifuHub records the release and its runtime metadata.
  4. The public project page resolves the playable release.
  5. The Agent Runtime loads the release from the runtime origin.
  6. The VifuHub SDK connects declared game tools and host capabilities.

The Agent Runtime does not make arbitrary browser code trusted. Uploaded game code stays isolated, while authorization remains enforced by the service that owns each protected operation.

Next