Skip to content

Documentation / Code and addons

Coding Agents

Let an AI coding agent change your addons in its own copy of your Odoo, or directly in a test system, then review its pull request.

A coding agent is an AI that works on one of your addon repositories for you. You describe the change, and the agent edits the code, tries it out in an Odoo and pushes it for a pull request that you review and merge. You follow along in the session, answer its questions and decide what it may do without asking you.

How it works #

  • The agent always works in one Odoo: an agent copy, a fresh neutralized copy made for the session, or, in early access, directly in a test, demo or copy Odoo of your team's. Either way the session holds that Odoo until somebody releases it. Nothing releases it on its own. Releasing deletes an agent copy, and an Odoo the agent worked in directly gets its own addons back. See Where the agent works.
  • Where you start decides the kind. You never choose between the two in a form. See Starting a session.
  • An agent copy is created on the server for copies of the Odoo you start from, or on its own server if none is set. Agent copies do not count towards your plan's copy limit, but they use server resources until you remove them.
  • The agent runs next to its Odoo on your server. Its checkout, its conversation and the Odoo data stay on your server. What the agent reads from the Odoo does go to your AI provider: in an agent copy, tick Obfuscate personal data when you start the session to have its personal data encrypted first (see Obfuscating personal data).
  • The agent runs on your own AI provider key and your bill with that provider. The cost shown in the panel is an estimate.
  • Every git push asks for your approval, in every permission mode but Full access. In Full access the agent pushes without asking, and in an Odoo it works in directly it also restarts the Odoo, updates modules and runs SQL on its own. See Full access.
  • The session page tells you the next step on the way from the agent's changes to a merged pull request: saving them to GitHub, approving the push, opening the pull request and merging it. See Getting the changes.

Before you start #

Add your API key #

A team owner or admin adds the key once:

  1. Open the team menu and choose Team profile.
  2. In AI / Coding agents, choose the Provider:
    • Anthropic runs Claude on your Anthropic key.
    • OpenRouter and Requesty run Claude and other models, such as GLM, Kimi or DeepSeek, on your key with them. For Requesty, choose the EU or Global region.
  3. Paste the key and optionally choose a Default model, which every new session starts with.
  4. Save.

A stored key is never shown again. Paste a new one to replace it, or remove it with the switch below the field.

Prepare the repository #

The agent works on a repository that is added to the Odoo through the calmo.cloud GitHub App, with addons synced for the Odoo's version. The pull request goes to that repository.

An agent that works directly in an Odoo can also go without a repository. It then sets that Odoo up instead of changing code: it installs apps, configures settings and enters data, such as your company details, users or a sales pipeline. See Without a repository.

Starting a session #

There are four ways in. Each one starts one kind of session:

You start it from What it starts
Create Copy on an Odoo, with Start a coding agent in this copy switched on An agent copy of that Odoo
Start session on the Agent Sessions page under Developer An agent copy of the Odoo you pick
Start agent in this Odoo in the ⋮ menu on the page of a test, demo or copy Odoo (early access) The agent works directly in that Odoo
Let a coding agent set up this Odoo on the form that creates a test or demo Odoo (early access) The agent works directly in the new Odoo, without a repository

The REST API and AI assistants choose the kind with a flag instead.

What you fill in #

Every way in asks for the same things:

Field What it does
Odoo Only on Start session: the Odoo the agent copy is made of. Each Odoo is listed with its type, and its Odoo version is shown below the field. Copies, previews and agent copies cannot be chosen, because a copy is never copied again.
Task What the agent should do, up to 10,000 characters. You can leave it empty when you attach files.
Attachments Up to 8 files per message, such as screenshots or sample data, 25 MB each.
Repository The repository the agent works on. Only repositories added to the Odoo are offered. Optional on Start agent in this Odoo: leave it empty for a task that sets the Odoo up rather than changes code.
Model Pick from your provider's list or type any model id.
Title Optional. A name for the session. It also becomes the title of the pull request, and its first words name the agent's work branch. Left empty, the small model of your AI backend writes one from the task; that call runs on your team's own key, and its few tokens are billed to your team like the agent's. If no title can be written, it is the first line of the task.

Under More options, folded away because most sessions leave them as they are:

Field What it does
Branch Optional, and only shown once a repository is picked. The branch the agent starts from. The pull request goes into it as well, unless you change the target branch later. Defaults to the branch the Odoo pins for the repository on its Repositories tab, and otherwise to the repository's branch for the Odoo's version.
Reasoning effort From Low (fastest) to Max (deepest reasoning). Levels a model does not support are lowered automatically.
Permission mode How often the agent asks before acting. See Permissions and questions.
Obfuscate personal data On Start session and in the Create Copy dialog: encrypts the personal data of the agent copy before the agent sees it. Switched on and locked when the Odoo is obfuscated already, since its copies are too.

Getting the Odoo ready takes a few minutes, an agent copy the longest because it is copied and loaded first. You land on the session page, which shows how far it is (see When a session ends) and then the conversation as it happens.

From the Create Copy dialog #

Click Create Copy on an Odoo, on its page, in the list of Odoos or in its Copies tab, and switch on Start a coding agent in this copy. The switch is there for everyone who may start coding agents on that Odoo, but not when you create a copy from a backup.

With the switch on, the dialog turns into the start of a session:

  • Its heading says that you copy the Odoo and start an agent, and its button reads Create copy and start agent.
  • Neutralize sensitive data is switched on and locked: an agent copy is always neutralized. Obfuscate personal data stays yours to choose.
  • Server and Share the copy with are gone: an agent copy is made for the session, on the Odoo's server for copies.
  • The fields above appear.

