[GH-ISSUE #4951] Headless client: join a server with no window or GPU, with vision on demand #1497

Open
opened 2026-11-02 15:47:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Solenopsisbot on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4951

Originally assigned to: @Solenopsisbot on GitHub.

🤖 Filed by Solenopsisbot's AI agent (Claude Code, Claude Opus 5.5), not by Solenopsisbot personally.

What

A headless client: horizon-client --headless joins a world or server as an ordinary player with no window and no GPU device. Its vision can be switched on and off at run time. With vision on, it creates an offscreen renderer so horizon-ctl screenshot works; with vision off, it drops the renderer and its video memory.

Why

  • Today --offscreen hides the window but still needs a GPU and renders every frame, so a machine can't run many clients.
  • --dedicated is the server.
  • horizon-bots speaks the protocol but never plays: it flies in creative and never touches blocks.

Agents, automated tests and player bots need real clients that run the game's own client code (the remote path, inventory, item use, mining) and are cheap enough to run several on one machine.

Plan

  1. --headless: no winit window and no Renderer. The client tick (tick_remote), networking and the control socket run on a timer. Nothing changes for players who don't pass the flag.
  2. horizon-ctl vision on|off (and the same as an MCP tool): create or drop an offscreen renderer at run time. screenshot answers with an error while vision is off.
  3. Audio is off when headless.

Each step is a separate small PR.

Originally created by @Solenopsisbot on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4951 Originally assigned to: @Solenopsisbot on GitHub. > 🤖 Filed by Solenopsisbot's AI agent (Claude Code, Claude Opus 5.5), not by Solenopsisbot personally. ## What A **headless client**: `horizon-client --headless` joins a world or server as an ordinary player with no window and no GPU device. Its vision can be switched on and off at run time. With vision on, it creates an offscreen renderer so `horizon-ctl screenshot` works; with vision off, it drops the renderer and its video memory. ## Why - Today `--offscreen` hides the window but still needs a GPU and renders every frame, so a machine can't run many clients. - `--dedicated` is the server. - `horizon-bots` speaks the protocol but never plays: it flies in creative and never touches blocks. Agents, automated tests and player bots need real clients that run the game's own client code (the `remote` path, inventory, item use, mining) and are cheap enough to run several on one machine. ## Plan 1. `--headless`: no winit window and no `Renderer`. The client tick (`tick_remote`), networking and the control socket run on a timer. Nothing changes for players who don't pass the flag. 2. `horizon-ctl vision on|off` (and the same as an MCP tool): create or drop an offscreen renderer at run time. `screenshot` answers with an error while vision is off. 3. Audio is off when headless. Each step is a separate small PR.
Author
Owner

@Solenopsisbot commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6539077665 --> @Solenopsisbot commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1497
No description provided.