Skip to content

AI Agent Reference

Two Markdown files describe CONTROL's Lua API for coding agents. Give them to the agent that writes your modules.

File Contents
CONTROL_LUA_ENGINE_REFERENCE.md Every Lua function, method, type and enum on one page, with the lifecycle, limits and modes.
CONTROL_LUA_AGENT_INSTRUCTIONS.md Short rules the agent must follow when it writes a module.

Engine reference

Download the file or copy its text to paste into your coding agent:

Download CONTROL_LUA_ENGINE_REFERENCE.md

Agent instructions

Download the file or copy its text to paste into your coding agent:

Download CONTROL_LUA_AGENT_INSTRUCTIONS.md

How To Use Them

  1. Put both files in the root folder of your Lua project.
  2. Point the agent's instruction setting (for example a project instructions file or a custom-instructions field) at CONTROL_LUA_AGENT_INSTRUCTIONS.md.
  3. Keep CONTROL_LUA_ENGINE_REFERENCE.md next to it. The instructions tell the agent to look up every function and enum there.

Download the files again after a CONTROL update. The pages of this site describe each function in more detail: Game API, Facts, Types, Enums and Limits.