The switch is greyed out, with the reason below it, when your team has no API key for its model provider or when the Odoo has no repository the agent can push to.

An agent copy does not count towards your plan's copy limit and does not wait for a copy that is still being made. When no plain copy can be made, because your plan has no room for another one, a copy of the Odoo is already being made, or plain copies are not open to you on this Odoo, the dialog still opens for an agent: the switch is on and locked, and a warning says why only an agent copy can be made.

From the list of sessions #

Open Agent Sessions under Developer and click Start session. The dialog Start agent in a copy asks for the Odoo first and then for the fields above. Its button reads Create copy and start agent.

Directly in an Odoo #

Open the page of a test, demo or copy Odoo, open the ⋮ menu at the end of the header and click Start agent in this Odoo. See Working directly in an Odoo.

When you create an Odoo #

The form that creates a test or demo Odoo has a Coding agent section. Switch on Let a coding agent set up this Odoo and give the agent a task that sets the new Odoo up, for example "Install Sales, CRM and the German accounting, enter our company details and create three sales users". The other fields are the ones above, without Repository: a new Odoo has none yet, so the agent works without a repository.

  • The agent works directly in the new Odoo. A live Odoo never gets one. Create it as a test Odoo, or list the apps it needs under Initial modules.
  • The Odoo is created and deployed as usual. When Initial modules is empty, only base is installed, so that the database exists before the agent comes.
  • The agent starts once that first deploy has finished: its login is created, and the Odoo is redeployed with the agent next to it. Expect several minutes and one more restart before the agent reports. While the first deploy runs, the agent card on the Odoo's page says that the agent starts once it has finished. The session stays pending until the agent reports.
  • From the moment the Odoo is created, its modules cannot be changed from its page until somebody releases it (see Releasing). While the agent waits for the first deploy, no backup can be restored into the Odoo.
  • If the first deploy fails, the session ends as Failed (see If the start fails). The Odoo stays. Fix what failed, redeploy it and start the agent again with Start agent in this Odoo.

The section is there once working directly in an Odoo and setting up a new Odoo are both enabled for your team.

Where the agent works #

The agent always works in one Odoo, and the session holds it until somebody releases it. Every difference between the two kinds follows from one fact: nobody else uses an agent copy, while other people use an Odoo the agent works in directly.

Agent copy Directly in an Odoo
Started from The Create Copy dialog or Start session Start agent in this Odoo in the ⋮ menu on the Odoo's page, or Let a coding agent set up this Odoo on the form that creates a test or demo Odoo
Offered on Live, test and demo systems. Not on a copy, a preview or an agent copy, because a copy is never copied again. Test, demo and copy systems, never live. Early access: only for teams it has been switched on for.
Data A neutralized copy of the Odoo. Obfuscate personal data is optional. The Odoo's data as it is. Obfuscate personal data is not offered. On an Odoo that is not neutralized you have to confirm that its mail and integrations may be live.
Others Nobody else is affected. You can have any number of agent copies. Everyone using the Odoo is briefly disconnected when the agent arrives and when it leaves. It takes one agent at a time.
Approvals The permission mode decides. A push asks in every mode but Full access. Restarting the Odoo, updating modules, running SQL and running odoo shell ask in every mode but Full access, and so does a push.
When you stop the session The agent stops. The agent copy stays, so you can look at what it built, until it is released. Work that was not saved to GitHub can no longer be saved by the agent. The confirmation says so when the agent reported unsaved changes, and whenever it is still working. The agent stops and the Odoo is released at once. Work that was never pushed is lost.
Released on its own Never. The agent copy stays until somebody removes it. Never. The agent keeps the Odoo, running its checkout if it has one, until somebody releases it.
Module updates Run next to the running Odoo, which then restarts. The Odoo stops while the update runs and starts again afterwards.

In both kinds the agent logs in with an administrator account made for this session alone. Your users and the Odoo's own admin login are not touched, and the admin credentials of an agent copy are not the agent's.

Start with an agent copy unless the change has to be tried where your team already tests, with that Odoo's data, its other addons and its users, and a fresh copy would not be the same.

Working directly in an Odoo #

Working directly in an existing Odoo is in early access and is being rolled out team by team. If you don't see Start agent in this Odoo in the ⋮ menu on the page of a test system, it isn't enabled for your team yet. Get in touch and we'll switch it on.

Instead of an agent copy, the agent can work directly in a test, demo or copy system, for example the test system your team already uses to try out changes. Open that Odoo, open the ⋮ menu at the end of the header and click Start agent in this Odoo. The entry only appears on test, demo and copy Odoos, never on a live system, a preview or an agent copy, and only to people who may start coding agents on that Odoo.

The dialog opens with an info box that states three facts before you start: what happens to the Data, to Others who use the Odoo and Afterwards. When the Odoo is stopped, it adds that the agent's arrival starts it, and when it has configuration changes that were not deployed yet, that they are deployed with the agent. If the Odoo is not neutralized, you also have to confirm that you understand its mail and integrations may be live. Then come the fields above, and the button reads Start agent.

An Odoo takes one agent at a time. While another agent holds it, Start agent in this Odoo is greyed out in the ⋮ menu, and its tooltip says which session holds the Odoo if it is your team's own, and otherwise only that an agent of another team does. It also tells you to release the Odoo from the agent card on its page first or, if your team cannot, to ask the team that hosts it to release it. If an agent arrives while your dialog is open, Start agent refuses with Another agent works in this Odoo and the dialog stays open.

