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

Learned rules

Ingot can turn your reviews into rules. When you reject a change the agent made, or correct it the same way twice, Ingot drafts a rule for .ingot/rules and shows it to you as a diff. Nothing is written until you add it.

Learned rules are off by default.

Turn it on

Use any of these:

  • On the Rules & MCP page, Rules tab, click Learned, then Turn On.
  • Run Learn Rules from Reviews (On/Off) from Find Action.
  • Set ingot.rules.learnFromReviews to true in Settings.

What Ingot learns from

Rejected changes. When you reject a hunk the agent wrote, Ingot looks at the new lines. If they contain a pattern it recognises, it drafts a rule scoped to that file type (for example **/*.ts):

In the rejected linesDraft rule
console.log, console.debugNo console.log in code
export defaultNamed exports only
: any, as anyNo any
@ts-ignore, @ts-nocheckDon't silence the type checker
eslint-disableDon't disable lint rules
imports from ../Use path aliases
varNo var
TODO, FIXMENo TODO comments
hex colors like #ff0000No hard-coded colors

Lines the file already had don't count, so rejecting an unrelated edit near old code doesn't teach anything.

Repeated corrections. When a chat message corrects the agent ("No, use pnpm instead of npm", "Don't add comments to every line", "Never use default exports") and you have said the same thing before, Ingot drafts an always-on rule with your words. Messages that sound alike count as the same correction. A plain request such as "Use React for this page" is not a correction.

Each pattern or correction is suggested once. After you add or dismiss it, Ingot doesn't suggest it again.

Review a learned rule

A notification says Ingot drafted a rule from your reviews. Click Review, or run Review Learned Rules… later.

The dialog shows:

  • why it was suggested: the rejected lines, or the messages where you said it;
  • the rule text, which you can edit;
  • the new file, .ingot/rules/learned-<name>.md, as a diff.

Click Add Rule to write the file, or Dismiss to drop it. Agents follow an added rule from the next message, and you can edit or delete it like any other rule.

Where the data stays

What Ingot noticed (proposals and recent corrections) is kept in .ingot/.state/learned-rules.json in the project. That folder ignores itself in git and never leaves your machine. Only rules you add go into .ingot/rules, where you can commit them for your team.