AI assistant

The wizards on the Design tab write a subsystem's or an assembly's basic code. For changes beyond that (stop a roller when its switch is pressed, hold a motor at a speed, add a named position to a servo) Robot Designer can hand one small task to an AI tool, check its work by running your robot's tests, and let you keep it or throw it away.

The AI assistant is optional. Everything else in Robot Designer works without it.

No new costs

Robot Designer never asks for an API key or a password. It starts the AI tool's own command-line program, which you install and sign in to yourself, so the work counts against a plan you already have:

ChoiceWhat it uses
Claude CodeYour Claude plan's monthly agent credit.
CodexYour ChatGPT plan.
GitHub CopilotYour Copilot plan. It is free for verified students.
On this computerA Qwen3.5 model running on your own computer through Ollama: free.
NoneWizards only.

Choosing the assistant

File › AI Assistant…: each tool and whether it is ready.
File › AI Assistant…: each tool and whether it is ready.

File ▸ AI Assistant… opens the AI assistant dialog. The choice is kept for this computer, in Robot Designer's own settings, never in the robot project: each laptop has its own tools and sign-ins.

Each row says what Robot Designer found:

  • Installed · signed in: ready.
  • Not installed: Install… opens the tool's download page.
  • Sign in needed: Sign in… opens the tool's own sign-in in a terminal. For GitHub Copilot, type /login in it.
  • Installed (GitHub Copilot only): Robot Designer can't tell whether you are signed in. The first run will ask if you aren't.
  • Not downloaded (On this computer): Download… fetches the model.

Finding out starts no AI model: Robot Designer only asks each tool whether it is signed in. Check again asks once more, for example after you install or sign in. Any row can be saved, whatever it says; a run checks again when it starts.

On this computer

The local model needs Ollama and opencode installed. Robot Designer recommends a model from your computer's memory:

  • Qwen3.5 9B (about 6 GB to download) on a Mac with Apple silicon and 16 GB of memory or more, or with an NVIDIA graphics card that has 12 GB or more.
  • Qwen3.5 4B (about 3 GB) with 8 GB of memory or more.
  • Below that, or without room on the disk, the row says why it isn't recommended.

Download… asks first and names the model, its size and the folder it goes into, then shows its progress in the row. A cancelled download carries on from where it stopped next time. Robot Designer starts Ollama only while it downloads or runs a task, and stops it afterwards, unless Ollama was already running.

A small model does best with a small, clear task: one card and one sentence.

Ask AI

The Ask AI wizard's first page: say what you want, and it picks the task card that fits.
The Ask AI wizard's first page: say what you want, and it picks the task card that fits.

On the Design tab, select a subsystem or one of its devices: Ask AI… is at the right of its name, above its settings, and asks about the subsystem. Select an assembly you made on the Assemblies tab and it is at the right of the assembly's name. It is also in the menu you get by right-clicking a subsystem's or assembly's row. The drivetrain, the Shooter and the Drive Train have none: their code is part of the robot library, not your project.

The button is off, and its tooltip says why, until:

  • an assistant is chosen,
  • the robot library in your project has its task cards (update the library if not),
  • and the robot project is a git repository with a branch checked out.

It opens a wizard:

  1. What do you want?: say it in your own words, naming your own devices: Stop the roller when rollerTouch is pressed. or Why does the indexer stall? Under the box, Change the code or Just answer is chosen from what you typed (a question mark or a word like why or how means a question) until you click one yourself. Next needs at least three words.
    • Change the code shows the task list, grouped under Subsystems and Commands. The task that fits your words best is selected as you type, with a line saying so. Pick another if it fits better, and typing stops changing it. When none fits, the line says so and nothing is selected.
    • Just answer hides the list. The assistant only reads your code and answers in the wizard.
  2. Check: the assistant, the task, the files it may change, and a time limit (15 minutes unless you change it, 5 to 60). Press Run.
  3. Running: Robot Designer makes a copy of your code, the assistant makes the change there, and Robot Designer builds it and runs all of your robot's tests itself. What they print appears as they go. Stop ends the run. You can keep using Robot Designer meanwhile.
  4. Result: whether the tests pass, with a warning for anything that needs a look:
    • files changed outside the task,
    • an existing test whose checks were removed or switched off,
    • the tests that fail.

    Every changed file is listed, with what changed in it.

    • Accept puts the change into your code as one git commit, named after the task and your sentence. When the result has a warning it asks first.
    • Discard throws the copy away.
    • Try again with the errors runs the same task once more, telling the assistant which tests failed. It is there only when tests fail, and it runs only when you press it.

    Closing the wizard without choosing asks whether to keep the change for later.

Just answer

A question goes through three pages instead:

  1. Check: the assistant, your question (four lines at most, the whole text in its tooltip), the files it starts from, and a time limit (5 minutes unless you change it, 1 to 30). Press Ask.
  2. Running: the assistant reads your code, in your project itself, with a read-only command: Claude Code may only use Read, Glob and Grep, Codex runs in its read-only sandbox, Copilot is given no tool to write or run anything, and the local model's opencode configuration denies edits, shell and web fetch. Stop ends it.
  3. Answer: the answer, with Copy. Nothing was changed. Back returns to the first page with your question still in its box. If the run fails, times out or is stopped, the page says so and shows what was printed. Robot Designer compares git status before and after, and warns if the assistant changed a file anyway. It never reverts anything.

What it can and can't do

  • Your code is never touched until you press Accept. The copy is a git worktree on its own branch, ai/<task>-<date>-<time>, in Robot Designer's own data folder, outside your project.
  • The assistant may only edit files and run ./gradlew. It never pushes. Robot Designer never pushes either.
  • Your tests decide. An assistant saying it is done counts for nothing; your robot's own tests, ProjectChecksTest included, run after every change. A failing test is fixed in the code, never by changing the test or the simulation.
  • Nothing runs by itself. No run starts without you pressing Run, and Try again runs once per press.
  • Accept can refuse, and keeps the change, when:
    • you switched to another branch,
    • your own uncommitted edits touch the same files,
    • the change conflicts with work you committed meanwhile.

    It says which, so you can sort it out and press Accept again.

The run log

Every run leaves a record in your robot project's .robotdesigner/ai-runs/: the task, the assistant, your words, how long each step took, the result, and whether it was accepted or discarded, with everything printed in a .log beside it. A question's record has "mode": "answer", the question, how long it took and the length of the answer, and its .log holds the answer. A mentor can look there to see what was tried. Git ignores the folder by itself (it holds a .gitignore of *), so nothing in it is committed.

The task cards

The list in What do you want? comes from the task cards in the robot library your project uses (TeamCode/libs/ftcrobotdesigner/docs/cards/). Each card is a short sheet for one kind of change: the files it touches, the steps, and how to tell it is done. The assistant reads only the card you picked, the one guide section the card names and the files it lists, which keeps each task small enough for the local model. The cards are written for any FTC robot project: see cards/README.md.