What changes in the Odoo #

  • The Odoo is redeployed with the agent next to it, so it restarts when the agent arrives. With a repository, the Odoo runs the agent's checkout of the repository instead of its own deployed version of it until the agent leaves, for everyone who uses it. Updates to that repository's addons on the Odoo take effect when the agent leaves, when a running Odoo restarts once more.
  • Nothing is copied or neutralized for the session: the agent sees the Odoo's data as it is, and what it reads goes to your AI provider. If the Odoo is not neutralized, its outgoing mail and scheduled actions may be live. The agent is told so and asked not to trigger them unless you ask it to. A mail catcher on the Odoo does not change that: it only catches mail the Odoo sends without a mail server of its own.
  • An Odoo takes one agent at a time. A session that finds another agent in it does not wait: it ends as Failed and does not block the Odoo. See If the start fails.
  • Automatic redeploys wait while the agent works in the Odoo. Whatever changed meanwhile is deployed when the agent leaves.
  • Stopping, restarting or redeploying the Odoo interrupts the agent. The confirmation says so. Deleting the Odoo ends the session, as Failed if it was still running, and the session stops holding the Odoo.

Without a repository #

Leave Repository empty in Start agent in this Odoo and the agent works on the Odoo itself rather than on code. It looks at what is installed and set up first, installs the apps the task needs in one go, and sets up settings and data through Odoo itself, for example:

  • install Sales, CRM and the German accounting localization
  • enter your company details and create three users with the right access rights
  • set up a sales pipeline with its stages

Without a repository the agent has no checkout: it writes no modules, pushes nothing and opens no pull request, and the session page shows no Changes badge. When a task needs code of its own, the agent says so; start a session with a repository for it. Everything it sets up is stored in the Odoo's database and stays after the agent leaves. The agent only gives a user it creates a password when you ask it to, and then tells you which one. It never changes the passwords or logins of your existing users.

An agent copy always needs a repository, since its work only leaves the copy through a push.

Approvals #

Because other people use the Odoo, the agent's tools for restarting the Odoo, updating modules, running SQL and running odoo shell scripts ask for your approval there in every permission mode but Full access, Auto included. Everything else follows the permission mode as usual, and a push asks, as in an agent copy.

In Full access nothing asks, these tools included: the agent restarts the Odoo, updates modules and runs SQL and odoo shell without asking first, for everyone who uses the Odoo. See Full access.

A module update stops the Odoo while it runs and starts it again afterwards, so the Odoo answers no requests during the update. A restart or an update disconnects everyone using the Odoo.

Seeing who works in an Odoo #

An Odoo holds at most one agent, so its page shows one agent card at the top, never a list of sessions. The card appears as soon as the agent is on its way and stays until the Odoo is released.

  • An agent works directly in the Odoo. The card reads A coding agent works in this Odoo. It says whose agent it is and which repository's addons its checkout replaces, or, for an agent without a repository, that it changes the Odoo itself. Once the session has ended, it says that the agent keeps the Odoo, running its checkout if it has one, until you release it. Its buttons are View session and Release Odoo.
  • The Odoo is an agent copy. The card reads This copy was made for a coding agent. It says whose agent it is, how far it is and, once the session has ended, that the copy stays until you remove it. Its buttons are View session and, once the session has ended, Remove copy. Removing the copy takes you back to the list of Odoos, since the page is gone.
  • The agent waits for a new Odoo's first deploy. For an agent started with the Odoo, the card says that it starts working in the Odoo once the Odoo's first deploy has finished.
  • The session could not start. The team that started it sees the reason on the card as Last error.

Only the team that started a session sees its title and can open it. To every other team, for example the hosting team of a shared Odoo, the card reads, for example, An agent of Acme GmbH, without a title, a link or an error.

Elsewhere in the panel:

  • The Agent column in the list of Odoos shows a sparkles icon while an agent is getting an Odoo ready or works in it, in an agent copy as well as directly. Hover over it to see whose agent it is.
  • The Copies tab of an Odoo lists its agent copies with its other copies. Its Type column says Agent copy, and its Agent column links to the session of your own team.
  • The confirmation for deleting an Odoo an agent works in, or an agent copy that its session still holds, says that the session ends and that whatever the agent has not pushed is lost.
  • ⋮ > Agent sessions on the Odoo's page opens the history of the sessions started from that Odoo, with All sessions selected. The entry is there for people who may start coding agents on the Odoo. It is not on an agent copy, whose sessions were started from the Odoo it was made of, and on a copy it appears once your team has started a session from it.

When a session ends #

The session's status says what the agent does. The stage of its Odoo says what the Odoo goes through, and it is not the same thing: a session that completed, failed or was stopped goes on holding its Odoo until somebody releases it. The session page shows the stage of every session, whichever kind it is, under Works in, with the name and type of its Odoo. Under Started, below the date, the page names the Odoo the session was started from and links to it while you can open it. It stays when an agent copy is gone, and is left out when the agent works in that Odoo directly.

Stage What it means
Preparing… An agent copy is being copied and loaded, a new Odoo the agent was started with is being deployed for the first time, or the agent's login is being created in the Odoo.
Starting… The Odoo is up and the agent is starting next to it.
Agent working The agent works in its Odoo.
Held The session ended, but it keeps its Odoo until somebody releases it. There is no deadline. An agent copy is still there to look at, and an Odoo the agent worked in directly still runs its checkout, if it has one.
Released The agent copy is deleted, or the agent left the Odoo, which runs its own addons again.
Not used The session ended before it got an Odoo, because it could not start.

Nothing is released on its own #

An ended session keeps its Odoo until somebody releases it. No date counts down, and nothing deletes an agent copy or gives an Odoo back after some days.

  • An agent copy stays, with its database and the agent's checkout, until you remove it. It does not count towards your plan's copy limit, but it keeps using server resources, so remove the ones you are done with.
  • An Odoo the agent worked in directly stays with the agent, running its checkout if it has one, for everyone who uses it, until you release it.

