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:
Agent instructions
Download the file or copy its text to paste into your coding agent:
How To Use Them
- Put both files in the root folder of your Lua project.
- Point the agent's instruction setting (for example a project instructions file or a custom-instructions field) at
CONTROL_LUA_AGENT_INSTRUCTIONS.md. - Keep
CONTROL_LUA_ENGINE_REFERENCE.mdnext 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.