CCodelab Station
Product

GMod gamemode code you write and test on your own PC

01

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.

01

Read before it writes

list_dir, glob, read_file and grep map the addon first, so edits start from what your folders really contain.

02

Edits you can review

edit_file shows a diff and write_file creates new files, while Ask first pauses before each change.

03

Tidy several addons

Combining multiple addons into one folder is a job for list_dir, grep, move_file and a diff you review.

What the agent can do

One run, card by card

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.

Two jobs to give it

Build a GMod entity addon from a plan

Start 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.

Start a small GMod gamemode on top of Sandbox

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.

What Codelab Station does not do

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.

Codelab Station for Windows

Try it on a copy of one addon

Download Codelab Station ↗