Read before it writes
list_dir, glob, read_file and grep map the addon first, so edits start from what your folders really contain.
A GMod gamemode is a folder with an info file and a gamemode/ subfolder holding init.lua, cl_init.lua and shared.lua, and Codelab Station reads that folder and edits the Lua you name, with a diff before you accept in Ask first mode. It stays outside the game. Every action appears as a card with its real result.
list_dir, glob, read_file and grep map the addon first, so edits start from what your folders really contain.
edit_file shows a diff and write_file creates new files, while Ask first pauses before each change.
Combining multiple addons into one folder is a job for list_dir, grep, move_file and a diff you review.
Every action appears in the chat as a card with its real result, and this run creates a crate entity folder in an addon of your own and then checks it. Accept or reject each card.
lua/entities/**0 matcheslua/entities/crate/shared.luasavedlua/entities/crate/init.luasavedlua/entities/crate/cl_init.luasavedENT.Spawnable1 matchyour test commandexit 0Start in Plan only mode and describe a scripted entity, for example a crate that players can spawn. The agent reads the addon with list_dir and lists the files it would write under lua/entities/. Plan only writes nothing. Switch to Ask first and write_file creates shared.lua, init.lua and cl_init.lua card by card. If the crate's model does not show, the game may have failed to find models for the addon, so glob lists the models folder and you compare its paths with the model path in your Lua. The same plan-first routine suits a larger idea such as a mod to spawn enemies throughout the map. Review each diff, then load gm_construct to test.
A gamemode is a folder in garrysmod/gamemodes with an info text file and a gamemode/ subfolder holding init.lua, cl_init.lua and shared.lua. Ask the agent to create that layout and to add DeriveGamemode("sandbox") so your rules build on Sandbox. It uses make_dir and write_file for the files and Shell for your launch script with the gamemode and map as start parameters. Lua errors appear in the game console, and ocr can read one from a screenshot. Keep Ask first on. Read every diff and test on gm_flatgrass.
Codelab Station is not a plugin of the game, and it never touches the game client. Other servers stay off limits. Players and accounts that you do not own are out of scope, and it cannot promise that code is correct, so you test every change and read every diff yourself.