Beta Coming soon. This feature is still being built, so names and details may change before it ships.

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.

Ingot Settings, Agent tools page, Work loop group: Run checks and fix failures after a task is on, and When the agent commits is set to Only when I askIngot Settings, Agent tools page, Work loop group: Run checks and fix failures after a task is on, and When the agent commits is set to Only when I ask
Ingot Settings, Agent tools page, Work loop group: Run checks and fix failures after a task is on, and When the agent commits is set to Only when I ask

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, main or release/*. 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.
The Ingot agent chat after fix the cart total bug and commit: npm test passed, then the commit on develop, and a summary card naming the develop branchThe Ingot agent chat after fix the cart total bug and commit: npm test passed, then the commit on develop, and a summary card naming the develop branch
The Ingot agent chat after fix the cart total bug and commit: npm test passed, then the commit on develop, and a summary card naming the develop branch

Branch conventions

Pick another value of When the agent commits (Settings › Agent tools › Work loop) when your team works on short-lived branches:

ValueLabelWhat the agent does
whenAskedOnly when I askCommits only when you ask, on the branch you are on
featureBranchWhen I ask, on a feature/ or bug/ branchCommits only when you ask; on any branch other than feature/* or bug/* it creates one first
afterChecksAfter the checks pass, on a feature/ or bug/ branchCommits 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

SettingDefaultWhat it does
ingot.agent.commitswhenAskedWhen the agent commits: whenAsked, featureBranch or afterChecks
ingot.agent.workLooptrueRun 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