Rogen

Working with Agents

Give coding agents Rogen's rules, and check the files they change

Updated

A coding agent doesn't know that Rogen generates the Rojo project file, so Rojo and the editor can miss the files it adds unless a short block of rules in AGENTS.md tells it to check its changes.

Add the Rules

rogen init adds the block to AGENTS.md and imports it into the CLAUDE.md that Claude Code reads, unless you pass --no-agent-rules. In a project that already has a config, run rogen init --agent-rules. rogen write and rogen serve keep the block up to date with the Rogen you run; delete its marker lines to keep it as your own.

Check Changed Files Automatically

An agent can forget to run rogen check, so rogen init --agent-hook adds a hook that runs it on the files changed in git when the agent ends its turn, and sends each new warning or error back to the agent. It registers the hook with Claude Code, Codex, Gemini CLI, Cursor or Copilot, whichever the project uses, and rogen write keeps the script up to date; delete its first line to keep it as your own.

Install the Skill

The rules live in AGENTS.md because an agent loads a skill only when a task looks like it needs one, and adding a Luau file doesn't. The rogen skill is for setup instead: it sets a repo up through rogen init and can reorganise a Rojo layout into feature folders.

npx skills add LDGerrits/rogen

On this page