Docs
From Studio to the graph, and back.
Picking your setup first, then how a project, its stack and its components are formed, where the graph lives, and what the model is shown. Patch notes and the answers to everything else are at the end.
Part 01
Getting started
ROTEX grounds AI code generation in Roblox against a live library and API graph. Instead of your agent guessing at APIs, it queries a graph built from your actual project. Setting it up depends on where your game lives and where you talk to Claude, so each way of working has its own guide. Pointing it at a game is Starting a project.
Which setup is mine?
- Only in Roblox Studio
- Where you talk to Claude
- Claude Desktop, Chat tab
- In a folder with Rojo
- Where you talk to Claude
- Claude Desktop, Chat tab
- In a folder with Rojo
- Where you talk to Claude
- Claude Code in VS Code or a terminal
- In a folder with Rojo
- Where you talk to Claude
- Claude Desktop, Code tab
- Your guide
- Claude Desktop (Code tab) →
| Where your game lives | Where you talk to Claude | Your guide |
|---|---|---|
| Only in Roblox Studio | Claude Desktop, Chat tab | Claude Desktop (Chat tab), game only in Roblox Studio → |
| In a folder with Rojo | Claude Desktop, Chat tab | Claude Desktop (Chat tab), game on disk with Rojo → |
| In a folder with Rojo | Claude Code in VS Code or a terminal | Claude Code in VS Code or a terminal, game on disk → |
| In a folder with Rojo | Claude Desktop, Code tab | Claude Desktop (Code tab) → |
- Quick connect does not work for your Studio gameStudio fallback: pair with a code →
- You work on a game as a teamTeams: a teammate joins a repo →
- You want library docs lookupsConnect your ROTEX account →
- You have no account, or you are offlineNo account, or offline →
- You want to remove ROTEXRemove ROTEX →
Every guide covers the steps, how to check it worked, troubleshooting, how to undo it, and how it stays up to date. All setup guides.
Using it
Once installed, just work normally. With Claude Code:
- It gets a reminder to check ROTEX’s graph before reading a script directly. In strict mode the very first raw read of a session is redirected to the graph, then it relaxes to reminders for the rest of the session.
- You can also ask directly at any point, for example “what does the graph say this library depends on?”
Switch modes without reinstalling. It applies on Claude’s next tool call:
rotex mode strict # ask ROTEX before the first raw script read
rotex mode soft # nudge, never block
rotex mode --reset # back to the project defaultAlready have a CLAUDE.md or AGENTS.md?
Stuck? Each setup guide ends with troubleshooting, and most of the rest is answered in Questions. Anything else is faster in the Discord.
Part 02
Other ways to connect
ROTEX is a local MCP server, rotex mcp, that Claude starts on your machine. The setup guides cover Claude Code, Claude Desktop’s Code tab and its Chat tab. For anything else, point the app at that same command.
Other IDEs and agents
Cursor, Windsurf, Zed and any other editor or agent that runs local (stdio) MCP servers can use the same entry: a command of rotex (the full path if the app doesn’t see your PATH), arguments mcp --rotex-integration=1, and CLAUDE_PROJECT_DIR set to the project when the app doesn’t start servers inside it. Put it wherever that app keeps its MCP servers.
the server entry
{
"mcpServers": {
"rotex": {
"type": "stdio",
"command": "rotex",
"args": ["mcp", "--rotex-integration=1"]
}
}
}claude.ai in a browser
Not supported yet. The web chat can only reach MCP servers on the internet, and ROTEX runs on your machine, next to your project, on purpose. Use Claude Desktop’s Chat tab for the same kind of conversation with ROTEX’s tools.
Part 03
Two ways to use ROTEX
Your source either lives in Studio, or in files on disk that Rojo syncs in. Which one applies is detected automatically. If you only ever work inside Roblox Studio, that is fully supported: the ROTEX plugin reads the place for you and nothing has to be on disk.
- Your source lives in
- In-Studio editing
- Studio's live DataModel
- External editing (VS Code + Rojo)
.luaufiles on disk, synced by Rojo
- The graph is built from
- In-Studio editing
- The live Studio session, via ROTEX's Command Queue
- External editing (VS Code + Rojo)
- The Companion App’s own project scan. Studio doesn’t need to be open
- Best fit for
- In-Studio editing
- Scripting directly in Studio's script editor
- External editing (VS Code + Rojo)
- Working from VS Code, or any external editor
| In-Studio editing | External editing (VS Code + Rojo) | |
|---|---|---|
| Your source lives in | Studio's live DataModel | .luau files on disk, synced by Rojo |
| The graph is built from | The live Studio session, via ROTEX's Command Queue | The Companion App’s own project scan. Studio doesn’t need to be open |
| Best fit for | Scripting directly in Studio's script editor | Working from VS Code, or any external editor |
How it's detected
The Companion App checks for a default.project.json at your repo root to tell these apart. If you’re mid-transition or use both, Studio’s live connection is always available as enrichment on top of the on-disk graph.
Part 04
Supported agents
Any agent that speaks MCP can reach the graph. The difference is whether ROTEX can make sure it does, or has to hope.
- Claude Code
- Status
- Supported
- How ROTEX gets used
- Hook-forced. A reminder (or a full block, in strict mode) fires automatically before a raw script read.
- Claude Desktop (Chat tab)
- Status
- Supported
- How ROTEX gets used
- ROTEX's tools, without the hook. Ask for ROTEX and Claude uses it.
- Gemini CLI
- Status
- Planned
- How ROTEX gets used
- Same hook-forced approach.
- Codex
- Status
- Planned
- How ROTEX gets used
- Hook-forced, coarser-grained.
- Cursor
- Status
- Planned
- How ROTEX gets used
- Always-on project rule, no hook needed.
- Any other MCP-capable agent or IDE
- Status
- Works today, unassisted
- How ROTEX gets used
- The same MCP server entry, no hook. Relies on the model choosing to use it.
| Agent | Status | How ROTEX gets used |
|---|---|---|
| Claude Code | Supported | Hook-forced. A reminder (or a full block, in strict mode) fires automatically before a raw script read. |
| Claude Desktop (Chat tab) | Supported | ROTEX's tools, without the hook. Ask for ROTEX and Claude uses it. |
| Gemini CLI | Planned | Same hook-forced approach. |
| Codex | Planned | Hook-forced, coarser-grained. |
| Cursor | Planned | Always-on project rule, no hook needed. |
| Any other MCP-capable agent or IDE | Works today, unassisted | The same MCP server entry, no hook. Relies on the model choosing to use it. |
Part 05
Starting a project
A project is a Roblox experience and its source code, wherever that source lives: in Studio, in an external editor like VS Code, or in a coding agent’s desktop app like Claude Code. Setting one up is separate from installing ROTEX, and it starts one of two ways. Both end in the same place: a library graph, and context built from it.
A · New project
Nothing written yet, or you want to start fresh.
- 1You build the game's stack: the libraries it will use.
- 2ROTEX sets them up in the place, or in the repo.
- 3The Companion App builds the graph from the stack.
- 4Context is prepared for every library in it.
B · Existing project
There is already source, in Studio or in a repo.
- 1Point ROTEX at the repo, or open the experience in Studio.
- 2The Companion App scans it from disk, or live through Studio.
- 3It builds the graph from what is really there.
- 4Context is prepared for the libraries the project already uses.
Part 06
Build your stack
A stack is the set of community libraries a game is built on: networking, frameworks, state, persistence. Search the catalog, and open any library for who makes it, where its source lives, and how to install it.
Most projects here have no logo of their own, so a result shows its maintainer’s GitHub avatar, or a blank one where there isn’t a suitable image. Every library belongs to its authors; ROTEX is not affiliated with any of them.
Part 07
Components
A component is reusable Roblox code you keep once and drop into any game, so a new game starts from parts that already work. Libraries are other people’s code; components are yours.
Two kinds
- System
- What it is
- A package of Shared, Server and Client services, such as an inventory, a tutorial, a marketplace or a quest system.
- Status
- Built
- Module
- What it is
- One ModuleScript, marked for the client, the server, or shared by both.
- Status
- Planned
| Kind | What it is | Status |
|---|---|---|
| System | A package of Shared, Server and Client services, such as an inventory, a tutorial, a marketplace or a quest system. | Built |
| Module | One ModuleScript, marked for the client, the server, or shared by both. | Planned |
Personal and team
- Plans
- Personal
- Pro and Teams
- Team
- Teams
- Kept
- Personal
- On your computer. It never leaves it.
- Team
- In your team's library, copied to each member's computer.
- Shared
- Personal
- With every game you work on
- Team
- With every member of the team
| Personal | Team | |
|---|---|---|
| Plans | Pro and Teams | Teams |
| Kept | On your computer. It never leaves it. | In your team's library, copied to each member's computer. |
| Shared | With every game you work on | With every member of the team |
Using them
- When you start a game, Claude suggests components next to your stack of libraries. You approve them, and Claude writes them into the game. ROTEX itself writes nothing.
- To keep one you have built, save it to your personal library. ROTEX checks it first, then copies it in at the version you give.
rotex system save <folder> --release <version>The app lists your components on its Components page. The CLI and Claude’s tools still call them “systems”, which is the older name.
Keeping them current
A component used in a game is compared with the one in your library, and shows one of four states. Nothing changes in a game until you apply it.
- Same
- Means
- The game has the library's version.
- Update available
- Means
- Your library has a newer version.
- Changed in this game
- Means
- The game's copy was edited since it was added.
- Not in library
- Means
- The game has it, your library does not.
| State | Means |
|---|---|
| Same | The game has the library's version. |
| Update available | Your library has a newer version. |
| Changed in this game | The game's copy was edited since it was added. |
| Not in library | The game has it, your library does not. |
Part 08
About ROTEX
ROTEX is a Companion App and a CLI on your machine, and one crossing off it. The app builds and keeps the library graph, the local MCP server lets Studio and your coding agent query it, and its context engine decides what a model gets to see before it writes any Luau.
In Studio or your editor
Where your source lives. Studio over its MCP server, or files on disk synced by Rojo.
Read moreOn your machine
The Companion App. It parses your project and your stack into a library graph, a file on your disk.
Read moreFor the model
Context. Only what is relevant to a prompt, drawn from the graph and from community-made library docs.
Read more
What leaves your machine
- Your scripts are parsed where they sit, and the library graph is a file on your disk.
- Intent analysis, traversal, ranking and packing all run locally against that file.
- Library documentation, cached for fourteen days, is the one input from outside.
- Your project source is never enqueued. A scoped context goes to the model, and what comes back is checked before it reaches Studio.
Part 09
The Companion App and the graph
The Companion App is where the graph is built and where it lives. It reads your project (from disk, or live from Studio) with Tree-sitter, and writes a library graph: which scripts require which libraries, what those libraries expose, and how each resolves to documentation and a pinned version.
- Nodes are scripts, libraries, methods, repositories, docs and versions.
- Edges are real relationships (a require, an export, a resolve) found by parsing, not guessed by similarity.
- After the first pass, only what changed is reparsed when you save.
- The graph is a file on your disk. It never crosses to our side.
The graph view is in the dashboard once you are signed in.
Part 10
Context for LLMs
Every library in a stack comes with context: documentation written and kept up by the community around it. When you prompt, the context engine works out what you meant, walks the graph from there, and packs only what is relevant into what the model sees: your code, the libraries it touches, and their docs.
- Community-made docs are the one input that comes from off your machine. They are cached for 14 days.
- Nothing is pasted in whole. Context is ranked and trimmed to fit the budget.
- Generated Luau goes back through the same analyser that read your project before you see it.
Wrote docs for a library, or found a gap in some? Bring them to the Discord.
Part 11
CLI & context API
The reference for what the parts above describe: the commands that set up the tooling, what a library’s context carries, and how a prompt’s context is put together.
Commands
- rotex login
- What it does
- Stores your ROTEX API key in your operating system's keychain. rotex logout removes it.
- rotex setup
- What it does
- Attach, API key, Claude Code integration, mode and a health check, in one pass. Safe to run again.
- rotex status
- What it does
- Shows the project, mode, config sources, the background core and your account.
- rotex doctor
- What it does
- Checks that ROTEX and its agent integration are healthy. Read-only; exits non-zero when something needs attention.
- rotex mode [strict|soft]
- What it does
- Shows or sets this checkout's mode. Takes effect on Claude's next tool call, no restart.
- rotex agent install <claude-code|claude-desktop>
- What it does
- Registers the ROTEX MCP server with the agent, and for Claude Code the hook. --scope user|project, --dry-run.
- rotex agent uninstall <agent>
- What it does
- Removes only the entries ROTEX added.
- rotex studio install-plugin
- What it does
- Puts the read-only ROTEX plugin in Roblox Studio's plugins folder. Run it again after an update to refresh the plugin.
- rotex studio uninstall-plugin
- What it does
- Removes the ROTEX plugin from Studio.
- rotex system save <folder> --release <version>
- What it does
- Checks a component, then saves it to your personal library at that version.
- rotex detach
- What it does
- Removes this repo's ROTEX attachment. --purge also deletes its local data.
| Command | What it does |
|---|---|
| rotex login | Stores your ROTEX API key in your operating system's keychain. rotex logout removes it. |
| rotex setup | Attach, API key, Claude Code integration, mode and a health check, in one pass. Safe to run again. |
| rotex status | Shows the project, mode, config sources, the background core and your account. |
| rotex doctor | Checks that ROTEX and its agent integration are healthy. Read-only; exits non-zero when something needs attention. |
| rotex mode [strict|soft] | Shows or sets this checkout's mode. Takes effect on Claude's next tool call, no restart. |
| rotex agent install <claude-code|claude-desktop> | Registers the ROTEX MCP server with the agent, and for Claude Code the hook. --scope user|project, --dry-run. |
| rotex agent uninstall <agent> | Removes only the entries ROTEX added. |
| rotex studio install-plugin | Puts the read-only ROTEX plugin in Roblox Studio's plugins folder. Run it again after an update to refresh the plugin. |
| rotex studio uninstall-plugin | Removes the ROTEX plugin from Studio. |
| rotex system save <folder> --release <version> | Checks a component, then saves it to your personal library at that version. |
| rotex detach | Removes this repo's ROTEX attachment. --purge also deletes its local data. |
What a context holds
A library’s context
- Where its source lives, and the version your project resolves to, pinned.
- What it exposes: the methods your scripts require.
- Documentation written and kept up by its community, cached for 14 days.
A prompt’s context
- 1Intent analysis works out what the prompt is about.
- 2Traversal walks the graph out from there.
- 3Ranking orders what it found by relevance.
- 4Packing trims the result to fit the model's budget.
Context docs are community-made. To add or fix one, bring it to the Discord.
Part 12
Project pipelines
The same story, drawn. Four diagrams: where each piece runs, how a prompt becomes context, how generated code is checked, and what actually crosses the queue. Pick one.
The plugin runs inside Roblox Studio; the context engine and the library graph run in the desktop app beside it. All three are on your machine. Everything to the right of the line (the command queue, the registry, your account) is reached through one authenticated crossing and nothing else.
Left to right, your machine to ours. Nothing inside the dashed boundary leaves it except through the gate.
- Parsing, analysis and the graph never leave the boundary.
- One gated crossing, keyed to your subscription.
- The website only ever knows about your account.
The Studio plugin, and the desktop app's context engine and library graph, all run on your machine, inside a boundary. A single gated crossing, authenticated by your API key, connects the library graph to the command queue, which reaches the hosted registry and the website. Nothing else crosses.
Part 13
Patches
What has shipped, newest first, and what is in progress. Each setup guide says how its setup takes an update.
Desktop
Claude Desktop with Studio, and personal components
- Claude Desktop's Chat tab now works with a game that lives only in Roblox Studio, through a single quick-connect entry.
- A read-only ROTEX Studio plugin sends a place's scripts to ROTEX on your own computer. It never writes into your place.
- Personal components: keep reusable systems once and drop them into any game. They stay on your machine, on Pro and Teams.
Phases 1–7
The companion app core
- The library graph and graph queries: neighbours, callers, dependencies and paths.
- Tree-sitter parsing with a file watcher, plus the docs client and its per-owner cache.
- The Context Engine, the MCP server and Claude Code hooks.
- The validator, which checks generated Luau before it is written.
v0.2.0
Strip and reframe
- Marketplace framing removed.
- The hybrid split adopted: the plugin in Studio, the heavy work in the companion app.
v0.1.0
Shell polish
- A compact navigation bar.
- A real CMD terminal inside the plugin.
- A beta banner.
Part 14
Questions
Everything people ask, answered. Anything not here is faster in the Discord than in an inbox.
The product
05What ROTEX is, who it is for, and what it does to your project.
What is ROTEX?
Who is it for?
What runs on my machine, and what does not?
Is my project source uploaded anywhere?
Is generated code checked before I see it?
Accounts
04Signing up, confirming an email, and getting back in.
How do I create an account?
I never got the confirmation email.
I can't log in.
How do I reset my password?
Plans and billing
08What a seat costs, what happens at a limit, and how to leave.
What does it cost?
Is the Free plan a trial?
What counts as a seat?
What happens when I hit a limit?
Can I cancel any time?
Can I switch plans mid-cycle?
Do you offer discounts?
Which payment methods do you take?
Security and procurement
04The questions a review asks, and what we need from you to answer them quickly.
How do you handle procurement and security review?
We need more than Teams. What should we send?
Can we run it ourselves?
Where does our data live?
Getting help
04Where to ask, what to bring, and what happens to private questions.