Skip to content

Assista Coder ​

Assista Coder is the AI agent built into Assista IDE. Describe what you need in plain language, and it looks through your Odoo project, writes the code and shows each change for you to review.

Open it with Ctrl+Alt+I (Cmd+Ctrl+I on macOS). It opens in the side bar on the right.

Assista Coder chat in Agent mode, listing the files it changed while building an Odoo module

What you can do ​

  • Ask in plain language. For example, ask it to add a computed margin field to sale.order. You do not need to name the file or the model.
  • Work with code that fits your project. Assista Coder has Odoo-aware tools. It looks up a model's fields, searches your addons and checks a module for common install problems, so the code it writes matches your code.
  • Review every change. Edits show as a diff in your files. Keep the ones you want and undo the rest.
  • Choose how much it can do. Agent mode can edit files and run commands. Chat mode only reads and explains, and never edits.
  • Use your own model. Use Assista's hosted models, or add your own API key.
  • Write commit messages. Generate a message from your staged changes.
  • Understand your models. Draw the relationships between Odoo models.

Get started ​

  1. Sign in with your Assista account, or add your own API key. See Choose a model.
  2. Press Ctrl+Alt+I to open Assista Coder.
  3. Pick Agent or Chat under the message box.
  4. Describe what you need and send the message.
  5. Review the diff in your files. Select Accept Changes to keep the edits, or Reject to undo them. Use Keep or Undo on a single change to decide one at a time. To adjust a result, send a follow-up message such as "make the field a many2one".

Assista Coder showing a proposed change as a diff in the editor, with Accept Changes and Reject controls

Agent and Chat modes ​

ModeWhat it does
AgentReads and edits files, runs commands, and can work across several files, for example to create a module or fix a bug that spans models. It asks for approval before it runs commands, edits files or deletes files.
ChatReads your code and answers. It cannot change files. Use it to plan, learn or review.

To choose the mode a new conversation starts in, open the settings and go to Agents.

What Assista Coder can do with Odoo ​

Assista Coder has Odoo-aware abilities on top of reading and editing files. You do not call them by name. Describe the task and it picks the right one.

Ask it toWhat it does
Look up a modelLists the fields and methods of a model as they are across every addon in your workspace, including the modules that extend it.
Find what touches a modelFinds a model's definitions, views, access rights, record rules and reports together.
Check a moduleLooks for problems that break installs: a new model with no access rule, data entries in the manifest that point to missing files, inherited views whose xpath matches nothing, and static imports that do not resolve. It also flags a relational field with no comodel and a computed field with no @api.depends.
Check the dev serverReads the status of the Odoo server you started with Run: whether the modules loaded, the last traceback, and XML and CSV load errors. After a change, ask it to restart the server and check the result.
Check an Odoo 18 module for Odoo 19Looks for a few known renamed or removed fields and for _sql_constraints, which Odoo 19 ignores. An empty result does not mean the module is safe to migrate.
Run an Odoo shell expressionEvaluates one Python expression against a real database with odoo-bin shell, for example to check whether a module is installed. Each call boots Odoo again, so it can take from a few seconds to over a minute.
Run your testsRuns the tests that your IDE test runner knows and reports each result with its failure message.

The shell can change data

An Odoo shell expression runs with full access to the database, including writes. Ask for read-only checks unless you want data changed, and use a development database.

Give it context ​

Attach files, folders or a selection of code to your message so Assista Coder works from exactly the code you mean. Attached items appear as chips above the message box. Select the chip's close button, or press Backspace in an empty message box, to remove the last one.

To attachDo this
A fileRight-click it in the Explorer, or right-click in the editor, and select Add File to Chat.
A folderRight-click it in the Explorer and select Add Folder to Chat.
A selectionSelect the code, right-click and select Add Selection to Chat.
All pinned tabsRun Add Pinned Editors to Chat from the Command Palette.

You can also ask it to explain a server error in the context of your project's code. Paste the traceback into your message and describe what you were doing.

Choose a model ​

Open the settings with the gear icon, then pick one of these:

  • Assista account. Sign in and use Assista's hosted models. You do not need an API key.
  • Your own key. Under Bring Your Own API Key, choose a provider and enter your key. The providers are OpenRouter, OpenAI, Google and Custom (OpenAI-compatible). For a custom provider, you also enter its base URL. Keys are stored in your operating system's keychain.

Use the model picker under the message box to switch models at any time.

Review changes ​

Edits show in your files as a diff. Each change has Keep and Undo controls, and the whole file has Accept Changes and Reject.

ShortcutAction
Alt+F5Go to the next change.
Shift+Alt+F5Go to the previous change.
Alt+Shift+F7Open the changes in a side-by-side diff editor.

When Agent mode wants to run a command or change a file, it asks first. Choose Yes to allow it once, Yes, and always allow to stop asking for that command or for edits in this project, or decline and type feedback to tell it what to do instead.

Commit messages ​

In Source Control, select Generate Commit Message in the commit message box. Assista Coder reads your staged changes and your recent commits, and writes one message in the same style.

Visualize model relationships ​

Open the Command Palette with Ctrl+Shift+P and run Assista: Visualize Model Relationships. Enter an Odoo model name, such as sale.order, to see how it connects to other models.

Tips and limits ​

  • Start in Chat mode when you are unsure. Switch to Agent when you are ready for changes.
  • Past conversations are in the history (clock icon). Start a new one with the plus icon. The Clear Conversation command empties the current one.
  • For a custom OpenAI-compatible model, set assistaCoder.customContextWindow to the model's context size in tokens. Assista Coder uses it to decide when to shorten a long conversation. If you leave it empty, it uses a cautious default.

Approval prompts

Assista Coder asks before it runs commands or changes files. The Bypass all permissions option in the settings removes these prompts. Turn it on only if you accept that it can change or delete files without asking.

Next steps ​

Built by Cybrosys Technologies.