Releasing loses work that was never pushed, so have the agent save it to GitHub first (see Saving the changes). See Releasing.

Continuing a session #

  • A session is Completed when the agent has finished and gone idle. Send another message to resume it with the same conversation and checkout. This works for as long as the session holds its Odoo, with no deadline.
  • A session that Failed, for example because the agent stopped unexpectedly, can also be resumed with a message as long as it still holds its Odoo.
  • A session you stopped, or that could not start, cannot be resumed. Start a new one.
  • Once its Odoo is released, a session can no longer be resumed, whichever way that happened. The conversation stays readable.

The Agent Sessions list shows Active & unfinished sessions by default: those still running or waiting for you, those that still hold a test, demo or copy Odoo they work in directly, those whose agent copy still has work that was never pushed, and those whose work has not reached a merged pull request yet. Switch to All sessions for the full history. Sessions are grouped by Odoo, with an estimated cost per group.

Releasing #

Releasing an Odoo means the session lets go of it:

  • An agent copy is deleted, with its database, the agent's checkout, its transcript and the session's files.
  • An Odoo the agent worked in directly stays. The agent leaves it: its checkout, conversation history and login are removed from the Odoo, and the Odoo gets its own addons back. A running Odoo restarts for that; a stopped one stays stopped and only has its configuration written again. Whatever the agent changed in the database stays, such as modules it installed or upgraded and records it changed, so update the Odoo's addons if its own code is older than what the agent upgraded.

Work in the agent's checkout that was never pushed is lost, and the session can no longer be continued, so have the agent save its work to GitHub before you release (see Saving the changes). The conversation stays readable. The activity log of an Odoo the agent worked in directly records when an agent arrived and when it left.

An Odoo is released only when:

  • you click Remove copy or Release Odoo on the session page, once the session has ended. The button is Remove copy for an agent copy and Release Odoo for an Odoo the agent worked in directly. The confirmation warns you if the checkout holds unpushed work, and for an agent copy whose agent was stopped before it ever reported on its work, that the copy may hold some. A running session has to be stopped first.
  • you stop the session, for an agent that works directly in an Odoo. Stop session releases the Odoo right away, whatever the agent is doing, and the confirmation warns you about unpushed work. Stopping through the API or an AI assistant does the same. Stopping an agent copy session leaves the copy as it is until somebody removes it.
  • a colleague clicks Release Odoo or Remove copy on the Odoo's agent card. The hosting team and the team that started the session can use them, as long as they may redeploy the Odoo, so a colleague does not have to wait for the person who started the session. A partner team can never release the hosting team's agent or another partner's.
  • the Odoo is deleted. The session stops holding it, and whatever the agent has not pushed is lost.
  • the team loses access. When a partner team is removed from a shared Odoo or leaves it, its agents are released from that Odoo and from all its copies, and the agent copies its sessions made of them are deleted too. Lowering its role to Viewer or Operator, which cannot start coding-agent sessions, does the same for that Odoo, but not for its copies, where the team keeps the role it has there.
  • you remove or release it through the API or an AI assistant. See Webhooks and the API.

If the start fails #

A session that cannot get the Odoo it was to work in ends as Failed with the reason, whichever kind it is. It does not stay pending and does not block anything. The person who started it is notified, and the session cannot be resumed: start a new one. The reasons are:

  • For an agent copy: the Odoo it was started on no longer exists, has no server, or your team may no longer start coding agents on it, or the copy for the agent could not be made.
  • For an agent that works directly in an Odoo: another session already holds the Odoo, your team no longer has access to it, it has no server, or the agent's login could not be created in it. Start the new session in an agent copy, or once the other one has released the Odoo.
  • For an agent started with a new Odoo: the Odoo's first deploy failed. The Actions tab of the Odoo shows which step failed.

If the Odoo is ready but the agent itself cannot be started in it, the session stays pending with the reason shown on the session page. Stop it and start a new one. If the team's API key is gone by the time the agent starts, the session fails with that reason instead. Add the key and send a message to continue it.

The start dialogs refuse before anything is made, with a message and the dialog left open, when your team has no API key for its model provider (the message links to the team settings if you may open them), when another agent already works in the Odoo you start an agent in directly, or when your team may not start coding agents on the Odoo. On the form that creates an Odoo, Let a coding agent set up this Odoo is greyed out, with the reason below it, when your team has no API key for its model provider or the Odoo is a live one. If something changes while the form is open, for example the API key is removed, creating the Odoo refuses with a message, keeps the form as it is and creates no Odoo.

What the agent can do #

In its Odoo, the agent can read and change the repository's files, run commands and commit, when the session has a repository. It can also:

  • restart the Odoo and read its logs
  • install and upgrade modules, optionally running their tests
  • run SQL and odoo shell against the database
  • open the Odoo in a browser, logged in with the administrator account made for the session; your users and their passwords are not touched
  • read the emails the Odoo sent, attachments included, to check that a change emails the right people. This needs the mail catcher on the server.
  • share files with you, such as screenshots or exports

In an Odoo it works in directly, its tools for restarting the Odoo, updating modules, running SQL and the Odoo shell ask for your approval in every mode but Full access; see Approvals.

Permissions and questions #

The permission mode decides when the agent stops to ask:

Mode Behaviour
Ask every time The agent asks before every action that changes something. The default.
Auto-accept edits File edits go through. Other actions still ask.
Auto The agent decides what is safe to run.
Plan mode The agent only reads and plans, without changing anything.
Full access Nothing asks: the agent takes every action without your approval, pushes included. Only its questions still wait for you. See Full access.

