Skip to content
OpenMOSSPublic

About

Game agent harness and infra with asynchronous high-frequency Policy inference

Resources

Stars

14 stars

Watchers

0 watching

Forks

Repository files navigation

ZETA

Towards Real-time AGI in the Frontier AAA Game with Zeroth Embodied Task Agent

A real-time game agent powered by MOSS-ZETA-preview, combining visual control, adaptive reasoning and persistent memory in GTA V.

中文 · Project page · Method · Get started · Inference infrastructure

zeta-promo.mp4

What is ZETA?

Open-world play combines fast control with goals that persist for minutes. Driving, combat, flight and on-foot interaction also give the same controller buttons different meanings. ZETA connects a responsive visual Policy with an external Brain that maintains the task context across these changes. “Zeroth” describes the stage before taking the first action in the physical world.

  • React to the screen: the Policy reads the full frame, minimap, available OCR and recent interaction history, then generates short gamepad actions.
  • Think when needed: the same response decides whether to continue the current plan, revise a local judgment or ask Brain to review the stage.
  • Remember beyond the visual window: stage instructions, task memory and local reasoning keep control connected to the longer goal.
  • Keep inference and execution moving: dual TP4 routes prepare context and generate actions alongside a shared 200ms execution schedule.

Video demos

Driving, pursuit, combat and water traversal, with a dynamic controller overlay. The project page provides larger players and category filters.

Escape the police
zeta-escape.mp4

70s
Track and snipe a target
zeta-sniper.mp4

10s
Fire from a helicopter
zeta-aircombat.mp4

31s
Chase a plane across the hills
zeta-hillchase.mp4

37s
Ride through a four-star pursuit
zeta-tunnel.mp4

36s
Dive from the pier
zeta-dive.mp4

30s
Vault a fence in pursuit
zeta-chase.mp4

10s
Pull down a hillside structure
zeta-demolition.mp4

13s

Method

Fast control and deliberate task updates

System 1 — Policy handles immediate visual control. System 2 — Brain reviews accumulated evidence and updates the persistent task state. They communicate through three fields: the current stage instruction, task memory and local reasoning.

ZETA framework

Policy decision What changes How control continues
Continue Retain the current judgment and task context Generate the next action
Local update Policy supplies a new judgment; Brain refreshes memory under the same stage instruction Prepare the updated context alongside control
Stage review Brain reviews the instruction, memory and local reasoning Confirm pause, commit the reviewed state and resume

A periodic memory refresh covers long stretches without an accepted update. In the optional standby configuration, a new context becomes active only when the standby service is ready to take over. This keeps an unfinished update from changing the active Policy session.

Two-stage Policy training

The Policy is initialized from Qwen3.5-9B. Both stages train the same autoregressive model to produce controller actions; the second stage also teaches task-conditioned reasoning and update decisions.

Stage Training data What it learns
Action pretraining Approximately 4,000 hours of human GTA V gameplay, split roughly equally between free play and task-directed play Visual control and context-dependent gamepad behavior
Instruction tuning Approximately 1,200 hours selected from that corpus, annotated with instructions, memory, reasoning and update decisions Connect immediate actions to task progress and decide when to update context

Two-stage training and rolling context

Action pretraining uses 20-round windows. Instruction tuning uses up to 16 rounds, retaining eight when the window advances. New selected responses receive supervision; retained history and supplied task context remain inputs. Repeated-action loss decay reduces the weight of long runs of unchanged controls.

Inference for continuous interaction

One eight-H200 node hosts two independent TP4 routes. While one route generates the current response, the other prepares its known prefix. When history is trimmed from 16 rounds to eight, the retained context is reconstructed exactly before reuse. Streaming lets complete controller states reach the executor before the entire response finishes.

Dual-route inference and action timing

The shared scheduler assigns absolute 200ms control windows: early actions wait, late actions keep their original end time, and expired actions are discarded. An optional second service supports context handoff; it is separate from the two routes inside each service.

Get started

This release contains the Harness, inference infrastructure and shared scheduler. Model weights and compiled GPU extensions are separate assets. To run the agent, prepare a compatible ZETA Policy service, an independent Brain API and a Windows GTA V host.

Prepare the services

For a self-hosted Policy, follow the Infra deployment guide to prepare the matching runtime, start the two GPU workers and expose their gateway to the game host. Connect the Brain endpoint separately. The gateway and Brain must be reachable from Windows.

Install the Windows Harness

Install Node.js 22+, Python 3.11 and ViGEmBus, then run from PowerShell:

git clone https://github.com/OpenMOSS/MOSS-ZETA.git
cd MOSS-ZETA
npm ci
py -3.11 -m pip install vgamepad
py -3.11 -m pip install -r harness/requirements-ocr.txt

In a separate terminal at the repository root, start OCR and leave it running:

py -3.11 harness/scripts/ocr_service.py --device cpu --warmup

Configure and start a task

In the first terminal, enter your own endpoints and model names:

$env:OPENAI_BASE_URL = Read-Host "Policy gateway URL, including /v1"
$env:OPENAI_MODEL = Read-Host "Policy model name"
$env:AGI_GTA_BRAIN_BASE_URL = Read-Host "Brain API URL"
$env:AGI_GTA_BRAIN_MODEL = Read-Host "Brain model name"
$env:AGI_GTA_POLICY_OCR_URL = Read-Host "OCR service URL, including /ocr"
npm start -- --task "Follow the current on-screen objective."

If authentication is required, also set OPENAI_API_KEY and AGI_GTA_BRAIN_API_KEY in that shell. No service URL or API key is built in. Keep private settings in environment variables or an ignored *.local.json file; see Harness configuration.

The default run uses 200ms streaming, 16/8 history, a 10-second active-gameplay memory-refresh fallback, unlimited responses and a 40-minute wall-clock limit. Automatic stage-age refresh is off; explicit Policy Brain calls remain available. Ctrl+C stops the run and releases controller input. More settings are in the Harness guide.

Repository

Directory Purpose
harness/ Windows capture/OCR, Policy–Brain coordination, task state and pause/resume
infra/ Model serving, dual TP4 routes, prefix preparation and deployment tools
cadence/ Shared action parser, 200ms clocks, streaming executor and native scheduler
website/ Bilingual project page, paper figures and videos

Harness imports the shared scheduler directly. All components are versioned together.

Development checks
npm run check
npm test
python infra/tools/cpu_smoke.py
python cadence/scripts/stream-cadence-test.py
python cadence/scripts/stream-handoff-test.py
python cadence/scripts/stream-watchdog-notification-test.py
npm run verify

These checks cover JavaScript imports, configuration, protocols, scheduling and source integrity.

About

Game agent harness and infra with asynchronous high-frequency Policy inference

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages