AI assist

The assistant in the output pane - what each action does, exactly what it costs, which ones are free each day, and when you are not charged at all.

View as .md

The assistant reads your project and answers about your code. It is in the output pane, next to the run results.

The actions and what they cost#

ActionCreditsFree per dayChanges your code
Explain error13Suggests a patch
Explain code12No
Explain a failed run11No
Add comments1-Suggests a patch
Fix error2-Suggests a patch
Optimise2-Suggests a patch
Generate tests2-Suggests a patch
Review2-No
Write a README2-Suggests a patch
Explain the project4-No

Large inputs cost more. An extra credit is added for roughly every 12,000 characters sent. A single file is normally one unit; asking about a whole large project is not.

When it is free#

  • Your daily free runs on the three explain actions, as listed above.
  • A repeat of something you already asked. Same code, same action, same day - the answer is replayed from cache and costs nothing.

⚠ A cache replay does not consume one of your free daily runs either. Asking the same question twice is free the second time in both senses.

Patches#

Some actions propose a change rather than describing one. You get a diff - the current code beside the suggestion - and you choose.

Accepting applies the change to your file, where the editor's normal undo works on it.

What it can see#

Your project's files. It does not have your run output unless you use the action that is about a failed run, and it does not know anything about your account beyond the code in front of it.

Getting better answers#

  • Ask about a specific file rather than the whole project when you can - cheaper and sharper.
  • Use "Explain a failed run" for a failure, not "Explain code". It is the one that gets the error.
  • Say what you expected. "This should print 12 and prints 0" beats "why is this broken".

Was this page helpful?

Last checked against the product on . Behaviour changes are listed in the changelog.