Agent commits
When the Ingot agent commits, on which branch, and the setting that adds branch conventions such as feature/ and bug/ branches.
Beta By default the agent commits only when you ask, on the branch you are on. Branch conventions are a setting, not something tool output tells the agent to do.


By default: only when you ask
- The agent does not commit unless your message asks for it ("fix the bug and commit").
- When you ask, it runs the project checks first and commits on the branch you are on, with Ingot's git tool.
- It never commits to
master,mainorrelease/*. On one of those it asks you which branch to use. - Results of commands and test runs only report what happened: the command, its output and its exit code. They carry no advice about branches or commits.


Branch conventions
Pick another value of When the agent commits (Settings › Agent tools › Work loop) when your team works on short-lived branches:
| Value | Label | What the agent does |
|---|---|---|
whenAsked | Only when I ask | Commits only when you ask, on the branch you are on |
featureBranch | When I ask, on a feature/ or bug/ branch | Commits only when you ask; on any branch other than feature/* or bug/* it creates one first |
afterChecks | After the checks pass, on a feature/ or bug/ branch | Commits without being asked once the checks pass after its edits, on a feature/ or bug/ branch it creates first |
The two convention values add a short Commit conventions rule to the agent's instructions, the same way your own rules reach it. With the default, the agent's instructions do not mention branch names at all.
Settings
| Setting | Default | What it does |
|---|---|---|
ingot.agent.commits | whenAsked | When the agent commits: whenAsked, featureBranch or afterChecks |
ingot.agent.workLoop | true | Run checks and fix failures after a task: the agent runs the project checks after a fix, feature or test request and fixes failures before it stops |