[PR #1357] [MERGED] Docs: control Horizon with your AI agent (players), the full agent-control inventory (developers) #3494

Closed
opened 2026-11-03 04:09:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: docs/agent-control


📝 Commits (4)

  • b117930 No AI: one switch that turns off agent control (socket, horizon-ctl, both MCP servers)
  • ef792ec Launcher MCP: every CLI command is a tool of the same name, plus settings and agent-config
  • 51be242 Launcher Settings: Connect an AI agent, and the No AI switch
  • 7db6ce5 Docs: control Horizon with your AI agent (players), the full inventory (developers)

📊 Changes

22 files changed (+2366 additions, -516 deletions)

View changed files

📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+3 -2)
📝 crates/horizon-client/src/bin/horizon-ctl/main.rs (+43 -1)
📝 crates/horizon-client/src/extras.rs (+7 -1)
📝 crates/horizon-client/src/game.rs (+7 -1)
📝 crates/horizon-core/src/lib.rs (+1 -0)
➕ crates/horizon-core/src/no_ai.rs (+97 -0)
📝 docs/agent-control.md (+274 -213)
➕ docs/launcher-commands.md (+478 -0)
📝 launcher/README.md (+27 -19)
➕ launcher/src/agents.rs (+214 -0)
➕ launcher/src/agents_page.rs (+240 -0)
📝 launcher/src/backend.rs (+13 -0)
📝 launcher/src/cli.rs (+183 -3)
➕ launcher/src/cli_tools.rs (+466 -0)
📝 launcher/src/game_tools.rs (+6 -6)
📝 launcher/src/lib.rs (+1 -0)
📝 launcher/src/main.rs (+8 -31)
📝 launcher/src/mcp.rs (+44 -226)
📝 tools/agent_control_e2e.py (+67 -5)
📝 tools/launcher_mcp_e2e.py (+60 -7)

...and 2 more files

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Stacked on #1345, so the launcher test has the generated tools, agent-config and No AI to check. The pages also describe #1343 (game commands, docs/horizon-ctl-commands.md) and #1353 (the game's AI Agent page). Merge this one after them.

Players: website/docs/agents.md, "Control Horizon with your AI agent"

The page is in the nav under "Going further". It covers:

  • what an agent can do in the launcher and the game;
  • connecting from the launcher (Settings > AI);
  • copy-paste config for Claude Code (claude mcp add), Codex (codex mcp add, or config.toml), Cursor and any MCP client;
  • the game's AI Agent page;
  • a CLI quick reference;
  • safety: local only, confirm for deletions, "only when the player asks" for anything that reaches out, no secrets;
  • No AI.

The site's Markdown has no tables, so the quick reference is a list. node website/build.mjs builds 12 docs pages, this one included.

Developers: docs/agent-control.md, rewritten

  • The surfaces, and why one MCP server (horizon-launcher mcp, with the game as game_*) covers both the launcher and the game.
  • The inventory before and after, launcher and game. The columns are Window/screen, CLI before, MCP before, CLI after and MCP after, plus a note. Every row ends yes in both, except the two that are the player's own: Connect an AI agent and No AI.
  • No AI on each surface, and the launcher commands that stay usable under it, with the reason.
  • Connecting, and the default chosen: a game an agent starts is under control, and a game the player starts is not, until they turn Agent Control on.
  • The design rules for a new command: names, arguments, replies, error kinds, shapes, confirm, openWorldHint, no secrets.
  • Tests, and what is left for later.

Generated, with a test: docs/launcher-commands.md

It lists every launcher command, its arguments and its MCP tool. cli_tools::markdown() generates it from the clap definition. the_launcher_reference_is_up_to_date fails when the file is stale or a tool is missing from it. To regenerate: HORIZON_WRITE_DOCS=1 cargo test --manifest-path launcher/Cargo.toml the_launcher_reference. The game side is #1343's horizon-ctl help --markdown, which has the same kind of test.

Tested

On the Mac mini, in launcher/:

  • cargo test: 110 + 24 + 1 passed;
  • cargo clippy --all-targets -D warnings and cargo fmt: clean;
  • node website/build.mjs: ok.