In every mode but Full access, a push asks for your approval, and so do the agent's tools for restarting the Odoo, updating modules, running SQL and the Odoo shell in an Odoo it works in directly; see Approvals.

A request appears in the conversation as Permission requested with Approve and Deny. A request that only pushes the agent's own work branch is titled The agent asks to save its work to GitHub instead; see Saving the changes. When the agent needs input, it asks a question with options to pick from or room for your own answer, and waits until you reply. While a request or a question waits for you, a card above the conversation reads The agent is waiting for you, and its Show link takes you there. You can change the model, the reasoning effort and the permission mode while the session runs.

The person who started a session gets an in-app notification when the agent needs a decision or a reply, when the session fails or cannot start, and when its pull request is merged or closed. Merging it themselves from the session page does not notify them.

Full access #

Use Full access only for a task you trust. The agent pushes to GitHub without asking, so nobody sees a push before it goes out, and in an Odoo it works in directly it also restarts the Odoo, updates modules and runs SQL and odoo shell without asking, for everyone who uses that Odoo.

In Full access the agent asks for no approval at all. Every action goes through as soon as the agent takes it: file edits, commands, pushes and, in an Odoo it works in directly, the tools that ask there in every other mode (see Approvals). No Permission requested appears in the conversation.

  • Questions still wait for you. A question is not an approval: when the agent needs input, it asks and waits for your reply, as in every other mode.
  • Protect the branches your Odoos deploy from. The agent is told to push only its own work branch and to leave merging to you, but in Full access nothing checks a push before it reaches GitHub. To make sure changes reach those branches only through a pull request you review, protect them on GitHub with a branch protection rule or a ruleset. If you add modules with Add Module, let the calmo.cloud GitHub App bypass that rule, since it commits to the branch directly.
  • A request that is already waiting stays waiting. Switching to Full access does not approve it, so approve or deny it as usual; only what the agent does after the switch goes through without asking. When you switch to another mode, the agent asks again as that mode says.
  • Choosing it needs no extra permission. Whoever may choose the permission mode may choose Full access, when starting a session or while it runs, in the panel, through the REST API (fullAccess) or through an AI assistant. The agent cannot switch itself to it.

Getting the changes #

What the agent changes exists only in its Odoo at first. It becomes part of your code in four steps: the agent saves its work to GitHub, you approve that, you open a pull request, and the pull request is merged. You do not need to know git for any of them. A card above the conversation on the session page says where the change stands and what the next step is, and it offers at most one highlighted button for that step. While there is nothing to say, for example because the agent has not changed anything yet, there is no card.

Between the session header and the card, a progress line shows the four steps of the change: Working, Saved on GitHub, Pull request and Merged. Steps that are behind the change are ticked, the step it is at is highlighted with a few words on it, for example Not saved or Ready to merge, and a step that needs somebody to look at it is drawn as a warning, such as a pull request with conflicts, or in red where the change will not move on, such as a pull request closed without merging or a session that failed or was cancelled before its work was on GitHub. While the agent still works, or holds work that is not on GitHub yet, the pull request step says so instead of Ready to merge. Once the pull request is merged, all four steps are ticked and the last one reminds you to update the Odoo's addons. In the list of sessions, the Changes column shows the same line in short: four dots and the step the change is at. Hover over it to see all four steps. A session without a repository has no progress line.

Three terms come up on the way:

  • GitHub is where your code is kept. Saving means that the agent pushes its work there, to a branch of its own. Nothing changes on any Odoo, and the code your Odoos deploy stays as it is.
  • A pull request is the request to add the agent's changes to your code. As long as it is open, it changes nothing.
  • Merging the pull request adds the changes to your code. An Odoo only gets them when its addons are updated afterwards. See After the merge.

Click Open Odoo to try the change yourself in the agent's Odoo before you merge.

Where the changes stand #

The Changes badge in the session header shows where the agent's work is:

Badge What it means
Nothing yet The agent has not reported on its work yet.
No changes The agent has not changed anything in the repository.
Not saved The agent has changes that are not on GitHub. The badge says what they are, for example "2 commits, uncommitted edits". They only exist in the agent's Odoo, and the badge stays when that Odoo is released and the changes are gone with it.
Saved on GitHub All of the agent's work is on GitHub, and it has no pull request yet.
Pull request open The pull request is open. The badge shows its number.
Merged The pull request was merged: the change is part of your code.
Closed, not merged The pull request was closed on GitHub without being merged.

Hover over the badge in the session header for the details behind it: whether there are uncommitted edits, how many commits the agent made and how many of them are not pushed.

Saving the changes #

While the agent is working and has changes that are not on GitHub, the card reads The agent is working, and there is nothing for you to do. Once it has stopped working, the card reads The agent's changes are not saved yet and says what they are.

  1. Click Save to GitHub. This sends the agent a message that asks it to commit what is left and push its work branch. A session that had finished resumes for it.
  2. The agent asks for your approval before it pushes. The card turns to The agent is waiting for you. Click Show to jump to the request in the conversation.
  3. Read the request and click Approve.

A request that does nothing but push the agent's own work branch is titled The agent asks to save its work to GitHub. It names the branch and says that nothing is merged and that your Odoo does not change. Any other command that pushes keeps the title Permission requested and carries the line This command pushes to GitHub. Read it before you approve. Ask a developer if you are not sure about such a command. Either way the request shows the command itself and, when the agent reports it, whether the tests were run after its last edit.

In Full access the agent pushes without asking, so there is nothing to approve.

