[PR #321] [MERGED] Agent control: audit and design (docs/agent-control.md) #2488

Closed
opened 2026-11-02 15:56:37 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/321
Author: @ludovic111
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ludovic111

Base: main ← Head: docs/agent-control


📝 Commits (2)

  • 81c3e58 docs/agent-control.md: inventory of agent control and the design ahead
  • 6b26f92 docs/agent-control.md: match what was built; before and after; status

📊 Changes

2 files changed (+237 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/agent-control.md (+236 -0)

📄 Description

What. docs/agent-control.md: an inventory of everything the launcher (window, CLI, MCP) and the game (control socket, horizon-ctl, horizon-ctl mcp) let an agent do today, and one design for the rest:

  • one command name on the socket, horizon-ctl and the launcher CLI; MCP tool = name with _; the launcher's MCP proxies the game's tools as game_*
  • shared JSON shapes (positions, blocks, stacks, slots, bounds) and errors {"error", "kind"} with kinds usage, unknown, state, busy, timeout, connection, denied
  • ui: the widget tree of every screen (ids from labels, kinds button/slider/field/row/tab/slot, bounds, values), actions by id (click ID, set ID VALUE)
  • options-get / options-set over every options.txt key
  • wait-for screen|widget|loaded|chat|ticks, subscribe (event stream) / events (MCP)
  • safety: local-only socket, no secrets, consent (openWorldHint) for anything that sends data, vanilla untouched

Why. Ludovic: make the MCP and CLI let AI agents control every aspect of the launcher and the game. This is step 1; the implementation PRs follow the plan at the end of the page and update its tables.

How tested. Docs only. Every claim in the tables was checked against control.rs, game/control.rs, game/agent.rs, widgets.rs, horizon-ctl/commands.rs, launcher/src/{cli,mcp,backend}.rs.

Needs Ludovic. Nothing; say if you'd rather the launcher's MCP keep the game's tool names unprefixed.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/321 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/agent-control` --- ### 📝 Commits (2) - [`81c3e58`](https://github.com/horizon-rust/horizon/commit/81c3e58a1c52eb853511917289b0564afa78e5cc) docs/agent-control.md: inventory of agent control and the design ahead - [`6b26f92`](https://github.com/horizon-rust/horizon/commit/6b26f926df13c642102900e08b45a275354debf2) docs/agent-control.md: match what was built; before and after; status ### 📊 Changes **2 files changed** (+237 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/agent-control.md` (+236 -0) </details> ### 📄 Description **What.** `docs/agent-control.md`: an inventory of everything the launcher (window, CLI, MCP) and the game (control socket, `horizon-ctl`, `horizon-ctl mcp`) let an agent do today, and one design for the rest: - one command name on the socket, `horizon-ctl` and the launcher CLI; MCP tool = name with `_`; the launcher's MCP proxies the game's tools as `game_*` - shared JSON shapes (positions, blocks, stacks, slots, bounds) and errors `{"error", "kind"}` with kinds `usage`, `unknown`, `state`, `busy`, `timeout`, `connection`, `denied` - `ui`: the widget tree of every screen (ids from labels, kinds button/slider/field/row/tab/slot, bounds, values), actions by id (`click ID`, `set ID VALUE`) - `options-get` / `options-set` over every `options.txt` key - `wait-for screen|widget|loaded|chat|ticks`, `subscribe` (event stream) / `events` (MCP) - safety: local-only socket, no secrets, consent (`openWorldHint`) for anything that sends data, vanilla untouched **Why.** Ludovic: make the MCP and CLI let AI agents control every aspect of the launcher and the game. This is step 1; the implementation PRs follow the plan at the end of the page and update its tables. **How tested.** Docs only. Every claim in the tables was checked against `control.rs`, `game/control.rs`, `game/agent.rs`, `widgets.rs`, `horizon-ctl/commands.rs`, `launcher/src/{cli,mcp,backend}.rs`. **Needs Ludovic.** Nothing; say if you'd rather the launcher's MCP keep the game's tool names unprefixed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:56:37 +07:00
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#2488
No description provided.