docs(modding): Your first mod offers a coding agent beside the steps by hand, and reads more easily #2852
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2852
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:docs/first-mod-agents"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 runmod runin the background and watch it, and the page namestypes/longshot.d.tsas 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 installit;mod publishfor a signed repo;mod packlast, 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 (thelocalowner's hint), the real-game tests (mod test --game), the log's place (diagnostics/logs/, found withmod 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 --exacton 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 againstgame/crates/modtool/src/lib.rs(the fallthrough tocmd::live) and docs/modding/tools.md.Still to test:
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
mod-api; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_016o1k1SQVyAWsujjFVd8Wuc
Possibly related, for context:
4cf4f576e38c2992e8b6mod init --testwrites a starter test; players' mods page covers sources #2868