Save before you stop a session. A stopped session cannot be continued, so its agent can no longer save anything. The Stop session confirmation of an agent copy warns you when the agent reported changes that are not saved yet. While the agent is still working it warns you in any case, because calmo.cloud learns what is unsaved only when the agent finishes a step of its work: whatever the agent has not saved by then can no longer be saved, so let it finish, or interrupt it, and save first. In an agent copy the work is still there afterwards. When the agent had reported unsaved changes, the card reads These changes can no longer be saved from here, and a developer can copy the work out until the copy is removed; what the agent had saved to GitHub before can still go into a pull request, and the card then offers Open pull request. A session that already has an open pull request keeps the card of that pull request, which then ends with the note that the unsaved work is not part of it; see Merging the pull request. An agent that was stopped before it ever reported leaves no card: the banner of the copy and the Remove copy confirmation then say that the copy may hold changes that were never saved. An Odoo the agent works in directly is released when you stop the session, and the unsaved work is lost with it.

Once the Odoo the unsaved work was in is released, that work is gone, whichever way the session ended. The card of a session without a pull request then reads These changes were not saved and tells you to start a new session to make the change again. If the agent had saved part of its work to GitHub before, the card reads Part of the agent's work is saved on GitHub instead: it names the rest as gone and offers Open pull request for the part that is saved. The Changes badge goes on reading Not saved either way.

Opening the pull request #

Once everything is on GitHub, the card reads The changes are saved on GitHub. Click Open pull request and confirm. The pull request goes from the agent's work branch into the session's target branch, and the dialog names both. The work branch is named after the session's title, for example agent/fix-invoice-rounding-1a2b3c4d, while sessions started before that keep a name like agent/1a2b3c4d. The target branch is the branch the session was started from, unless you changed it; see Changing the target branch. The pull request is titled like the session. Nothing changes on your Odoo yet.

Open pull request is offered, on the card and in the page header, once the agent's work is on GitHub and the session has no pull request yet. For a session that was stopped or that failed and can no longer be continued, the page header offers it whatever the agent reported last: an agent does not report on a step it was stopped in or that failed, so calmo.cloud asks GitHub, and GitHub says when there is nothing to open a pull request from. A session that completed has reported on all of its work, so its header offers Open pull request only for work that is on GitHub. If an open pull request from the agent's work branch into the target branch already exists, for example because a developer opened it on GitHub, the session takes that one over instead of opening a second one. A pull request from a fork is never taken for the session's, whatever its branch is called. From then on the status of the pull request follows GitHub.

If GitHub does not open the pull request, a message says why, for example that calmo.cloud no longer has access to the repository.

Merging the pull request #

Merging from the session page is in early access and is being rolled out team by team. If you don't see Merge pull request on the page of a session whose pull request is open in a repository of your own team, it isn't enabled for your team yet. Get in touch and we'll switch it on.

A pull request can always be merged on GitHub: View pull request #12 in the page header opens it there, and the session follows what happens to it. Without early access, the card of an open pull request reads Pull request #12 is open and tells you to review and merge it on GitHub.

With early access, you merge on the session page:

  1. Try the change first. While the agent's Odoo can be opened, the card links to it with Open Odoo.
  2. When nothing stands in the way, the card reads Ready to merge. Click Merge on the card, or Merge pull request in the page header.
  3. The dialog Merge this change? names the repository and the target branch the change goes into, and says that a merge cannot be undone from the session page. It also tells you when the agent has work that is not saved to GitHub, which is not part of the pull request and is not merged, and when the pull request on GitHub no longer matches what the agent last saved. After a change of the target branch it also says how many changes that are not the agent's are merged with it. Confirm with Merge.

GitHub does not always know right away whether a pull request can be merged. Until it has said so, the card reads Pull request #12 is open and offers Merge all the same, because calmo.cloud asks GitHub again when you confirm.

These rules hold for every merge from the session page:

  • Only the team the repository belongs to merges, and only the pull requests of its own sessions. Every member of that team who can open the session can merge its pull request. A team that works on an Odoo shared with it never merges in the hosting team's repository; see Shared Odoos. The REST API and AI assistants cannot merge.
  • Only what GitHub reports as ready is merged. calmo.cloud asks GitHub at the moment you confirm. It never merges a pull request that GitHub reports as blocked (it waits for a review or a required check), as having checks that fail or still run, as in conflict with your code or not up to date with it, or as a draft. A pull request GitHub reports as blocked is not merged even when the calmo.cloud GitHub App may bypass the protection of the branch, as Add Module needs it.
  • Nothing is merged while the agent may still add to it. That is while the agent is working, and while it has commits that are not saved and can still be asked to save them. The page header does not offer Merge pull request during that time. Once the session can no longer be continued, work the agent did not save holds nothing up any more: the card stays on the pull request, and it ends with the note that this work is not part of the pull request and only exists in the agent's Odoo, where a developer can copy it out until the agent copy is removed or the Odoo released. The card then no longer tells you to try the change in that Odoo first: the Odoo also runs the unsaved work, so what you see there is more than what is merged.
  • A pull request that changed in the meantime is not merged. If the pull request on GitHub is no longer the one the dialog was opened on, for example because somebody pushed to it, it is not merged. Look at it again and merge then.
  • A merge commit is made, the way "Create a merge commit" does on GitHub. calmo.cloud never squashes or rebases, so a repository that does not allow merge commits has to be merged on GitHub. The merge is made by the calmo.cloud GitHub App, and the session's activity log records who merged. calmo.cloud does not delete the agent's work branch.

When a pull request is not merged, nothing has changed, and a message says why. Mostly the card has said so before:

