docs(modding): Your first mod offers a coding agent beside the steps by hand, and reads more easily #2852

Merged
HumanBean merged 2 commits from HumanBean/Longshot:docs/first-mod-agents into mod-api 2026-11-30 02:54:13 +00:00
Owner

Summary

Your first mod was written for someone typing every step themselves. It now opens with two ways to make a mod: by hand, through the steps, or with a coding agent, with an example of what to tell the agent and a list of what stays the player's (the game's questions, new permissions, playing it, which save tests may use, nothing of the game leaving the PC). Step 5 now shows how to watch the running game from a terminal (mod status, mod log --follow, mod shot), which is also how an agent sees what a mod does.

The page is also shorter and plainer: a "You should see" after each command, numbered sub-steps where there are several, the launcher's folder layouts moved to a "Finding Longshot.exe" section at the end, and the side notes (plain JavaScript, no Node) gathered under "Good to know". Every command, manifest field and code example is unchanged.

agents.md said the control bridge's commands were gone. They are in the builder's mod tool (game/crates/modtool, cmd::live), so that section is now "Watching the running game" with the commands, the loop says to run mod run in the background and watch it, and the page names types/longshot.d.ts as the API as this Longshot has it.

A second commit is an accuracy pass over docs/modding against the code. A mod is now shared mainly from git: step 9 is "Check and share it" (push the folder, tag versions; players add the repository as a source and mod install it; mod publish for a signed repo; mod pack last, for one file to hand out or host), and agents.md, README.md, scripting.md and packages.md say the same. Also fixed: mod check's expected output (the local owner's hint), the real-game tests (mod test --game), the log's place (diagnostics/logs/, found with mod where), the example count (48), examples.md's lists, #:schema (not "$schema"), trust.json's wording, and scripting.md's stale "not in the builder's tools yet".

Read first: docs/modding/getting-started.md, "Two ways to make a mod" and "Make it with a coding agent".

Testing

Tested: Linux: tests/run_all.py --exact on the checks that read docs/modding (test_doc_anchors, test_check_pr_description, test_dev_check, test_gfx_effects, test_gfx_world, test_world_depth) pass; pre-commit on both files passes. The running-game commands were checked against game/crates/modtool/src/lib.rs (the fallthrough to cmd::live) and docs/modding/tools.md.

Still to test:

  • Any PC: follow "Make it with a coding agent" with an agent from an empty folder, expecting it to make, test and run a mod while the person answers the game's questions (by hand).

Measurements

Nothing to measure: docs only.

Risks

None for players: docs only. The agent prompt links agents.md on main, which has this page only once mod-api is merged.

Checklist

Ready for review

  • One topic, on current mod-api; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

https://claude.ai/code/session_016o1k1SQVyAWsujjFVd8Wuc

## Summary [Your first mod](docs/modding/getting-started.md) was written for someone typing every step themselves. It now opens with two ways to make a mod: **by hand**, through the steps, or **with a coding agent**, with an example of what to tell the agent and a list of what stays the player's (the game's questions, new permissions, playing it, which save tests may use, nothing of the game leaving the PC). Step 5 now shows how to watch the running game from a terminal (`mod status`, `mod log --follow`, `mod shot`), which is also how an agent sees what a mod does. The page is also shorter and plainer: a "You should see" after each command, numbered sub-steps where there are several, the launcher's folder layouts moved to a "Finding `Longshot.exe`" section at the end, and the side notes (plain JavaScript, no Node) gathered under "Good to know". Every command, manifest field and code example is unchanged. [agents.md](docs/modding/agents.md) said the control bridge's commands were gone. They are in the builder's mod tool (`game/crates/modtool`, `cmd::live`), so that section is now "Watching the running game" with the commands, the loop says to run `mod run` in the background and watch it, and the page names `types/longshot.d.ts` as the API as this Longshot has it. A second commit is an accuracy pass over docs/modding against the code. A mod is now shared mainly from git: step 9 is "Check and share it" (push the folder, tag versions; players add the repository as a source and `mod install` it; `mod publish` for a signed repo; `mod pack` last, for one file to hand out or host), and agents.md, README.md, scripting.md and packages.md say the same. Also fixed: `mod check`'s expected output (the `local` owner's hint), the real-game tests (`mod test --game`), the log's place (`diagnostics/logs/`, found with `mod where`), the example count (48), examples.md's lists, `#:schema` (not `"$schema"`), trust.json's wording, and scripting.md's stale "not in the builder's tools yet". Read first: docs/modding/getting-started.md, "Two ways to make a mod" and "Make it with a coding agent". ## Testing **Tested:** Linux: `tests/run_all.py --exact` on the checks that read docs/modding (test_doc_anchors, test_check_pr_description, test_dev_check, test_gfx_effects, test_gfx_world, test_world_depth) pass; pre-commit on both files passes. The running-game commands were checked against `game/crates/modtool/src/lib.rs` (the fallthrough to `cmd::live`) and docs/modding/tools.md. **Still to test:** - Any PC: follow "Make it with a coding agent" with an agent from an empty folder, expecting it to make, test and run a mod while the person answers the game's questions (by hand). ## Measurements Nothing to measure: docs only. ## Risks None for players: docs only. The agent prompt links agents.md on `main`, which has this page only once mod-api is merged. ## Checklist ### Ready for review - [x] One topic, on current `mod-api`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_016o1k1SQVyAWsujjFVd8Wuc
docs(modding): Your first mod offers a coding agent beside the steps by hand, and reads more easily
All checks were successful
PR description / Title and description (pull_request_target) Successful in 8s
4cf4f576e3
getting-started.md opens with two ways to make a mod: by hand, through the steps, or with a coding agent, with what to
tell the agent and what stays the player's (the game's questions, new permissions, playing it, saves, nothing of the
game leaving the PC). Step 5 shows the running-game commands (mod status, log, shot). The page is shorter and plainer:
"You should see" after each command, the launcher's folders moved to a "Finding Longshot.exe" section at the end, the
side notes gathered under "Good to know". Every command, field and example is unchanged.

agents.md said the control bridge's commands were gone; the builder's mod tool has them (modtool cmd::live): its
section is now "Watching the running game", the loop says to run mod run in the background and watch it, and it names
types/longshot.d.ts as the API as this Longshot has it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016o1k1SQVyAWsujjFVd8Wuc
Member

Possibly related, for context:

  • PR #2822 feat(game)!: the game side and the whole mod API in Rust, with system mods and the sandbox on by default — Open mod API PR provides the tool commands and documentation context this updates.
Possibly related, for context: - PR #2822 feat(game)!: the game side and the whole mod API in Rust, with system mods and the sandbox on by default — Open mod API PR provides the tool commands and documentation context this updates.
HumanBean force-pushed docs/first-mod-agents from 4cf4f576e3
All checks were successful
PR description / Title and description (pull_request_target) Successful in 8s
to 8c2992e8b6
All checks were successful
PR description / Title and description (pull_request_target) Successful in 9s
2026-11-30 02:29:38 +00:00
Compare
HumanBean merged commit 78395f5344 into mod-api 2026-11-30 02:54:13 +00:00
HumanBean deleted branch docs/first-mod-agents 2026-11-30 02:54:13 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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
MagicBeanDev/Longshot!2852
No description provided.