🤖 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/1357 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/agent-control` --- ### 📝 Commits (4) - [`b117930`](https://github.com/horizon-rust/horizon/commit/b117930ae493b00e4d1a8ef44555b449bddfa967) No AI: one switch that turns off agent control (socket, horizon-ctl, both MCP servers) - [`ef792ec`](https://github.com/horizon-rust/horizon/commit/ef792ec3b9c28bdc416d463b49fe8e751f3ebf59) Launcher MCP: every CLI command is a tool of the same name, plus settings and agent-config - [`51be242`](https://github.com/horizon-rust/horizon/commit/51be242af0394c620fbd3f142b5728c874e6af53) Launcher Settings: Connect an AI agent, and the No AI switch - [`7db6ce5`](https://github.com/horizon-rust/horizon/commit/7db6ce51a60d0166438eddf9b9e327c0c4004a84) Docs: control Horizon with your AI agent (players), the full inventory (developers) ### 📊 Changes **22 files changed** (+2366 additions, -516 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+3 -2) 📝 `crates/horizon-client/src/bin/horizon-ctl/main.rs` (+43 -1) 📝 `crates/horizon-client/src/extras.rs` (+7 -1) 📝 `crates/horizon-client/src/game.rs` (+7 -1) 📝 `crates/horizon-core/src/lib.rs` (+1 -0) ➕ `crates/horizon-core/src/no_ai.rs` (+97 -0) 📝 `docs/agent-control.md` (+274 -213) ➕ `docs/launcher-commands.md` (+478 -0) 📝 `launcher/README.md` (+27 -19) ➕ `launcher/src/agents.rs` (+214 -0) ➕ `launcher/src/agents_page.rs` (+240 -0) 📝 `launcher/src/backend.rs` (+13 -0) 📝 `launcher/src/cli.rs` (+183 -3) ➕ `launcher/src/cli_tools.rs` (+466 -0) 📝 `launcher/src/game_tools.rs` (+6 -6) 📝 `launcher/src/lib.rs` (+1 -0) 📝 `launcher/src/main.rs` (+8 -31) 📝 `launcher/src/mcp.rs` (+44 -226) 📝 `tools/agent_control_e2e.py` (+67 -5) 📝 `tools/launcher_mcp_e2e.py` (+60 -7) _...and 2 more files_ </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #1345, so the launcher test has the generated tools, `agent-config` and No AI to check. The pages also describe #1343 (game commands, `docs/horizon-ctl-commands.md`) and #1353 (the game's AI Agent page). Merge this one after them. ## Players: `website/docs/agents.md`, "Control Horizon with your AI agent" The page is in the nav under "Going further". It covers: - what an agent can do in the launcher and the game; - connecting from the launcher (Settings > AI); - copy-paste config for Claude Code (`claude mcp add`), Codex (`codex mcp add`, or config.toml), Cursor and any MCP client; - the game's AI Agent page; - a CLI quick reference; - safety: local only, `confirm` for deletions, "only when the player asks" for anything that reaches out, no secrets; - No AI. The site's Markdown has no tables, so the quick reference is a list. `node website/build.mjs` builds 12 docs pages, this one included. ## Developers: `docs/agent-control.md`, rewritten - The surfaces, and why one MCP server (`horizon-launcher mcp`, with the game as `game_*`) covers both the launcher and the game. - **The inventory before and after**, launcher and game. The columns are Window/screen, CLI before, MCP before, CLI after and MCP after, plus a note. Every row ends yes in both, except the two that are the player's own: Connect an AI agent and No AI. - No AI on each surface, and the launcher commands that stay usable under it, with the reason. - Connecting, and the default chosen: a game an agent starts is under control, and a game the player starts is not, until they turn Agent Control on. - The design rules for a new command: names, arguments, replies, error kinds, shapes, `confirm`, `openWorldHint`, no secrets. - Tests, and what is left for later. ## Generated, with a test: `docs/launcher-commands.md` It lists every launcher command, its arguments and its MCP tool. `cli_tools::markdown()` generates it from the clap definition. `the_launcher_reference_is_up_to_date` fails when the file is stale or a tool is missing from it. To regenerate: `HORIZON_WRITE_DOCS=1 cargo test --manifest-path launcher/Cargo.toml the_launcher_reference`. The game side is #1343's `horizon-ctl help --markdown`, which has the same kind of test. ## Tested On the Mac mini, in `launcher/`: - `cargo test`: 110 + 24 + 1 passed; - `cargo clippy --all-targets -D warnings` and `cargo fmt`: clean; - `node website/build.mjs`: ok. 🤖 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-03 04:09:55 +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#3494
No description provided.