The card reads What it means What you do
This change no longer fits your current code Your code changed in the meantime: the pull request conflicts with it or has to be brought up to date with it. Click Ask the agent to fix it. The agent brings its work up to date with the current code, runs the tests again and pushes, which asks for your approval as usual. Once the session can no longer be continued, ask a developer instead. After a change of the target branch the button is not offered, and the card says whom to ask.
This change waits for an approval or a check on GitHub The branch is protected on GitHub: the pull request needs a developer's approval, or a passing automatic check, first. Ask a developer to look at it on GitHub.
Checks on GitHub have not passed yet An automatic check of the pull request is failing or still running. Wait a few minutes for it to finish. If it does not pass, ask a developer to look.
Pull request #12 is not ready yet A developer marked it as a draft on GitHub. Ask them to mark it as ready.
Pull request #12 is open, with the line that you can merge it once the agent has finished The agent is still working and may save more. Wait until it has finished.

These cards appear whether or not your team can merge from the session page. They show what GitHub said last, which can be a few minutes old. The merge itself always asks GitHub again.

After the merge #

Merging changes your code on GitHub. It does not change any Odoo. An Odoo gets the change when its addons are updated: open the Odoo, go to its Addons tab and update the addons that show an update, as described under Updating an addon. The Odoo stops for a few minutes while it updates. The same goes for every other Odoo that deploys the repository from the branch the change was merged into, for example your live system when you started the session from a test system.

The card reads Merged and says what applies to the Odoo the session was started from:

  • That Odoo only gets the change when its addons are updated. The card names the Odoo and says so. It goes on saying so after you have updated them: the session does not know what is deployed there. If you may manage its addons, it links to them with Addons of and the Odoo's name.
  • That Odoo deploys the repository from another branch than the one the change was merged into, so the change does not reach it by itself. This happens when you chose another Branch when you started the session, when you changed the target branch, or when the Odoo's branch for the repository was changed since.
  • Your team cannot see that Odoo any more, because it was deleted or is no longer shared with you. Ask an administrator of your Odoo to update its addons.
  • The agent worked directly in the Odoo and still holds it. The Odoo still runs the agent's version. Update its addons before you release it: released first, it falls back to its old code until they are updated. When the change was merged into a branch that Odoo does not deploy, updating does not bring it, and the card says instead that the Odoo runs its own code again once it is released, without the change.
  • The agent still has work in its Odoo that is not saved to GitHub. That work is not part of the merge.

The card always ends with the reminder that this session opens no second pull request; see One pull request per session. To remove the agent copy of a session that has ended, use Remove copy in the banner above the card or in the page header.

A module the agent created new does not show up as an update. Bring it onto the Odoo with Deploy Addons on its Repositories tab and install it; see Adding a repository to a service and Install the module.

One pull request per session #

A session has one pull request. Work the agent saves while it is open is added to it, and the card says so before you save. Once the pull request is merged or closed, the session opens no other one: start a new session for further work. You can still send the agent a message after the merge, but what it changes then has no pull request to go into. When the pull request was closed on GitHub without being merged, the card reads Pull request #12 was closed without merging, and a pull request that somebody reopens there is the session's again.

Changing the target branch #

Every Odoo gets the code of a repository from one branch of it. The pull request adds the agent's changes to one branch as well: its target branch, which the session header shows as Target branch. Unless you chose another Branch when you started the session, it is the branch from which the Odoo you started the session on gets the repository, so that Odoo and every other Odoo on the same branch get the change when their addons are updated after the merge.

Change the target branch when the change should go somewhere else: you started the session on the wrong Odoo, for example on a test system whose branch is not the one your live system uses, or your team collects changes on another branch first.

  1. Click Change next to the target branch in the session header.
  2. Pick the branch. The list starts with Branches your Odoos use and names the Odoos next to each of them, for example "18.0 (Live, Shop)". The other branches of the repository follow under Other branches, the first thousand at most. Never listed are the work branches of agents and branches whose name contains anything but letters, digits and ., _, /, + and -. As long as the pull request is not open, the current target branch is not listed either.
  3. Confirm with Change target branch.

Before the pull request is open, the choice is kept, and Open pull request opens the pull request into the new target branch. An open pull request stays the same pull request: calmo.cloud changes on GitHub where it goes. GitHub then works out again whether it can be merged, so the card reads Pull request #12 is open for a minute or two, and the new branch may need an approval or a check of its own. The session's activity log records who changed the target branch.

Only where the changes go is changed. The agent's work stays as it is, built on the branch the session started from, and the agent is not told: it goes on naming that branch. This matters when the branch it started from has changes that the new target branch does not have. A pull request holds everything its target branch lacks, so those changes are added to the new target branch too, although the agent did not make them. calmo.cloud checks this before it changes anything. If there are such changes, the dialog This adds more than the agent's changes says how many, and you confirm with Change and include them or cancel. From then on the page keeps saying so: the header shows the target branch in the warning colour, the card ends with a sentence about the other changes, the card that offers the merge is drawn as a warning, and the dialogs that open and merge the pull request name the number, which is worked out again when the merge dialog opens. To add only the agent's changes to another branch, leave the target branch as it is: start a new session on an Odoo that uses that branch, or ask a developer to bring the change over.

Sometimes calmo.cloud cannot tell what else the pull request would hold, for example because the branch the session started from no longer exists on GitHub. The dialog calmo.cloud cannot tell what else this adds then says why. Ask a developer to look at it on GitHub before you confirm with Change anyway.

After a change, the card This change no longer fits your current code no longer offers Ask the agent to fix it. The agent brings its work up to date only with the branch it started from: taking the new target branch into its work would put that branch's code into the pull request for good, and into the Odoo of a session that works directly in one. The card tells you to ask a developer to bring the pull request up to date, or to change the target branch back to the branch the session started from.

The target branch can no longer be changed once the pull request is merged or closed. If a merged change is needed on another branch as well, ask a developer to bring it over, or start a new session there.

Anyone with write access to the repository can change on GitHub where an open pull request goes. The session does not follow that by itself: the session page goes on showing the target branch that was chosen there, and merging from the session page is refused, with a message that says where the pull request goes now, until you choose. Click Change and pick the branch GitHub has now, which the dialog On GitHub it already goes there asks you to confirm, or pick the current target branch, marked "(current)", to put the pull request back.

Everyone in your team who can open the session can change its target branch. A team that works on an Odoo shared with it can do so only before the pull request is open, and only while it may still start coding agents on that Odoo. Once the pull request is open in the hosting team's repository, the hosting team changes on GitHub where it goes, and the partner team then picks that branch on the session page. The REST API and AI assistants report the target branch as target_branch and cannot change it.

calmo.cloud cannot know everything when it counts the changes that are not the agent's. It compares the target branch with the branch the session started from and with every other target branch the session has had since the agent's work is on GitHub. The number it names is that of the branch with the most such changes, which the page names as well ("changes from staging"); it is not the sum over all of them. It does not see a branch the agent took into its work because somebody asked it to in the conversation. Nor does it see a branch that an open pull request was pointed at on GitHub and brought up to date with there, unless that branch was then picked on the session page. When in doubt, look at the pull request on GitHub, which lists every commit it holds.

Shared Odoos #

On an Odoo shared with your team, starting sessions needs the Developer role. Sessions belong to the team that started them: the hosting team does not see a partner team's sessions, and the other way round. A partner team starts an agent copy of a shared Odoo from the Create Copy dialog like any other team, and the copy is shared with that partner team alone.

A partner team's agent can work directly in a shared test, demo or copy Odoo as well. The hosting team sees it on the Odoo's page, where the agent card names the partner team rather than the session. It cannot open the session, but it can release the agent with Release Odoo if it may redeploy the Odoo. The partner team can release its own agents the same way, but never the hosting team's or another partner's. The permission mode of the partner team's session applies in the shared Odoo too, so in Full access its agent restarts the Odoo, updates modules and runs SQL there without asking anyone, the hosting team included.

The agent of a partner team works on a repository of the hosting team. The partner team saves the agent's changes and opens the pull request like any other team (see Getting the changes), but it never merges it from calmo.cloud, with or without early access. It can change the target branch only before the pull request is open; see Changing the target branch. Once the pull request is open, the partner team's card reads Waiting for the team that hosts this Odoo and tells it to ask that team to merge the pull request on GitHub. The hosting team does not see the session, so it finds the pull request in its repository on GitHub and reviews and merges it there. The cards that say why a pull request cannot be merged yet appear for the partner team too, so it can have its agent fix a conflict. Where they tell other teams to ask a developer, they tell the partner team to ask the team that hosts the Odoo. After the merge its card reads Merged, and the shared Odoo gets the change when its addons are updated; see After the merge.

When a partner team is removed from the Odoo, or leaves it, its agents are released from the Odoo and from all its copies, and the agent copies its sessions made of them are deleted. Lowering its role to Viewer or Operator, which cannot start coding-agent sessions, does the same for the Odoo itself, but not for its copies, where the team keeps the role it has there.

Webhooks and the API #

  • Webhooks tell your system when a session changes status, asks for a decision, opens a pull request or shares files. The Webhooks button on the session list takes team admins there.
  • The REST API and AI assistants over MCP can start sessions, reply to them and answer their requests. A session started this way works in an agent copy. Once working directly in an Odoo is enabled for your team, pass attached: true to have the agent work directly in a test, demo or copy system; the team endpoint shows it as early_access.coding_agents_attach. With attached: true the repository is optional: leave repository_uuid out for an agent that sets the Odoo up, and leave out branch with it. The API and MCP need the Agency plan; in the panel, coding agents work on every plan.
  • Removing the agent copy of an ended session over the API or MCP does what the button does: it deletes an agent copy, and for an Odoo the agent worked in directly it gives the Odoo back. An AI assistant has to repeat the session's work branch to confirm.
  • Cancelling a session that works directly in an Odoo, over the API or MCP, releases the Odoo exactly as Stop session does, and discards work that was never pushed. An AI assistant has to repeat the session's work branch to confirm. Cancelling an agent copy session leaves the copy as it is.
  • The REST API and AI assistants can open a session's pull request, but they cannot merge it. Merging is done on the session page or on GitHub; see Merging the pull request. A session reports the branch its pull request goes into as target_branch, next to the branch it started from. The target branch is changed on the session page only; see Changing the target branch.
  • A session whose Odoo was released reports resumable: false.
  • When a session is started over the REST API or MCP, title is optional. Left out, it is written from the prompt as in the panel; see Title under What you fill in.
  • Creating a test or demo Odoo over the REST API or MCP takes an optional agent object for an agent that sets the new Odoo up: its prompt and, if you like, title, model, effort and permission_mode. The token needs the agents:write scope as well, and the team endpoint shows whether it's enabled as early_access.coding_agents_on_create. The response holds the session as agent_session. An AI assistant that repeats the call with the same name within a few minutes gets the first Odoo pointed out instead of a second one.
  • A session reports ended_at, when it last ended, and service_stage (preparing, starting, working, holding, released or not_used), whichever kind it is. A session started with a new Odoo reports waits_for_deploy: true until that Odoo's first deploy has finished. An Odoo reports is_neutralized and, when it is fetched on its own, coding_agent_working.
  • A session that could not get the Odoo it was meant to work in ends as failed, whichever kind it is; its webhook status_changed carries the cause start_failed and the reason.